Skip to content
KitploitKITPLOIT
FerramentasExploitsBlog
Log in
Enviar
FerramentasExploitsBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

FeedsContatoPrivacidade© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
CVE-2013-1965 — Scanner and proof-of-concept exploit for CVE-2013-1965 (Apache Struts2 S2-012 OGNL injection), with single-request detection and CSV/JSON reporting. | Kitploit
Ferramentas/GitHubGitHub/jonathan1010/cve-2013-1965
Vulnerability ScannersWeb Vulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubjonathan1010/cve-2013-1965

CVE-2013-1965

Scanner and proof-of-concept exploit for CVE-2013-1965 (Apache Struts2 S2-012 OGNL injection), with single-request detection and CSV/JSON reporting.

Ver Repositório
4 de dez. de 2026Ainda não revisado

Ferramentas relacionadas

  • nuclei

    Scanner de vulnerabilidades rápido baseado em YAML, com motor de detecção orientado por templates para testes de segurança automatizados em aplicações web, APIs, redes, DNS e infraestrutura em nuvem.

  • zaproxy

    Scanner de segurança de aplicações web de código aberto para detecção automatizada de vulnerabilidades, testes de penetração manuais e testes de segurança de API com um motor de intercepção baseado em proxy.

  • openvas-scanner

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

  • 1

    Callisto

    jetp1ane/callisto

    Ferramenta automatizada de análise de vulnerabilidades binárias que descompila executáveis via Ghidra, verifica código pseudo-C com Semgrep e valida descobertas usando GPT-3.5-Turbo para reduzir falsos positivos.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Aplicativo de Execução em Um Toque GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plataforma IMSI Catcher que implanta uma célula GSM falsa para intercetar SMS, injetar mensagens e rastrear dispositivos móveis

    721
  • 4

    opencti

    opencti-platform/opencti

    Plataforma Aberta de Inteligência de Ameaças Cibernéticas

    535
  • 5

    ARTEX

    baarai/artex

    Plataforma autônoma de testes de penetração multiagente com LLM, com agentes planejador/executor, grafos de ativos e de exploração, registro de tráfego MITM e reteste de vulnerabilidades.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Ferramenta de root para Android para Samsung Galaxy S25 Ultra (SM-S938B) que encadeia DirtyFrag CVE-2026-43284 e CVE-2026-43499 para obter root automaticamente no boot via KernelSU.

    419

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
Conteúdo não disponível no idioma solicitado. Mostrando versão em inglês.

CVE-2013-1965

Apache Struts2 S2-012 - OGNL injection in the redirect result of the Showcase app

Metadata

fieldvalue
CVECVE-2013-1965
severitycritical
CVSS9.3 (CVSS:2.0 AV:N/AC:M/Au:N/C:C/I:C/A:C, NVD primary)
fixed inStruts 2.3.14.3 (2.3.x line; 2.3.14.1 already carries the OgnlUtil fix)
classOGNL / expression-language injection leading to RCE (CWE-94)
scanner version1.0.0
python3.8+ stdlib only, no third-party deps

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RSF

Summary

The Apache Struts 2 Showcase application (2.0.0 through 2.3.13) evaluates the text of a redirect result through OgnlUtil, and the value of each request parameter is spliced into that text before evaluation. A request parameter whose value is itself a %{...} OGNL expression is therefore compiled and executed by the OGNL engine while the redirect location is being built, giving unauthenticated remote code execution. The nuclei template (http/cves/2013/CVE-2013-1965.yaml, max-request: 1) proves execution with a single POST to /user.action whose name parameter carries the classic chained OGNL payload that prints /etc/passwd.

Full description

In the showcase configuration the user action ends with a result such as

<result type="redirect">edit.action?skillName=${currentSkill.name}</result>

With parse="true" the whole location text is handed to OgnlUtil.getValue, and the parameter values that were pushed onto the value stack (name here) are substituted into it. Because the raw parameter value is part of the string that OGNL then compiles, an attacker controls the expression itself, not just a literal. The canonical S2-012 payload re-enables static method access (#_memberAccess['allowStaticMethodAccess']=true, #context['xwork.MethodAccessor.denyMethodExecution']=false), builds a java.lang.ProcessBuilder for cat /etc/passwd, reads its stream into a char array, and writes the result to the response obtained from #context.get("com.opensymphony.xwork2.dispatcher.HttpServletResponse"). The in-band oracle is the passwd listing itself: the template asserts the regex root:.*:0:0: is present in a 200 body. NVD records the issue as CWE-94 with CVSS2 base score 9.3, published 2013-07-10; the CPE ranges are Struts 2.0.0 (exclusive end 2.3.14.1) and struts2-showcase 2.0.0 through 2.3.13. The vendor bulletin states the fixed release is 2.3.14.3 and that the root cause is that OgnlUtil used to allow full eval expressions; the fix denies eval expressions by default.

Detection model

  • Single-request black-box check mirroring the template; the template request budget (metadata.max-request: 1) is the authoritative verdict.
  • Probe request: POST {base}/user.action with header Content-Type: application/x-www-form-urlencoded and the URL-encoded body name=%{...} of the template, verbatim.
  • Matchers (AND, per the template DSL): status_code == 200 and the regular expression root:.*:0:0: found in the body (re.S so the dot spans the line-broken passwd listing).
  • A second non-injected GET {base}/user.action is recorded as context (baseline_status, baseline_snippet) but is not part of the verdict, which keeps the template's single-request semantics.
  • Fragment comparison for the baseline is informational only; the regex matcher is case-sensitive, exactly as the template's regex type.
  • check(url) returns (True, details) only when both template matchers hold; every helper retries (2 attempts, linear backoff) and HTTPError bodies are read, because the 200 body carries the oracle.
  • Scheme-less hosts in urls.txt (tagger output such as host:8080/path) are auto-prefixed with http://; a 12-char md5 token fingerprints the per-row details.

Usage

# scanner: streamed CSV + optional JSON sidecar
python scanner/CVE-2013-1965/scanner.py urls.txt 8 CVE-2013-1965.csv --json CVE-2013-1965.json

# exploit: result dict + optional CSV/JSON dumps
python exploit/CVE-2013-1965/exploit.py http://target/ --csv CVE-2013-1965.csv --json CVE-2013-1965.json --verbose

urls.txt is a plain file, one target per line, # for comments.

Example scanner output

[*] Apache Struts2 S2-012 scanner (CVE-2013-1965 / OGNL injection via redirect result)
 scanner : CVE-2013-1965 v1.0.0
 threads : 8 | csv: CVE-2013-1965.csv | json: CVE-2013-1965.json
[*] Apache Struts2 S2-012 scanner (CVE-2013-1965 / OGNL injection via redirect result)
[2026-12-03 10:00:01] loaded 2 target(s) from urls.txt
[2026-12-03 10:00:02] [1/2] http://localhost:8080 -> VULNERABLE
[2026-12-03 10:00:02] [2/2] http://localhost:8081 -> not-vuln
[2026-12-03 10:00:02] summary: total=2 vulnerable=1 not-vuln=1 errors=0
[2026-12-03 10:00:02] timing : avg=182ms max=210ms wall=0.42s
[2026-12-03 10:00:02] report saved: CVE-2013-1965.csv

Scanner report columns

columnmeaning
n1-based row number
urltarget as provided
statusok / error
vulnerableverdict
elapsed_msper-target timing
token12-char md5 over the row details
result_b64base64(JSON) full details

Files

  • scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.
  • README.md - this file.
  • DESCRIPTION.md - deeper technical notes.
  • ../../exploit/CVE-2013-1965/exploit.py - two-request POC.

Exit codes

codemeaning
0at least one target answered
2every target errored

References

  • Nuclei template: http/cves/2013/CVE-2013-1965.yaml
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2013-1965
  • Vendor bulletin: http://struts.apache.org/development/2.x/docs/s2-012.html
Baixar ferramenta

Este repositório contém o componente scanner da Greenbone Community Edition.