Debian DSA-2842-1 : libspring-java - denial of service

medium Nessus Plugin ID 71933

Synopsis

The remote Debian host is missing a security-related update.

Description

Alvaro Munoz discovered a XML External Entity (XXE) injection in the Spring Framework which can be used for conducting CSRF and DoS attacks on other sites.

The Spring OXM wrapper did not expose any property for disabling entity resolution when using the JAXB unmarshaller. There are four possible source implementations passed to the unmarshaller :

- DOMSource
- StAXSource

- SAXSource

- StreamSource

For a DOMSource, the XML has already been parsed by user code and that code is responsible for protecting against XXE.


For a StAXSource, the XMLStreamReader has already been created by user code and that code is responsible for protecting against XXE.

For SAXSource and StreamSource instances, Spring processed external entities by default thereby creating this vulnerability.

The issue was resolved by disabling external entity processing by default and adding an option to enable it for those users that need to use this feature when processing XML from a trusted source.

It was also identified that Spring MVC processed user provided XML with JAXB in combination with a StAX XMLInputFactory without disabling external entity resolution. External entity resolution has been disabled in this case.

Solution

Upgrade the libspring-java packages.

For the stable distribution (wheezy), this problem has been fixed in version 3.0.6.RELEASE-6+deb7u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720902

https://packages.debian.org/source/wheezy/libspring-java

https://www.debian.org/security/2014/dsa-2842

Plugin Details

Severity: Medium

ID: 71933

File Name: debian_DSA-2842.nasl

Version: 1.9

Type: local

Agent: unix

Published: 1/14/2014

Updated: 1/11/2021

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libspring-java, cpe:/o:debian:debian_linux:7.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 1/13/2014

Reference Information

CVE: CVE-2013-4152

BID: 61951

DSA: 2842