Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

PaperCut PaperCutNG Authentication Bypass

Disclosed
Mar 13, 2023
Created
Jun 7, 2023

Description

This module leverages an authentication bypass in PaperCut NG. If necessary it
updates Papercut configuration options, specifically the 'print-and-device.script.enabled'
and 'print.script.sandboxed' options to allow for arbitrary code execution running in
the builtin RhinoJS engine.

This module logs at most 2 events in the application log of papercut. Each event is tied
to modifcation of server settings.

Author

catatonicprime

Platform

Java

Architectures

java

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/http/papercut_ng_auth_bypass
msf exploit(papercut_ng_auth_bypass) > show targets
...targets...
msf exploit(papercut_ng_auth_bypass) > set TARGET < target-id >
msf exploit(papercut_ng_auth_bypass) > show options
...show and set options...
msf exploit(papercut_ng_auth_bypass) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.