exploit the possibilities

Apache Batik XXE Injection

Apache Batik XXE Injection
Posted Mar 23, 2015
Authored by Kevin Schaller

Apache Batik suffers from an XML external entity (XXE) injection vulnerability.

tags | advisory, xxe
advisories | CVE-2015-0250
MD5 | 10a9e6bd400de6f31de5850b0c0141e3

Apache Batik XXE Injection

Change Mirror Download
XML External Entity (XXE) Injection Vulnerability in Apache Batik (Java
SVG Toolkit)
====================================================================================
Researcher: Kevin Schaller <kschaller@ernw.de>


Description
===========
Batik is a Java-based toolkit for applications or applets that want to
use images in the
Scalable Vector Graphics (SVG) format for various purposes, such as
display, generation or
manipulation. [1]

Batik offers several classes for svg to png/jpg conversion, which suffer
from a XML External
Entity Injection due to the evaluation of external entities within the
given svg file. If an
application offers the possibility to upload a svg file an attacker can
put in a malicious formed
file and retrieve sensitive information such as the content of files of
the respective server.
The type of file that can be retrieved depends on the user context in
which the application is running.

Further information about the vulnerability can be seen here [2] and
here [3].


Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


CVSS Base Score
===============
6.4 (AV:N / AC:L / Au:N / C:P / I:N / A:P)


CVE-ID
======
CVE-2015-0250


Impact
======
Files lying on the filesystem of the server which uses batik can
be revealed to arbitrary users who send maliciously formed svg
files. The file types that can be shown depend on the user context
in which the exploitable application is running. If the user is 'root'
a full compromise of the server--including confidential or sensitive
files--would be possible.

XXE can also be used to attack the availability of the server
via denial of service as the references within a xml document
can trivially trigger an amplification attack.


Proof of Concept
================
A fully documented proof of concept can be downloaded here: [4]


Mitigation
==========
Upgrade to Batik 1.8+


Affected Versions
=================
All versions
1.0 - 1.7 (current)


Timeline
========
2015-01-22: Apache informed via email - no response
2015-02-08: Remainder sent via email
2015-02-10: Vulnerability confirmed and fix has been tested and
confirmed to work
2015-03-17: Release of a fixed version and public dislocure


Credits
=======
Timo Schmid <tschmid@ernw.de>


References
==========
[1] http://xmlgraphics.apache.org/batik/
[2]
http://www.insinuator.net/2015/03/xxe-injection-in-apache-batik-library-cve-2015-0250/
[3] https://www.owasp.org/index.php/XML_External_Entity_%28XXE%29_Processing
[4] https://www.ernw.de/download/xxe_batik.tar.xz


Disclaimer
==========
The information herein contained may change without notice. Use of this
information constitutes acceptance for use in an AS IS condition. There
are NO
warranties, implied or otherwise, with regard to this information or its
use.
Any use of this information is at the user's risk. In no event shall the
author/
distributor be held liable for any damages whatsoever arising out of or in
connection with the use or spread of this information.

--
Kevin Schaller

ERNW GmbH - Carl-Bosch-Str. 4 - 69115 Heidelberg - www.ernw.de
Tel. +49 6221 480390 (Zentrale) - Fax +49 6221 419008 - Cell +49 151 16227194

Handelsregister Mannheim: HRB 337135
Geschaeftsfuehrer: Enno Rey

==============================================================
|| Blog: www.insinuator.net | | Conference: www.troopers.de ||
==============================================================



Login or Register to add favorites

File Archive:

December 2020

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    22 Files
  • 2
    Dec 2nd
    0 Files
  • 3
    Dec 3rd
    0 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close