CVE-2019-9858
CVSS V2 Medium 6.5
CVSS V3 High 8.8
Description
Remote code execution was discovered in Horde Groupware Webmail 5.2.22 and 5.2.17. Horde/Form/Type.php contains a vulnerable class that handles image upload in forms. When the Horde_Form_Type_image method onSubmit() is called on uploads, it invokes the functions getImage() and _getUpload(), which uses unsanitized user input as a path to save the image. The unsanitized POST parameter object[photo][img][file] is saved in the $upload[img][file] PHP variable, allowing an attacker to manipulate the $tmp_file passed to move_uploaded_file() to save the uploaded file. By setting the parameter to (for example) ../usr/share/horde/static/bd.php, one can write a PHP backdoor inside the web root. The static/ destination folder is a good candidate to drop the backdoor because it is always writable in Horde installations. (The unsanitized POST parameter went probably unnoticed because it's never submitted by the forms, which default to securely using a random path.)
Overview
- CVE ID
- CVE-2019-9858
- Assigner
- cve@mitre.org
- Vulnerability Status
- Analyzed
- Published Version
- 2019-05-29T17:29:00
- Last Modified Date
- 2022-04-18T17:13:18
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:horde:groupware:5.2.17:*:*:*:webmail:*:*:* | 1 | OR | ||
cpe:2.3:a:horde:groupware:5.2.22:*:*:*:webmail:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 1 | OR |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:L/Au:S/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- LOW
- Authentication
- SINGLE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 6.5
- Severity
- MEDIUM
- Exploitability Score
- 8
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 8.8
- Base Severity
- HIGH
- Exploitability Score
- 2.8
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
https://ssd-disclosure.com/?p=3814&preview=true | Exploit Third Party Advisory |
http://packetstormsecurity.com/files/152476/Horde-Form-Shell-Upload.html | Exploit Third Party Advisory VDB Entry |
https://lists.debian.org/debian-lts-announce/2019/06/msg00007.html | Mailing List Third Party Advisory |
https://www.debian.org/security/2019/dsa-4468 | Third Party Advisory |
https://seclists.org/bugtraq/2019/Jun/31 | Mailing List Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2019-9858 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9858 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 15:41:59 | Added to TrackCVE | |||
2022-12-03 21:25:23 | 2019-05-29T17:29Z | 2019-05-29T17:29:00 | CVE Published Date | updated |
2022-12-03 21:25:23 | 2022-04-18T17:13:18 | CVE Modified Date | updated | |
2022-12-03 21:25:23 | Analyzed | Vulnerability Status | updated |