Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-27350 PoC — PaperCut NG 访问控制错误漏洞

Source
Associated Vulnerability
Title:PaperCut NG 访问控制错误漏洞 (CVE-2023-27350)
Description:This vulnerability allows remote attackers to bypass authentication on affected installations of PaperCut NG 22.0.5 (Build 63914). Authentication is not required to exploit this vulnerability. The specific flaw exists within the SetupCompleted class. The issue results from improper access control. An attacker can leverage this vulnerability to bypass authentication and execute arbitrary code in the context of SYSTEM. Was ZDI-CAN-18987.
Description
Unauthenticated remote command execution in Papercut service allows an attacker to execute commands due to improper access controls in the SetupCompleted Java class.
Readme
[!] Be careful executing this as it re-configures the server config in order to execute commands. The script reverts the changes on exit but might not revert it if the process is improperly killed [!]

# CVE-2023-27350 ~ Papercut Unauthenticated RCE (Versions < 22.0.8)

PaperCut servers vulnerable to CVE-2023-27350 implement improper access controls in the `SetupCompleted` Java class, allowing an attacker to bypass user authentication and access the server as an administrator. After accessing the server, the attack can leverage existing PaperCut software features for remote code execution (RCE). 

The PaperCut server process pc-app runs with SYSTEM- or root-level privileges. When the software is exploited to execute other processes such as cmd.exe or powershell.exe, these child processes are created with the same privileges. Commands supplied with the execution of these processes will also run with the same privileges.


# Usage:


`python3 exploit.py --url <IPADRESS>`

    The script automatically tests if server is vulnerable.
    Interactive Shell: Once the vulnerability is confirmed, the script prompts for commands to be sent.
    The script reverts the configuration on exit.


# Example:

![image](https://github.com/user-attachments/assets/98ef4286-c872-461d-8d6d-90b0c864c750)


# References:

[CVE-2023-27350](https://www.cisa.gov/sites/default/files/2023-05/AA23-131A%20Malicious%20Actors%20Exploit%20CVE-2023-27350%20in%20PaperCut%20MF%20and%20NG_0.pdf)


Disclaimer
This script is for educational purposes.
File Snapshot

[4.0K] /data/pocs/f9a77b70ea3fe71a67f2d3f1184dab309e4b6652 ├── [6.1K] exploit.py └── [1.5K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →