Skip to content
Access control Advisory Intermediate CVE-2024-1223

PaperCut NG VendorKeys Hardcoded Credentials Authentication Bypass Vulnerability

PaperCut NG contained hard-coded credentials in a VendorKeys object, allowing remote attackers to bypass authentication on the External Devices API without any credentials.

Ahmed Y. Elmogy Follow

Originally disclosed on Zero Day Initiative

High 8.2 View original

This vulnerability allows remote attackers to bypass authentication on affected installations of PaperCut NG. Authentication is not required to exploit this vulnerability.

Ahmed Y. Elmogy, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the application embedded fixed credentials in a VendorKeys configuration object and used them to authenticate requests to the External Devices API, so anyone who knows or extracts those values is treated as authenticated.

Impact

A remote, unauthenticated attacker could bypass authentication on the External Devices API, potentially gaining access to functionality or data meant only for authenticated users.

What the attacker needed

Network access to the External Devices API

The fix

PaperCut issued an update to correct the vulnerability; the hard-coded credentials should be removed and replaced with a secure authentication mechanism.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Hard-coded credentials are a username and password written directly into the software's code, so they are the same for every installation. Here, those fixed credentials let anyone skip the normal login check on a specific API used by external devices. That means an attacker could reach parts of the system that should require a valid login.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Ahmed Y. Elmogy

View all

9 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.