Cloudanix VulnDB

CVE-2015-5211

Critical · 9.6

CVSS

9.6

EPSS

2.6%

Published

May 25, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

An old flaw in a widely used web software library lets attackers trick people into downloading files that can take over their computers when opened.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Full Compromise
Component
Web Framework
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw permits crafting a URL that forces the server to reflect attacker-controlled input into an HTTP response downloaded as a file bearing a script extension instead of being rendered inline, enabling the victim system to execute the reflected content.

Why it matters to the business

Successful exploitation can lead to arbitrary command execution on user workstations, data exfiltration, or lateral movement; the vulnerability remains relevant for organizations still running decades-old Spring deployments that have not been upgraded.

How an attack unfolds

An attacker locates an endpoint that echoes request parameters, appends a batch or command script extension to the URL path or query string, and embeds malicious commands in the reflected data. When a victim follows the link, the browser triggers a file download rather than page rendering; opening the downloaded file executes the attacker-supplied commands.

How to fix it

Upgrade Spring Framework to releases after the vulnerable ranges (post 4.2.1, 4.1.7, 3.2.14) and ensure any custom controllers no longer allow reflected content to be served with executable MIME types or script extensions. Apply input validation that rejects or sanitizes dangerous file extensions in reflected responses.

How to confirm the fix worked

Inventory all Spring Framework JARs and confirm versions are outside the listed vulnerable ranges; perform manual or automated tests that request endpoints with script extensions and verify the response is not served as an attachment.

Typical attack path

  1. Discover a Spring-based endpoint that reflects query or path parameters
  2. Append a script extension (e.g., .bat, .cmd) to the URL and inject payload into reflected content
  3. Deliver the crafted link via phishing, watering-hole, or malicious advertisement
  4. Victim browser receives and saves the response as an executable file
  5. User or auto-execution mechanism runs the downloaded script, achieving code execution

How to detect it

Search web-server access logs and proxy logs for requests that include parameters or paths ending in common script extensions (.bat, .cmd, .exe) immediately followed by reflected content that matches the request; correlate with responses containing attachment disposition headers for executable types.

  • URL paths or query strings ending in .bat or .cmd containing reflected parameters
  • HTTP responses with Content-Disposition: attachment.*\.bat
  • Log entries showing reflected input matching malicious script content

What your security team should do

  • Immediately inventory and upgrade all Spring Framework instances to supported, patched releases
  • Add web-application firewall rules that block requests containing executable script extensions in reflected contexts
  • Enable logging of Content-Disposition attachment responses and review for anomalous script extensions
  • Conduct user-awareness training focused on verifying unexpected file downloads from internal applications

The record

Under some situations, the Spring Framework 4.2.0 to 4.2.1, 4.0.0 to 4.1.7, 3.2.0 to 3.2.14 and older unsupported versions is vulnerable to a Reflected File Download (RFD) attack. The attack involves a malicious user crafting a URL with a batch script extension that results in the response being downloaded rather than rendered and also includes some input reflected in the response.

Affected packages

Ecosystem Package Introduced Fixed
Maven org.springframework:spring-core 0 3.2.15
Maven org.springframework:spring-core 4.0.0 4.1.8
Maven org.springframework:spring-core 4.2.0 4.2.2
Debian:11 libspring-java 0 4.1.9-1
Debian:12 libspring-java 0 4.1.9-1
Debian:13 libspring-java 0 4.1.9-1
Debian:14 libspring-java 0 4.1.9-1
Debian:8 libspring-java 0 3.0.6.RELEASE-17+deb8u1
Mageia:5 json-path 0 0.9.1-1.mga5
Mageia:5 json-smart 0 1.3-0.20140820.1.mga5
Mageia:5 springframework 0 3.2.15-1.mga5
Ubuntu:18.04:LTS libspring-java 0 4.3.14-1
Ubuntu:Pro:14.04:LTS libspring-java 0 3.0.6.RELEASE-13ubuntu0.1~esm2
Ubuntu:Pro:16.04:LTS libspring-java 0 3.2.13-5ubuntu0.1~esm1
maven org.springframework/spring-core 3.2.0 3.2.15
maven org.springframework/spring-core 4.0.0 4.1.8
maven org.springframework/spring-core 4.2.0 4.2.2
maven org.springframework/spring-web 3.2-alpha0 No fix
maven org.springframework/spring-web 4.0-alpha0 No fix
maven org.springframework/spring-web 4.1-alpha0 No fix
maven org.springframework/spring-web 4.2-alpha0 No fix
maven org.springframework/spring-websocket 4 No fix
maven org.springframework/spring-websocket 4.1 No fix
maven org.springframework/spring-websocket 4.2 No fix

Related vulnerabilities