CVE-2012-4386
What it is
The token check mechanism in Apache Struts 2.0.0 through 2.3.4 does not properly validate the token name configuration parameter, which allows remote attackers to perform cross-site request forgery (CSRF) attacks by setting the token name configuration parameter to a session attribute.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 3.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.4% in the next 30 days (EPSS).
- Severity: 6.8 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.4% · EPSS, next 30 days
- Weakness
- CWE-352 · Cross-site request forgery
- Record status
- Modified
Affected
- Apache Struts 2.0.0
- Apache Struts 2.0.1
- Apache Struts 2.0.2
- Apache Struts 2.0.3
- Apache Struts 2.0.4
- Apache Struts 2.0.5
- Apache Struts 2.0.6
- Apache Struts 2.0.7
Attack profile CVSS 2.0 · 6.8
- Attack vector
- Network
- Complexity
- Medium
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2012-4386.md and follow it. Check whether this project is affected by CVE-2012-4386. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://secunia.com/advisories/50420
- http://struts.apache.org/2.x/docs/s2-010.html
- http://secunia.com/advisories/50420
- http://struts.apache.org/2.x/docs/s2-010.html
References
- http://secunia.com/advisories/50420
- http://struts.apache.org/2.x/docs/s2-010.html
- http://www.openwall.com/lists/oss-security/2012/09/01/4
- http://www.openwall.com/lists/oss-security/2012/09/01/5
- http://www.securityfocus.com/bid/55346
- https://exchange.xforce.ibmcloud.com/vulnerabilities/78182
- https://issues.apache.org/jira/browse/WW-3858
- http://secunia.com/advisories/50420
- http://struts.apache.org/2.x/docs/s2-010.html
- http://www.openwall.com/lists/oss-security/2012/09/01/4
- http://www.openwall.com/lists/oss-security/2012/09/01/5
- http://www.securityfocus.com/bid/55346
- https://exchange.xforce.ibmcloud.com/vulnerabilities/78182
- https://issues.apache.org/jira/browse/WW-3858