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.
Timeline
Days relative to CVE publicationFirst 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
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ropbear/CVE-2017-16651 | 6 Jan 2021 +3.2 y | 3 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit auxiliary: Roundcube TimeZone Authenticated File Disclosure (auxiliary/gather/roundcube_auth_file_read) | 11 Aug 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /
- 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=passwordinapplication/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.
(?i)^/\?(?:.*&)?_task=login.*_task=settings.*_action=upload-display.*_from=timezone.*_file=rcmfile1
(?i)^/\?(?:.*&)?_task=login
Suricata
Template generated from PoC characteristics. Review before deploying.
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;)
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.
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
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