CVE-2018-7662
published 2018-03-04CVE-2018-7662: Couch through 2.0 allows remote attackers to discover the full path via a direct request to includes/mysql2i/mysql2i.func.php or addons/phpmailer/phpmailer.php.
PriorityP350medium5.3CVSS 3.0
AVNACLPRNUINSUCLINAN
EXPLOIT
EPSS
43.52%
98.6th percentile
Couch through 2.0 allows remote attackers to discover the full path via a direct request to includes/mysql2i/mysql2i.func.php or addons/phpmailer/phpmailer.php.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| couchcms | couch | <= 2.0 | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Send a direct unauthenticated HTTP GET request to /includes/mysql2i/mysql2i.func.php; a vulnerable CouchCMS instance will return a PHP fatal error string disclosing the full server path. ↗
- →Send a direct unauthenticated HTTP GET request to /addons/phpmailer/phpmailer.php; a vulnerable CouchCMS instance will return a PHP fatal error string disclosing the full server path. ↗
- →Match response body for both 'mysql2i.func.php on line 10' AND 'Fatal error: Cannot redeclare mysql_affected_rows() in' to confirm exploitation of the mysql2i path disclosure vector. ↗
- →Match response body for both 'phpmailer.php on line 10' AND 'Fatal error: Call to a menber function add_event_listener() on a non-object in' to confirm exploitation of the phpmailer path disclosure vector. ↗
- ·The vulnerability only triggers if PHP is configured to display errors (display_errors = On); hardened production servers with error display disabled will not return the path disclosure response strings. ↗
- ·The Nuclei template uses stop-at-first-match, so only one of the two paths needs to return a positive match for the check to succeed; both paths should be tested independently in manual assessments. ↗
CVSS provenance
nvdv3.05.3MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
Nuclei
CouchCMS <= 2.0 - Path Disclosure
nuclei·CVSS 5.3
CVE-2018-7662 [MEDIUM] CouchCMS <= 2.0 - Path Disclosure
CouchCMS <= 2.0 - Path Disclosure
CouchCMS <= 2.0 allows remote attackers to discover the full path via a direct request to includes/mysql2i/mysql2i.func.php or addons/phpmailer/phpmailer.php.
Template:
id: CVE-2018-7662
info:
name: CouchCMS <= 2.0 - Path Disclosure
author: ritikchaddha
severity: medium
description: CouchCMS <= 2.0 allows remote attackers to discover the full path via a direct request to includes/mysql2i/mysql2i.func.php or addons/phpmailer/phpmailer.php.
impact: |
An attacker can exploit this vulnerability to gain knowledge of the server's directory structure, potentially aiding in further attacks.
remediation: |
Upgrade to the latest version of CouchCMS (2.1 or higher) to mitigate this vulnerability.
reference:
- https://github.com/CouchCMS/CouchCMS/issues/46
- https
No writeups or analysis indexed.
2018-03-04
Published