
Scanner and proof-of-concept exploit for CVE-2010-4239, a local file inclusion in Tiki Wiki CMS 5.2 via the tiki-jsplugin.php language parameter.

Scanner de vulnerabilidades rápido baseado em YAML, com motor de detecção orientado por templates para testes de segurança automatizados em aplicações web, APIs, redes, DNS e infraestrutura em nuvem.

Scanner de segurança de aplicações web de código aberto para detecção automatizada de vulnerabilidades, testes de penetração manuais e testes de segurança de API com um motor de intercepção baseado em proxy.

Tiki Wiki CMS Groupware 5.2 - Local File Inclusion
| field | value |
|---|---|
| CVE | CVE-2010-4239 |
| severity | critical |
| CVSS | 9.8 (template and NVD primary CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; NVD also lists 7.5 CVSS:2.0 AV:N/AC:L/Au:N/C:P/I:P/A:P) |
| fixed in | Tiki 5.3 (5.x series, commit "Sanitize input"; also present in 5.4 and 6.0) |
| class | local file inclusion / directory traversal via the language parameter of tiki-jsplugin.php (NVD: CWE-20) |
| 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/CT54KR
Tiki Wiki CMS Groupware 5.2 is susceptible to a local file inclusion
vulnerability. tiki-jsplugin.php copies the raw language request
parameter (after an XSS tag-stripping filter that keeps . and /)
into the cache file path and hands that path straight to
file_exists()/readfile(), so a remote attacker can walk out of the
document root with ../ segments and have arbitrary files echoed back.
In Tiki 5.2 the file tiki-jsplugin.php does:
$filter = TikiFilter::get('xss');
$_REQUEST['plugin'] = ... $filter->filter($_GET['plugin']) ...;
$_REQUEST['language'] = ... $filter->filter($_GET['language']) ...;
$cache = 'temp/cache/wikiplugin_' . $plugin . '_' . $_REQUEST['language'];
if (file_exists($cache)) { readfile($cache); exit; }
The XSS filter only strips tags and entity-encoded characters; dots and
slashes survive, so language=../../../../../../../../../../windows/win.ini
is concatenated verbatim into the readfile() path and the ini file is
dumped into the JavaScript response. The LFI can leak configuration
files (database credentials from tiki/db/-adjacent config), which
chains into full compromise; this is why the score is the full 9.8
C:H/I:H/A:H. The template matchers are taken from the fixed-layout
windows/win.ini (; for 16-bit app support, [fonts],
[extensions]). The fix (Tiki 5.3, backported to 6.0, commit
"[FIX/bp 29618] Sanitize input") routes language through the
TikiFilter::get('alpha') word filter instead, which reduces the value
to plain letters and kills the traversal.
max-request: 1); no JavaScript is executed.GET /tiki-jsplugin.php?plugin=x&language=
../../../../../../../../../../windows/win.ini on the target.bit app support, fonts, extensions
(condition: and, case-sensitive substring checks).check(url) returns (True, details) only when every word is
present; the per-target extractor string is
win.ini inclusion words=N/3 status=....token is computed over the JSON result so a merely
reflected page is distinguishable from a real ini inclusion.urls.txt are auto-prefixed with http://.# scanner (GitHub side): streamed CSV + optional JSON sidecar
python scanner/CVE-2010-4239/scanner.py urls.txt 8 CVE-2010-4239.csv --json CVE-2010-4239.json
# exploit (satoshidisk side): result dict + optional CSV/JSON dumps
python exploit/CVE-2010-4239/exploit.py http://target/ --csv CVE-2010-4239.csv --json CVE-2010-4239.json --verbose
urls.txt is a plain file, one target per line, # for comments.
RCE POC SUITE
scanner : CVE-2010-4239 v1.0.0
threads : 8 | csv: CVE-2010-4239.csv | json: CVE-2010-4239.json
RCE POC SUITE
[..] loaded 1 target(s) from urls.txt
[..] [1/1] http://host1 -> VULNERABLE
[..] summary: total=1 vulnerable=1 not-vuln=0 errors=0
[..] timing : avg=9ms max=10ms wall=0.01s
[..] report saved: CVE-2010-4239.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-2010-4239/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.
Este repositório contém o componente scanner da Greenbone Community Edition.