
This repository contains a combined proof-of-concept (PoC) exploit for CVE-2020-7378, a critical vulnerability in OpenCRX (versions up to and including 5.0-20200717). The exploit chains two core issues in the application:
java.util.Random, which allows attackers to generate valid tokens based on a millisecond timestamp seed.RestServlet endpoint that permits remote file disclosure from the server’s filesystem.The combination of these two flaws enables an unauthenticated attacker to gain administrative access and exfiltrate sensitive server-side files.
CVE ID: CVE-2020-7378
Affected Product: OpenCRX ≤ 5.0-20200717
Attack Surface: Publicly exposed management and REST interfaces
Root Causes:
Impact:
CVSS: 9.1 (Critical)
opencrx-exploit.py: Full-chain exploit script that performs both token prediction and XXE file read.OpenCRXToken.java: Java class that emulates the token generation logic using a brute-force seed range based on request timing.Compile the token generator:
javac OpenCRXToken.java
Run the exploit:
python3 opencrx-exploit.py <target_user_id>
This will: