PoC Monitor
← All CVEs
CVE-2020-25223published 25 Sep 2020 00:00 UTCData: JSON · API

Sophos SG UTM

Sophos SG UTM Remote Code Execution Vulnerability

Edge device · Firewall / VPNknown edge product: Sophos SG UTM Sophos SG UTM Remote (high confidence)

A remote code execution vulnerability exists in the WebAdmin of Sophos SG UTM before v9.705 MR5, v9.607 MR7, and v9.511 MR11

First public PoC 338 daysafter publication · 29 Aug 2021
Public PoCs53 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-78
CISA KEV 25 Mar 20221.5 years after publication

Timeline

Days relative to CVE publication
t=0+90+180+270+360+450+540CVE published25 Sep 2020 · t = 0First public PoC29 Aug 2021 · t+338dAdded to CISA KEV25 Mar 2022 · t+1.5y

First public PoC 338 days after publication; added to CISA KEV 1.5 years after publication. First PoC: darrenmartyn/sophucked (created 29 Aug 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

3 PoCs · 2 pending

PoCs 3
RepositoryCreatedStarsAssessment
darrenmartyn/sophucked 29 Aug 2021 +338 d 11 PoC
maguireja/CVE-2020-25223 9 Sep 2021 +350 d 3 PoC
twentybel0w/CVE-2020-25223 9 Sep 2021 +350 d 3 PoC
Pending 2
RepositoryCreatedStarsAssessment
Live-Hack-CVE/CVE-2020-25223 unknown 0 Pending · repository unavailable (HTTP 404)
reneww/poc-CVE-2020-25223 unknown 0 Pending · repository unavailable (HTTP 404)

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.

PoC characteristics

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

POST /var

Key headers
Accept: text/javascript, text/html, application/xml, text/xml, */* Accept-Language: en-US,en;q=0.5 X-Prototype-Version: 1.5.1.1 X-Requested-With: XMLHttpRequest
Body markers
"objs" "FID":"init" "SID" "browser":"gecko_linux" "backend_version" "loc" "SID":"|cat /etc/shadow > /var/sec/chroot-httpd/var/webadmin/shadow.txt|" "current_uuid":"" "SID":"|rm /var/sec/chroot-httpd/var/webadmin/shadow.txt|" in application/json; charset=UTF-8
Ports
4443, 4444
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Seen in
3 repos: darrenmartyn/sophucked, maguireja/CVE-2020-25223, twentybel0w/CVE-2020-25223
Evidence
darrenmartyn/sophucked/sophucked.py:36 maguireja/CVE-2020-25223/CVE-2020-25223.py:33 maguireja/CVE-2020-25223/CVE-2020-25223.py:52 twentybel0w/CVE-2020-25223/CVE-2020-25223.py:33 twentybel0w/CVE-2020-25223/CVE-2020-25223.py:52

GET /shadow.txt

Content-Type
application/json; charset=UTF-8
Ports
4444
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
Seen in
2 repos: maguireja/CVE-2020-25223, twentybel0w/CVE-2020-25223
Evidence
maguireja/CVE-2020-25223/CVE-2020-25223.py:40 twentybel0w/CVE-2020-25223/CVE-2020-25223.py:40

Regex

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

POST /var
(?i)^/var(?:[?#].*)?$
GET /shadow.txt
(?i)^/shadow\.txt(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /var
alert http any any -> $HOME_NET [4443,4444] (msg:"GG PoC-Monitor CVE-2020-25223 Sophos SG UTM exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/var"; http.header; content:"Accept: text/javascript, text/html, application/xml, text/xml, */*"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header; content:"X-Prototype-Version: 1.5.1.1"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"|22|objs|22|"; http.request_body; content:"|22|FID|22|:|22|init|22|"; http.request_body; content:"|22|SID|22|"; http.request_body; content:"|22|browser|22|:|22|gecko_linux|22|"; http.request_body; content:"|22|backend_version|22|"; http.request_body; content:"|22|loc|22|"; http.request_body; content:"|22|SID|22|:|22||7c|cat /etc/shadow > /var/sec/chroot-httpd/var/webadmin/shadow.txt|7c||22|"; http.request_body; content:"|22|current_uuid|22|:|22||22|"; http.request_body; content:"|22|SID|22|:|22||7c|rm /var/sec/chroot-httpd/var/webadmin/shadow.txt|7c||22|"; reference:url,poc.griffinguard.io/cve/CVE-2020-25223; classtype:web-application-attack; sid:9099861; rev:1;)
GET /shadow.txt
alert http any any -> $HOME_NET [4444] (msg:"GG PoC-Monitor CVE-2020-25223 Sophos SG UTM exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/shadow.txt"; reference:url,poc.griffinguard.io/cve/CVE-2020-25223; classtype:web-application-attack; sid:9798366; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /var
title: Sophos SG UTM exploit attempt (CVE-2020-25223)
id: gg-pocmon-cve-2020-25223-9099861
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-25223. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-25223
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/var'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.25223
GET /shadow.txt
title: Sophos SG UTM exploit attempt (CVE-2020-25223)
id: gg-pocmon-cve-2020-25223-9798366
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-25223. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2020-25223
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/shadow.txt'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2020.25223