
Scanner Python leve para deteção de XSS armazenado (CVE-2025-0054) no SAP NetWeaver Java. Submete payloads personalizáveis e verifica a reflexão de scripts.
Uma ferramenta Python leve para detectar vulnerabilidades de Cross-Site Scripting (XSS) armazenado no SAP NetWeaver Application Server Java, visando especificamente a CVE-2025-0054.
⚠️ Apenas para testes de segurança educacionais e autorizados. Não use em sistemas sem permissão.
CVE-2025-0054 é uma vulnerabilidade de XSS armazenado em sistemas Java do SAP NetWeaver, que permite que atacantes com privilégios baixos injetem JavaScript malicioso no servidor, que é então armazenado e executado quando os usuários visualizam páginas afetadas.
<script> ou reflexão do payloadrequests e BeautifulSouprequestsbeautifulsoup4pip 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: <script>alert('xss')</script>)
🛠 Example
python
Copy
Edit
TARGET_URL = "http://example-sap-host.com"
VULN_ENDPOINT = "/user/profile"
COOKIE = {"JSESSIONID": "your-session-id"}
XSS_PAYLOAD = "<script>alert('xss')</script>"
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.