cbcvebase.
CVE-2016-7982
published 2017-01-18

CVE-2016-7982: Directory traversal vulnerability in ecrire/exec/valider_xml.php in SPIP 3.1.2 and earlier allows remote attackers to enumerate the files on the system via the…

PriorityP267high7.5CVSS 3.0
AVNACLPRNUINSUCHINAN
EXPLOIT
EPSS
20.52%
97.2th percentile
Directory traversal vulnerability in ecrire/exec/valider_xml.php in SPIP 3.1.2 and earlier allows remote attackers to enumerate the files on the system via the var_url parameter in a valider_xml action.

Affected

5 ranges
VendorProductVersion rangeFixed in
debianspip< spip 3.1.3-1 (bullseye)spip 3.1.3-1 (bullseye)
spipspip<= 3.1.2
spipspip>= 0 < 3.1.3-13.1.3-1
spipspip>= 0 < 3.1.3-13.1.3-1
spipspip>= 0 < 3.1.3-13.1.3-1

Detection & IOCsextracted from sources · hover to see the quote

urlhttp://spip-dev.srv/ecrire/?exec=valider_xml&var_url=/etc&ext=ini&recur=2
urlhttp://spip-dev.srv/ecrire/?exec=valider_xml&var_url=file:///etc&ext=ini&recur=2
pathecrire/exec/valider_xml.php
  • Monitor HTTP requests to the SPIP endpoint `ecrire/` with query parameters `exec=valider_xml` combined with a `var_url` parameter containing filesystem paths (e.g. `/etc`) or PHP stream wrappers (e.g. `file:///`) — this is the direct exploitation pattern for file enumeration.
  • Detect bypass attempts using PHP Wrappers in the `var_url` parameter (e.g. `file:///`) to circumvent path traversal protections introduced in SPIP 3.1.2.
  • Alert on HTTP responses from `ecrire/exec/valider_xml.php` that contain directory listings or file names, as the vulnerable code echoes enumerated file results directly to the response output.
  • ·SPIP 3.1.2 introduced a partial path traversal fix that was bypassable via PHP stream wrappers (`file:///`); detection rules must account for both raw path and wrapper-prefixed `var_url` values to avoid blind spots.
  • ·Additional bypass vectors exist for Windows systems; detection logic should not be limited to Unix-style paths.

CVSS provenance

nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
osv7.5HIGH
vendor_debian7.5HIGH
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.