Table of Contents
Loading contents...
README.md
CVE-2025-0054 โ SAP NetWeaver Stored XSS Scanner ๐ท๏ธ
A lightweight Python tool to detect stored Cross-Site Scripting (XSS) vulnerabilities in SAP NetWeaver Application Server Java, specifically targeting CVE-2025-0054.
โ ๏ธ For educational and authorized security testing only. Do not use on systems without permission.
๐จ About the Vulnerability
CVE-2025-0054 is a stored XSS vulnerability in SAP NetWeaver Java systems, allowing attackers with low-level privileges to inject malicious JavaScript into the server, which is then stored and executed when users view affected pages.
๐ป Features
- Submits a customizable XSS payload to a target field
- Automatically checks the same page for stored payloads
- Detects presence of
<script>
tags or payload reflection - Lightweight and fast โ written in Python using
requests
andBeautifulSoup
๐ง Setup
Requirements
- Python 3.x
requests
beautifulsoup4
```bash
pip install requests beautifulsoup4
๐ Usage
bash
Copy
Edit
python3 scanner.py
Edit the following in scanner.py before running:
TARGET_URL: Base URL of the SAP instance
VULN_ENDPOINT: Path to the vulnerable endpoint (e.g. /user/profile)
COOKIE: Your session cookie (can be copied from browser dev tools)
XSS_PAYLOAD: Payload to test (default: )
๐ ๏ธ Example
python
Copy
Edit
TARGET_URL = “http://example-sap-host.com”
VULN_ENDPOINT = “/user/profile”
COOKIE = {“JSESSIONID”: “your-session-id”}
XSS_PAYLOAD = ““
๐งช How it works
Sends a POST request with the XSS payload to the target endpoint
Fetches the page again
Parses the response to detect stored script payloads
๐ Disclaimer
This tool is intended only for ethical hacking, educational purposes, or authorized penetration testing. The author is not responsible for any misuse or illegal activity.
Tool Information
Related Tools
CVE-2017-0199
Exploit toolkit CVE-2017-0199 - v4.0 is a handy python script which provides pentesters and security researchers a quick and effective way to test Microsoft Office RCE. It could generate a malicious RTF/PPSX file and deliver metasploit / meterpreter / other payload to victim without any complex configuration.
StableCVE-2017-8759
Exploit toolkit CVE-2017-8759 - v1.0 is a handy python script which provides pentesters and security researchers a quick and effective way to test Microsoft .NET Framework RCE. It could generate a malicious RTF file and deliver metasploit / meterpreter / other payload to victim without any complex configuration.
StableCVEs
Proof-of-Concept exploits for CVEs found by the team at Rhino Security Labs
Stable