Skip to content
OpenAdvisories
Medium Scanner template Public exploit CVE-2012-0392 EUVD-2022-2028GHSA-2ppp-xj34-vvf7

Apache Struts's CookieInterceptor component does not use the parameter-name whitelist

Published Jan 8, 2012 · Updated Sep 16, 2024 · Assigned by mitre

Description

The CookieInterceptor component in Apache Struts before 2.3.1.1 does not use the parameter-name whitelist, which allows remote attackers to execute arbitrary commands via a crafted HTTP Cookie header that triggers Java code execution through a static method.

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.struts:struts2-core < 2.2.3.1 2.2.3.1 GHSA-2ppp-xj34-vvf7
Maven org.apache.struts.xwork:xwork-core < 2.2.3.1 2.2.3.1 GHSA-2ppp-xj34-vvf7

References