PoC Monitor
← All CVEs
CVE-2017-16651published 9 Nov 2017 14:00 UTCData: JSON · API

Roundcube Webmail

Roundcube Webmail File Disclosure Vulnerability

Roundcube Webmail before 1.1.10, 1.2.x before 1.2.7, and 1.3.x before 1.3.3 allows unauthorized access to arbitrary files on the host's filesystem, including configuration files, as exploited in the wild in November 2017. The attacker must be able to authenticate at the target system with a valid username/password as the attack requires an active session. The issue is related to file-based attachment plugins and _task=settings&_action=upload-display&_from=timezone requests.

First public PoC 3.2 yearsafter publication · 6 Jan 2021
Public PoCs21 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS7.8high · scored by CISA ADP · CWE-552
CISA KEV 3 Nov 20214.0 years after publication

Timeline

Days relative to CVE publication
t=0+180+360+540+720+900+1080+1260+1440CVE published9 Nov 2017 · t = 0First public PoC6 Jan 2021 · t+3.2yAdded to CISA KEV3 Nov 2021 · t+4.0y

First public PoC 3.2 years after publication; added to CISA KEV 4.0 years after publication. First PoC: ropbear/CVE-2017-16651 (created 6 Jan 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs · 1 pending

PoCs 1
RepositoryCreatedStarsAssessment
ropbear/CVE-2017-16651 6 Jan 2021 +3.2 y 3 PoC
Pending 1
RepositoryCreatedStarsAssessment
sephiroth950911/CVE-2017-16651-Exploit 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 1 PoC repo

GET /

Query
_task=login _task=settings _action=upload-display _from=timezone _file=rcmfile1
Seen in
1 repo: ropbear/CVE-2017-16651
Evidence
ropbear/CVE-2017-16651/exploit.py:14 ropbear/CVE-2017-16651/exploit.py:42

POST /

Query
_task=login
Body markers
_token= _task=login _action=login _timezone[files][1][path]= _url=_task%3Dlogin _user=user@example.com _pass=password in application/x-www-form-urlencoded
Seen in
1 repo: ropbear/CVE-2017-16651
Evidence
ropbear/CVE-2017-16651/exploit.py:33

Regex

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

GET /
(?i)^/\?(?:.*&)?_task=login.*_task=settings.*_action=upload-display.*_from=timezone.*_file=rcmfile1
POST /
(?i)^/\?(?:.*&)?_task=login

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-16651 Roundcube Roundcube Webmail exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"_task=login"; http.uri; content:"_task=settings"; http.uri; content:"_action=upload-display"; http.uri; content:"_from=timezone"; http.uri; content:"_file=rcmfile1"; reference:url,poc.griffinguard.io/cve/CVE-2017-16651; classtype:web-application-attack; sid:9348525; rev:1;)
POST /
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2017-16651 Roundcube Roundcube Webmail exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"_task=login"; http.request_body; content:"_token="; http.request_body; content:"_task=login"; http.request_body; content:"_action=login"; http.request_body; content:"_timezone[files][1][path]="; http.request_body; content:"_url=_task%3Dlogin"; http.request_body; content:"_user=user@example.com"; http.request_body; content:"_pass=password"; reference:url,poc.griffinguard.io/cve/CVE-2017-16651; classtype:web-application-attack; sid:9248367; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /
title: Roundcube Roundcube Webmail exploit attempt (CVE-2017-16651)
id: gg-pocmon-cve-2017-16651-9348525
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-16651. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2017-16651
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-query|contains|all:
      - '_task=login'
      - '_task=settings'
      - '_action=upload-display'
      - '_from=timezone'
      - '_file=rcmfile1'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2017.16651
POST /
title: Roundcube Roundcube Webmail exploit attempt (CVE-2017-16651)
id: gg-pocmon-cve-2017-16651-9248367
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-16651. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2017-16651
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-query|contains|all:
      - '_task=login'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2017.16651