rcekit 3.6.1__tar.gz → 3.12.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rcekit-3.6.1 → rcekit-3.12.1}/CHANGELOG.md +710 -35
- {rcekit-3.6.1 → rcekit-3.12.1}/CONTRIBUTING.md +22 -1
- {rcekit-3.6.1 → rcekit-3.12.1}/PKG-INFO +177 -61
- {rcekit-3.6.1 → rcekit-3.12.1}/README.md +176 -60
- {rcekit-3.6.1 → rcekit-3.12.1}/docs/guide.md +270 -5
- {rcekit-3.6.1 → rcekit-3.12.1}/docs/reference.md +68 -25
- {rcekit-3.6.1 → rcekit-3.12.1}/rcekit.egg-info/PKG-INFO +177 -61
- {rcekit-3.6.1 → rcekit-3.12.1}/rcekit.egg-info/SOURCES.txt +4 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/rcekit.py +1502 -177
- {rcekit-3.6.1 → rcekit-3.12.1}/templates/payloads.json +99 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/README.md +290 -32
- rcekit-3.12.1/tests/bench/cases/gitlist-cve-2018-1000533-argv.json +92 -0
- rcekit-3.12.1/tests/bench/cases/php-inclusion-file-read.json +86 -0
- rcekit-3.12.1/tests/bench/cases/php-inclusion-include-execute.json +108 -0
- rcekit-3.12.1/tests/bench/cases/thinkphp-lang-include-execute.json +95 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/test_docs.py +295 -1
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/test_generator.py +1908 -56
- {rcekit-3.6.1 → rcekit-3.12.1}/LICENSE +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/MANIFEST.in +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/SECURITY.md +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/docs/generation.md +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/docs/verify-it-yourself.md +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/pyproject.toml +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/rcekit.egg-info/dependency_links.txt +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/rcekit.egg-info/entry_points.txt +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/rcekit.egg-info/top_level.txt +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/setup.cfg +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/fastjson-1.2.83.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/hugegraph-gremlin-eval.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/hugegraph-gremlin-reflected-class.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/hugegraph-gremlin-shell.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/log4shell-cve-2021-44228.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/mongo-express-where-boolean.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/opentsdb-cve-2023-25826.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/struts2-s2-001.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/tomcat-cve-2017-12615.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/webmin-cve-2019-15107-enumerated.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/webmin-cve-2019-15107-file.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/webmin-cve-2019-15107-time.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/cases/webmin-cve-2019-15107.json +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/requests/mongo-express-literal.txt +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/requests/mongo-express-where.txt +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/requests/webmin.txt +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/bench/runner.py +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/test_bench_runner.py +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tests/test_corpus_embedding.py +0 -0
- {rcekit-3.6.1 → rcekit-3.12.1}/tools/embed_corpus.py +0 -0
|
@@ -10,41 +10,53 @@ formats, or the template schema.
|
|
|
10
10
|
|
|
11
11
|
### Documentation
|
|
12
12
|
|
|
13
|
-
- **
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
13
|
+
- **Two bench notes still named a blocker that had already been removed.** The
|
|
14
|
+
second-order row said "the reason is the harness" and the Chartbrew paragraph
|
|
15
|
+
said "there is no setup hook in the runner" — both true when written, both
|
|
16
|
+
false the moment a chain became the delivery the engine drives. A reason that
|
|
17
|
+
has expired is worse than no reason: it sends the next reader to fix something
|
|
18
|
+
already fixed, and it hides whatever is actually in the way now. Both now
|
|
19
|
+
describe the state of the code, which is the only thing a reader of this
|
|
20
|
+
repository can check them against.
|
|
21
|
+
|
|
22
|
+
The harness half is settled and **measured rather than argued**. Run against a
|
|
23
|
+
local target whose store sits behind a login — `POST /login` hands out a
|
|
24
|
+
token, `POST /notes` requires it and answers `saved` with no echo, `GET
|
|
25
|
+
/render` renders the stored value through a shell — `--verify-chain` with
|
|
26
|
+
`--methods reflected --observe-url` reports `executed` on the OBSERVED
|
|
27
|
+
channel, on a computed value absent from that endpoint's pre-injection
|
|
28
|
+
control. Against the twin endpoint that renders the same value and executes
|
|
29
|
+
nothing, the same invocation sends 19 probes and reports `negative` on all 19.
|
|
30
|
+
No case schema change was needed: `invocation` already takes arbitrary flags
|
|
31
|
+
and `{bench}` already expands.
|
|
32
|
+
|
|
33
|
+
So the second-order row's blocker is now the absence of a target, and the note
|
|
34
|
+
says what a target must look like precisely enough to screen one — the store
|
|
35
|
+
may be authenticated, the **render may not be** behind the chain's own
|
|
36
|
+
session, because `_fire_observed` takes the flags' url, method, data and
|
|
37
|
+
headers and nothing else: no cookie jar, no chain state, no `{var}`.
|
|
38
|
+
|
|
39
|
+
**All 332 environments** in a vulhub checkout were then screened against that,
|
|
40
|
+
and the note records the funnel rather than only the conclusion: 168 removed
|
|
41
|
+
by a class that cannot be a deferred execution sink, 164 left, 18 whose own
|
|
42
|
+
documentation describes both a store and a later act on it, and 0 surviving a
|
|
43
|
+
read of those 18. They are grouped by the seven reasons they failed rather
|
|
44
|
+
than by product, because the reason is the part that generalises — in-band
|
|
45
|
+
renders, `write`'s shape, non-HTTP protocols, no computed value reaching any
|
|
46
|
+
response, library demos with no HTTP surface, an interactive setup wizard, and
|
|
47
|
+
client-side execution. `cacti/CVE-2025-24367` is the closest miss and is named
|
|
48
|
+
as such.
|
|
49
|
+
|
|
50
|
+
Chartbrew's obstacle did not disappear, it **moved** — from the harness, where
|
|
51
|
+
it was fixable, to the oracle, where it is not cheaply: a chain can now reach
|
|
52
|
+
its three setup steps, but `boolean` is refused on a chain by name
|
|
53
|
+
(`CHAIN_UNSUPPORTED_METHODS`) because it compares response shape across a
|
|
54
|
+
shuffled series, which a chain's setup steps change for reasons that have
|
|
55
|
+
nothing to do with the sink.
|
|
56
|
+
|
|
57
|
+
The local target is deliberately **not** proposed as a case. A purpose-written
|
|
58
|
+
vulnerable app composed under Docker is a fixture wearing Docker, and a
|
|
59
|
+
fixture is the one thing a bench case exists not to be.
|
|
48
60
|
|
|
49
61
|
### Added
|
|
50
62
|
|
|
@@ -378,6 +390,661 @@ formats, or the template schema.
|
|
|
378
390
|
|
|
379
391
|
No version bump -- this is documentation and tests only.
|
|
380
392
|
|
|
393
|
+
## [3.12.1] — 2026-10-31
|
|
394
|
+
|
|
395
|
+
### Fixed
|
|
396
|
+
|
|
397
|
+
- **RCEKit died mid-report on a Windows console, and leaked its own path doing
|
|
398
|
+
it.** Python encodes stdout with the locale's codec, cp1252 on a stock
|
|
399
|
+
Windows install, and raises `UnicodeEncodeError` on anything that codec has
|
|
400
|
+
no byte for. Three strings carried `U+2192`: the non-execution section
|
|
401
|
+
closing in the `[detect]` report, the same line in `[verify-chain]`, and
|
|
402
|
+
`time`'s own evidence summary -- which is not only printed but becomes the
|
|
403
|
+
`timing-sink` verdict's detail, so it reaches `--detect-json` and the written
|
|
404
|
+
reports too.
|
|
405
|
+
|
|
406
|
+
The shape of the failure was the worst available. The findings above the
|
|
407
|
+
closing line had already been printed, so the run looked like it crashed
|
|
408
|
+
while its verdicts scrolled past, the exit status was 1 from an unhandled
|
|
409
|
+
exception, and the traceback carried the module's absolute path -- which the
|
|
410
|
+
strict posture for this project's own product code forbids.
|
|
411
|
+
|
|
412
|
+
Any run reporting `timing-sink`, `file-read`, `file-write`,
|
|
413
|
+
`evaluation-sink`, `deserialization-sink`, `lookup-sink` or `needs-review`
|
|
414
|
+
reached it, as did any redirected pipe under a non-UTF-8 locale. CI runs on
|
|
415
|
+
Linux under UTF-8, so it had never seen it; the unit suite surfaced it only
|
|
416
|
+
through a subprocess test, and named an assertion about a missing message
|
|
417
|
+
rather than the encoder.
|
|
418
|
+
|
|
419
|
+
Those three are ASCII now, and a test walks `rcekit.py`'s string literals and
|
|
420
|
+
refuses any character cp1252 cannot encode, with one justified exception for
|
|
421
|
+
the byte-order mark `strip_bom` has to *recognise*. `main` also sets
|
|
422
|
+
`errors="replace"` on its own streams, because a guard that holds only while
|
|
423
|
+
someone remembers it is not a guard: a character that slips past prints as
|
|
424
|
+
`?` and the report finishes. A report one character wrong is worth having; a
|
|
425
|
+
traceback in place of a report is not. The streams are not switched to UTF-8,
|
|
426
|
+
which would trade a visible `?` for mojibake throughout on the console the
|
|
427
|
+
operator is actually reading.
|
|
428
|
+
|
|
429
|
+
### Documentation
|
|
430
|
+
|
|
431
|
+
- **Quick start had no scenario for either sink that is not a shell.** `argv`
|
|
432
|
+
(3.7.0) and `include` (3.12.0) both reach `executed`, and both appeared only
|
|
433
|
+
inside one sentence of the widest-run scenario. The reason is structural and
|
|
434
|
+
now said out loud: scenarios 1-4 ask *what can you observe*, which is what
|
|
435
|
+
decides the oracle, and neither of those methods answers anything on that
|
|
436
|
+
axis -- both sinks return output and neither runs a command. So there is a
|
|
437
|
+
fifth scenario asking what the sink **is**, with a worked command for each,
|
|
438
|
+
and the section says which question each scenario answers.
|
|
439
|
+
|
|
440
|
+
- **The field guide offered ten of eleven methods, and its contents list
|
|
441
|
+
nineteen of twenty-one sections.** `include` had no row in the method-choice
|
|
442
|
+
table and no section; the `argv` section had been missing from the contents
|
|
443
|
+
list since 3.7.0. `docs/guide.md` now has both, and the drift was possible
|
|
444
|
+
because that table and that list were the ones in this repository no test
|
|
445
|
+
read -- the same hole the comparison table had when it named seven of nine
|
|
446
|
+
methods for two releases. Three new test classes close it: the guide's
|
|
447
|
+
method-choice table is pinned to `DETECTION_METHODS` in both directions, and
|
|
448
|
+
every page carrying a contents list has it checked against its own sections,
|
|
449
|
+
by anchor rather than by label, since `docs/reference.md` shortens four
|
|
450
|
+
entries on purpose.
|
|
451
|
+
|
|
452
|
+
- **Both lists of environments were wrong, in opposite directions, and neither
|
|
453
|
+
was checked.** The README named eleven and left out `powershell`, `sql` and
|
|
454
|
+
`kubernetes`; `docs/reference.md` named fourteen, left out `powershell`, and
|
|
455
|
+
mentioned `sql` only in the prose underneath. The real answer is sixteen and
|
|
456
|
+
**not the same set in both modes** -- `powershell` and `sql` have detection
|
|
457
|
+
probes and no exploitation payloads, `graphql` and `mongodb` the reverse --
|
|
458
|
+
which is worth knowing before pinning one, because a name with nothing behind
|
|
459
|
+
it for the mode you are running narrows the run to nothing. The reference
|
|
460
|
+
carries that as a table with a test behind it, read by generating records
|
|
461
|
+
rather than by reading corpus keys: `postgres` is a key inside a payload
|
|
462
|
+
category and emits nothing, so naming it would have replaced an incomplete
|
|
463
|
+
claim with a wrong one. The README's twelve lines enumerating seven flags'
|
|
464
|
+
value sets are a pointer to those tested lists instead.
|
|
465
|
+
|
|
466
|
+
- **`CONTRIBUTING.md` never mentioned `tools/embed_corpus.py`.** Someone
|
|
467
|
+
following it alone would edit `templates/payloads.json`, not regenerate the
|
|
468
|
+
copy inside the module, and meet a red suite complaining about drift with the
|
|
469
|
+
fix documented only in the README.
|
|
470
|
+
|
|
471
|
+
## [3.12.0] — 2026-10-31
|
|
472
|
+
|
|
473
|
+
### Added
|
|
474
|
+
|
|
475
|
+
- **`include` reaches execution, and not by the route the roadmap expected.**
|
|
476
|
+
The obvious one is a wrapper carrying code -- `data://`, `php://input` -- and
|
|
477
|
+
both need `allow_url_include`, which PHP has defaulted off since 5.2. The
|
|
478
|
+
target said so in its own words when 3.11.0 measured it:
|
|
479
|
+
`data:// wrapper is disabled in the server configuration by
|
|
480
|
+
allow_url_include=0`.
|
|
481
|
+
|
|
482
|
+
What works on a default build is to make the sink include a script that
|
|
483
|
+
*writes*, and hand that script its arguments through the request. PEAR's
|
|
484
|
+
`pearcmd.php` is present in the official PHP images, `register_argc_argv`
|
|
485
|
+
turns the query string into its argv, and `config-create` writes its output
|
|
486
|
+
to a path those arguments name -- so the computed one-liner goes in the
|
|
487
|
+
output. `--include-write-url` names where that file is served, and without it
|
|
488
|
+
`include` proves reads only, because there is no proof to be had.
|
|
489
|
+
|
|
490
|
+
Two things about the shape were measured rather than reasoned. The payload is
|
|
491
|
+
the **whole query string**, not one parameter's value: the script's arguments
|
|
492
|
+
have to sit outside the parameter carrying the traversal, which is why the
|
|
493
|
+
wrapper writes that parameter's name itself (`--include-write-param`, default
|
|
494
|
+
`lang`) and why the payload needs `--verify-url-location raw` to reach the
|
|
495
|
+
wire with its `&` intact. And the proof is the **second** request: the write
|
|
496
|
+
answers 200 whether or not anything was interpreted.
|
|
497
|
+
|
|
498
|
+
So the ladder has three outcomes and they are three different findings. The
|
|
499
|
+
product in the fetched file is `executed`. The source form coming back
|
|
500
|
+
verbatim is `file-write` -- the file is on the target and nothing interpreted
|
|
501
|
+
it, the distinction `write` has drawn since 2.31.0. Neither is `negative`.
|
|
502
|
+
The read rungs are untouched and still report `file-read`.
|
|
503
|
+
|
|
504
|
+
`include`'s ceiling is now `executed` with `file-read` and `file-write` below
|
|
505
|
+
it, and its `question` deliberately stays `file-read`. A run stops asking a
|
|
506
|
+
question once it is answered, so `execution` there would skip this method on
|
|
507
|
+
any target where execution was already proven -- discarding a file read with
|
|
508
|
+
its own remediation. The tier says how strong an answer the method can reach
|
|
509
|
+
and the question says what it asks; they are different axes and this is the
|
|
510
|
+
method where that matters.
|
|
511
|
+
|
|
512
|
+
Bench case `thinkphp-lang-include-execute` on ThinkPHP 6.0.12: `executed`
|
|
513
|
+
against the real build in 2.6s from a cold start, the fetch returning
|
|
514
|
+
11688702 for 6022*1941 with the source form absent.
|
|
515
|
+
|
|
516
|
+
### Changed
|
|
517
|
+
|
|
518
|
+
- **A verdict's tier now comes from the probe shape, not only the method.**
|
|
519
|
+
`Probe` carries an optional `tier` for the shapes that reach less than their
|
|
520
|
+
method can, and the per-probe result assembly reads it before falling back
|
|
521
|
+
to the method's ceiling. This is what keeps 3.11.0's observed-channel fix
|
|
522
|
+
true now that `include`'s ceiling is `executed`: the second-order channel
|
|
523
|
+
awards the tier carried in the result, so carrying the method's ceiling
|
|
524
|
+
there would report a second-order *file read* as execution. The guard
|
|
525
|
+
written for that fix caught it, and `docs/reference.md` now states the rule
|
|
526
|
+
as per-shape rather than per-method.
|
|
527
|
+
|
|
528
|
+
**The control was chosen by measurement.** The obvious one -- `--methods
|
|
529
|
+
reflected` on the same URL -- is wrong: measured, it sends 37 probes and 32
|
|
530
|
+
come back `error`, because a shell payload sent raw into a query string breaks
|
|
531
|
+
the request before it arrives, and a control whose probes mostly never reach
|
|
532
|
+
the target says nothing about false confirmation. So the control is a tier
|
|
533
|
+
ceiling instead: the same build, the same rung, the same probes, with no
|
|
534
|
+
`--include-write-url`. Measured, 16 probes reach the target and all 16 are
|
|
535
|
+
`negative`. The execution verdict comes from reading the written file back,
|
|
536
|
+
and without somewhere to read it from this method does not reach `executed`
|
|
537
|
+
on a target where it otherwise does.
|
|
538
|
+
|
|
539
|
+
### Fixed
|
|
540
|
+
|
|
541
|
+
- **Every traversal depth now writes its own file and computes its own
|
|
542
|
+
product.** They shared one filename and one product per wrapper, so they also
|
|
543
|
+
shared one read-back URL -- and a depth whose own include *failed* fetched
|
|
544
|
+
the file an earlier depth had written and reported it as its own execution.
|
|
545
|
+
Measured: depth 5, with `Failed opening` in its own response body, returned
|
|
546
|
+
`executed` carrying depth 3's product. The run's verdict about the target
|
|
547
|
+
stayed right, because the file only exists if some depth did execute; what
|
|
548
|
+
was wrong is the map of which shapes the sink accepts, which is what
|
|
549
|
+
`--confirm-depth every` promises and what each finding prints as its carrier.
|
|
550
|
+
Nor did it need that flag: the early stop fires only on `executed`, so a
|
|
551
|
+
depth reaching `file-write` left the carrier running and the next one read
|
|
552
|
+
the same verbatim file. The same class as the `expr` shape 3.0.1 retired from
|
|
553
|
+
`reflected` -- a shape naming something it had not proved.
|
|
554
|
+
|
|
555
|
+
- **`include` missed execution on a sink that opens the path as given.** The
|
|
556
|
+
PEAR traversal named `usr/local/lib/php/pearcmd` with no extension, which is
|
|
557
|
+
right for a framework loader that appends `.php` itself -- ThinkPHP's
|
|
558
|
+
language loader includes `$file . '.php'` -- and wrong for a bare
|
|
559
|
+
`include $_GET['file'];`, where PHP appends nothing and the file is never
|
|
560
|
+
found. Measured on `vulhub/php:7.1.3-apache`, a build whose PEAR script is
|
|
561
|
+
present and whose `register_argc_argv` is on: the extensionless form answered
|
|
562
|
+
200 on the write, created no file, read back 404 and reported a clean
|
|
563
|
+
`negative` on a sink RCEKit reaches. The corpus now declares both shapes;
|
|
564
|
+
which one works is a property of the sink, so both are sent and at most one
|
|
565
|
+
confirms. New bench case `php-inclusion-include-execute`: `executed` in 2.0s
|
|
566
|
+
from a cold start, against the same build whose read case reports
|
|
567
|
+
`file-read`.
|
|
568
|
+
|
|
569
|
+
That case's own notes said execution was out of reach here and the only
|
|
570
|
+
remaining route was two-step log poisoning. It was right about
|
|
571
|
+
`allow_url_include` and wrong about the conclusion, and the correction is in
|
|
572
|
+
this change too: a script already on disk that *writes* gets code past that
|
|
573
|
+
setting in one step.
|
|
574
|
+
|
|
575
|
+
### Not built, deliberately
|
|
576
|
+
|
|
577
|
+
- **Windows and PowerShell parity**, the other half of this phase, is blocked on
|
|
578
|
+
a target rather than on design. Measured: none of vulhub's 332 environments
|
|
579
|
+
uses a Windows base image, and this machine's Docker daemon is
|
|
580
|
+
`linux/x86_64`, which cannot run Windows containers at all. PowerShell
|
|
581
|
+
exploitation payloads and `cmd.exe` break-out contexts could be written, and
|
|
582
|
+
nothing could prove them -- and `docs/generation.md` advertises that every
|
|
583
|
+
generated payload runs, so shipping an unmeasured category would weaken a
|
|
584
|
+
stated property rather than extend coverage. It waits for a target.
|
|
585
|
+
|
|
586
|
+
## [3.11.0] — 2026-10-31
|
|
587
|
+
|
|
588
|
+
### Added
|
|
589
|
+
|
|
590
|
+
- **A sink that opens a path the request names had no method, and the tier it
|
|
591
|
+
earns is not execution.** `--methods include` confirms that the target read a
|
|
592
|
+
file RCEKit chose, and reports it as a new verdict, `file-read` — the mirror
|
|
593
|
+
of `file-write`, which `write` has reported since 2.31.0 for a file served
|
|
594
|
+
but not interpreted.
|
|
595
|
+
|
|
596
|
+
The ceiling is structural rather than cautious, and it is the whole of what
|
|
597
|
+
this method had to get right. Every method here that proves execution rests
|
|
598
|
+
on a value the target **computed** from operands random to that probe,
|
|
599
|
+
because that is the one thing reflection cannot produce. A file read has no
|
|
600
|
+
such value: RCEKit does not know what is in the target's files, so its
|
|
601
|
+
evidence can only be content recognised in advance. A static signature
|
|
602
|
+
differenced against a payload-free control is exactly the evidence 3.8.0
|
|
603
|
+
demoted the chain's in-band verdict for, and the reasoning does not change
|
|
604
|
+
because the subject did. So `file-read` is where this stops, and there is no
|
|
605
|
+
path upward from it.
|
|
606
|
+
|
|
607
|
+
**The signature has to be the file's content, not the path.** Measured
|
|
608
|
+
against vulhub `php/inclusion`, whose sink is `include $_GET['file'];`: when
|
|
609
|
+
the path cannot be opened, PHP echoes it back inside its own warning, twice.
|
|
610
|
+
An oracle asking "did my string come back" confirms on every probe there,
|
|
611
|
+
against a target that read nothing. So the path travels as the probe's
|
|
612
|
+
*forbidden* literal — its presence says the sink reflected the request — and
|
|
613
|
+
only the content signature decides the verdict. A response carrying both is
|
|
614
|
+
still a read, and the finding says the target also echoes the path.
|
|
615
|
+
|
|
616
|
+
**Traversal depth is swept, not configured.** Which depth works is a property
|
|
617
|
+
of the sink's own directory, not of the target: the same build answered an
|
|
618
|
+
absolute `/proc/version` and a relative `../../../proc/version` alike, and
|
|
619
|
+
measured, depths 1 and 2 failed while 3 through 8 confirmed, because the sink
|
|
620
|
+
runs from `/var/www/html`. A sink that strips a leading separator answers only
|
|
621
|
+
the relative form, so both go out.
|
|
622
|
+
|
|
623
|
+
**The default read target is chosen for what it does not return.** Proving a
|
|
624
|
+
read needs content predictable enough to recognise and absent from the
|
|
625
|
+
control; it does not need the target's secrets on the operator's screen. So
|
|
626
|
+
`/proc/version` is the default, and `/etc/passwd` sits one safety rung up —
|
|
627
|
+
the way the corpus already gates credential-adjacent payloads — which means a
|
|
628
|
+
default run proves the read with a kernel build string and account names come
|
|
629
|
+
back only for an operator who asked for them.
|
|
630
|
+
|
|
631
|
+
The wrappers and the readable files live in the corpus
|
|
632
|
+
(`include_wrappers`, `include_read_targets`), which is the seam the bridges,
|
|
633
|
+
the eval carriers and `argv_primitives` already use: a wrapper or a
|
|
634
|
+
recognisable file can be added without touching Python. `php://filter`
|
|
635
|
+
needed no oracle of its own — the evidence search already peels base64 runs
|
|
636
|
+
of 16 characters or more, and a file's worth of base64 is far past that, so
|
|
637
|
+
the same signature is found inside the encoded blob.
|
|
638
|
+
|
|
639
|
+
`include` declares its own `question` rather than leaving the default. A run
|
|
640
|
+
stops asking a question once it is answered, so `execution` would have made
|
|
641
|
+
this method skipped on any target where execution was already proven —
|
|
642
|
+
discarding a finding with its own remediation, which is the mistake `lookup`
|
|
643
|
+
declares a question to avoid.
|
|
644
|
+
|
|
645
|
+
Bench case `php-inclusion-file-read`: `file-read` against the real build,
|
|
646
|
+
with a `class-attribution` control. The control is the target's own property
|
|
647
|
+
rather than a contrivance — including a file executes no command, so
|
|
648
|
+
`--methods reflected` at `--probe-depth full` sends 19 probes and reports
|
|
649
|
+
`negative` on all 19 against the same URL. That is what earns `include` its
|
|
650
|
+
own name.
|
|
651
|
+
|
|
652
|
+
- **`--include-wrappers`** narrows which inclusion wrappers go out. It defaults
|
|
653
|
+
to everything, unlike `--argv-binary`, because a wrapper names a path rather
|
|
654
|
+
than a program-specific option, so there is nothing target-specific to know
|
|
655
|
+
first. An unknown name is refused rather than narrowing the run to nothing
|
|
656
|
+
and calling the result clean.
|
|
657
|
+
|
|
658
|
+
### Changed
|
|
659
|
+
|
|
660
|
+
- **The observed channel now awards the method's own tier instead of
|
|
661
|
+
`executed`.** `_observe_match` gave execution to whatever reached it, which
|
|
662
|
+
was true while every method that could reach it proved execution.
|
|
663
|
+
`_observable` admits a result whose expected value is absent from the payload,
|
|
664
|
+
and that was a proxy for "only execution produces this" -- correct for the
|
|
665
|
+
computed-value methods, and correct for `file` and `oob`, whose tokens sit in
|
|
666
|
+
the payload and are excluded by it.
|
|
667
|
+
|
|
668
|
+
`include` is the first method where the proxy and the property come apart. A
|
|
669
|
+
file's content signature is in no payload, so the rule admits it, and it is
|
|
670
|
+
not computed either, so a page that merely renders the file produces it with
|
|
671
|
+
nothing executed. Measured against a sink that only queued a read and an
|
|
672
|
+
observed endpoint that rendered the file: second-order **execution** was
|
|
673
|
+
reported against a target that executed nothing.
|
|
674
|
+
|
|
675
|
+
The tier travels with the method now. `reflected` and `eval` still reach
|
|
676
|
+
`executed` on the observed channel -- pinned by a test, because a fix that
|
|
677
|
+
stopped the false claim by dropping the true one would pass a test written
|
|
678
|
+
only for the first -- and `include` reaches `file-read` there. The observed
|
|
679
|
+
channel changes *where* evidence appeared, never *what* it proves.
|
|
680
|
+
`observe_status` in `--detect-json` carries the awarded tier for the same
|
|
681
|
+
reason.
|
|
682
|
+
|
|
683
|
+
- **Every Windows dialect reads the Windows read targets.** `powershell` is a
|
|
684
|
+
shell dialect, not a filesystem. The traversal builder treated both members
|
|
685
|
+
of `WINDOWS_PATH_SINK_ENVS` alike from the start and the target lookup did
|
|
686
|
+
not, so `--sink-env powershell` found no target, built no probe and reported
|
|
687
|
+
that nothing was tested -- against paths that were entirely right for it.
|
|
688
|
+
|
|
689
|
+
### Not built, deliberately
|
|
690
|
+
|
|
691
|
+
- **Execution from an inclusion sink.** The route is a wrapper carrying code —
|
|
692
|
+
`data://`, `php://input` — and both need `allow_url_include`, which PHP has
|
|
693
|
+
defaulted off since 5.2. The target said so in its own words:
|
|
694
|
+
`data:// wrapper is disabled in the server configuration by
|
|
695
|
+
allow_url_include=0`, and `php://input` failed the same way. The route that
|
|
696
|
+
works on a released build is two-step — poison a log or a session file, then
|
|
697
|
+
include it — which is a chain, and a chain became a delivery the engine
|
|
698
|
+
drives only in 3.9.0. Shipping an execution path with no case to exercise it
|
|
699
|
+
is a claim the bench cannot reproduce, which this project treats as worse
|
|
700
|
+
than a missing feature, so it waits for the case rather than for the code.
|
|
701
|
+
|
|
702
|
+
- **A phpMyAdmin case.** `phpmyadmin/CVE-2018-12613` was the first choice —
|
|
703
|
+
released software, a documented advisory, and an inclusion sink reachable
|
|
704
|
+
without authentication. Its images cannot be fetched: `vulhub/phpmyadmin:4.8.1`
|
|
705
|
+
and `mysql:5.5` both answer 403 from the registry's blob store on every
|
|
706
|
+
attempt, 13 apiece, while `hello-world` and `vulhub/php:7.1.3-apache` pull
|
|
707
|
+
normally. That is not a transfer that retrying fixes, so the row names a
|
|
708
|
+
target that demonstrates the class instead, and its `Advisory` column says so
|
|
709
|
+
with a dash.
|
|
710
|
+
|
|
711
|
+
## [3.10.0] — 2026-10-30
|
|
712
|
+
|
|
713
|
+
### Added
|
|
714
|
+
|
|
715
|
+
- **`--observe-trigger`, because second-order detection has three acts and the
|
|
716
|
+
engine had two.** Inject then read is enough for a payload the target renders
|
|
717
|
+
on its own next page load. It is not enough for one waiting to be run: a queue
|
|
718
|
+
a worker drains, a report generated on demand, a cache rebuilt by an admin
|
|
719
|
+
action, a "run now" button. There the observed page never changes, because the
|
|
720
|
+
work never happens — so polling it reads a page that will not move, and the
|
|
721
|
+
run reports `negative` about a sink that would execute the moment anything
|
|
722
|
+
asked it to.
|
|
723
|
+
|
|
724
|
+
Measured against a target that queues the value on `POST /store`, executes it
|
|
725
|
+
only when `/run` is asked, and renders the output on `/out`: the same probes
|
|
726
|
+
report `negative=19` without the trigger and `executed=19` with it, on the
|
|
727
|
+
observed channel with the same differential as any other second-order finding.
|
|
728
|
+
`--observe-trigger-request` takes a captured request instead, for a trigger
|
|
729
|
+
behind the same session as the page that shows the result.
|
|
730
|
+
|
|
731
|
+
Four properties, each of which is a decision rather than a default:
|
|
732
|
+
|
|
733
|
+
- **Fired before every observed read** — once per probe, once per poll, once
|
|
734
|
+
for the control. Per poll alone is not enough and per probe is the expensive
|
|
735
|
+
half: where the store keeps a single value, triggering only at the end of
|
|
736
|
+
the batch runs whatever the last probe left behind and never tests the rest.
|
|
737
|
+
Measured on an overwriting target, the last stored shape was the Shellshock
|
|
738
|
+
one, which needs a CGI environment sink, so an exploitable sink reported
|
|
739
|
+
`negative` for all 19. The pre-flight names each component of the count,
|
|
740
|
+
because this fires more often than anything else RCEKit sends and that
|
|
741
|
+
number is the operator's to judge rather than the tool's to hide.
|
|
742
|
+
- **The control is triggered too**, so the control and every later read differ
|
|
743
|
+
in the payload and in nothing else — the discipline the chain control
|
|
744
|
+
follows by being a whole chain run. Without it, anything the trigger itself
|
|
745
|
+
renders would be in the reads and absent from the control.
|
|
746
|
+
- **Its own response is never read for evidence.** The trigger is fired to
|
|
747
|
+
cause work; reading what it returns would be a second oracle with no control
|
|
748
|
+
behind it. A test points the trigger at an endpoint that echoes the payload
|
|
749
|
+
and the observed channel at one that does not: nothing is confirmed.
|
|
750
|
+
- **It requires `--observe-url`.** Alone it would send a request and measure
|
|
751
|
+
nothing, which is a run that tests nothing while looking busy, so the run
|
|
752
|
+
refuses it by name.
|
|
753
|
+
|
|
754
|
+
## [3.9.0] — 2026-10-30
|
|
755
|
+
|
|
756
|
+
### Added
|
|
757
|
+
|
|
758
|
+
- **A chain is now a delivery the detection engine drives, so a sink behind a
|
|
759
|
+
login is reachable by the oracles that can prove execution.** There were two
|
|
760
|
+
engines. `--verify-chain` carried the session machinery — login, CSRF
|
|
761
|
+
extraction, a payload in an upload's content, a trigger — and none of the
|
|
762
|
+
oracles. `--methods` carried every oracle, the payload-free control, the
|
|
763
|
+
budget, the safety rungs and the tier vocabulary, and could not hold a
|
|
764
|
+
session. So the sinks that most needed proof were reachable only by the path
|
|
765
|
+
that cannot reach `executed` at all.
|
|
766
|
+
|
|
767
|
+
`--verify-chain --methods reflected,eval` now runs the engine through the
|
|
768
|
+
chain's steps. Measured against a two-step target whose `/run` is guarded by a
|
|
769
|
+
token `/session` hands out — a single request reaches no payload there, it
|
|
770
|
+
answers 403 — the run reports `executed` with the ordinary evidence line: *a
|
|
771
|
+
value computed from random operands, absent from the payload-free control*.
|
|
772
|
+
The same probes against a target that returns the value instead of running it
|
|
773
|
+
report `negative` for all 19.
|
|
774
|
+
|
|
775
|
+
Nothing about the oracles changed to gain this, which is the point. A chain is
|
|
776
|
+
a different **transport**, not a different oracle, so the seam is one method:
|
|
777
|
+
every delivery hands back `(status, body, channels, elapsed)` and no detection
|
|
778
|
+
method knows how many requests produced it.
|
|
779
|
+
|
|
780
|
+
- **`--verify-chain` without `--methods` is unchanged**, additively, exactly as
|
|
781
|
+
`--methods` was introduced for `--verify-url`. The legacy oracle and its
|
|
782
|
+
`needs-review` ceiling stay; the closing notice now names `--methods` as where
|
|
783
|
+
a stronger tier comes from, since it is no longer true that the engine cannot
|
|
784
|
+
run here.
|
|
785
|
+
|
|
786
|
+
### Changed
|
|
787
|
+
|
|
788
|
+
- **The nine delivery parameters threaded through `run_detection` and
|
|
789
|
+
`_escalate` are now one object.** That threading was not merely verbose: 3.1.1
|
|
790
|
+
found that inserting one of them where it belonged by meaning moved two
|
|
791
|
+
positional slots and raised `TypeError` for a positional caller. A bundle
|
|
792
|
+
cannot have that defect, and `SingleRequestDelivery` is the same requests in
|
|
793
|
+
the same order, so every existing caller is untouched.
|
|
794
|
+
|
|
795
|
+
- **A chain step that never answers is an `error`, not a `negative`.** The
|
|
796
|
+
legacy path put the exception's text in the response body and had no status at
|
|
797
|
+
all, which for a value oracle reads as "reached the target, found nothing" —
|
|
798
|
+
a target that could not be reached reported as one with nothing to find. The
|
|
799
|
+
step runner now distinguishes a 4xx or 5xx, whose body is read like any
|
|
800
|
+
other, from a request that never completed, which yields no channels and so
|
|
801
|
+
reports `error` through every oracle.
|
|
802
|
+
|
|
803
|
+
**Any** failed step, not only the confirm one, and that distinction is the
|
|
804
|
+
whole of a chain being several requests. A chain fails in places the confirm
|
|
805
|
+
step cannot see: an injected step that never connected leaves the confirm step
|
|
806
|
+
answering perfectly well about a payload it never received. Measured against
|
|
807
|
+
an unreachable injection step followed by a reachable confirm step, reading
|
|
808
|
+
only the confirm status reported `negative` — the false clean this project is
|
|
809
|
+
built to refuse, reached through the code written to refuse it. Failed steps
|
|
810
|
+
are now collected by name and the detail says which, because "something in the
|
|
811
|
+
chain broke" is not something an operator can act on.
|
|
812
|
+
|
|
813
|
+
- **The pre-flight counts chain steps.** A chain run is one probe and several
|
|
814
|
+
requests, and the plan line counts payloads — so without this the traffic was
|
|
815
|
+
understated by the length of the chain, for the operator who has least room to
|
|
816
|
+
be surprised by it. `--max-payloads` is deliberately **not** converted to
|
|
817
|
+
requests: it stays a payload allowance so a run is never stopped between a
|
|
818
|
+
chain's login and its trigger, abandoning a payload and leaving target state
|
|
819
|
+
the run cannot describe.
|
|
820
|
+
|
|
821
|
+
- **`--methods time` and `--methods boolean` are refused by name on a chain**,
|
|
822
|
+
the way every held-back method is refused rather than dropped. Both read the
|
|
823
|
+
shape of a response *series*: `time` fits a regression to response time, and a
|
|
824
|
+
chain's own setup steps move the server's timing in ways the drift term was
|
|
825
|
+
never fitted against; `boolean` compares response shape across a shuffled
|
|
826
|
+
series and needs its anchors to hold still, which a fresh session per probe
|
|
827
|
+
denies by construction. The delivery reports only the injected step's elapsed,
|
|
828
|
+
which is the honest number and still not one measured through a chain —
|
|
829
|
+
lifting either refusal changes what a detection method reports, and that is
|
|
830
|
+
not settleable on a fixture.
|
|
831
|
+
|
|
832
|
+
- **A fresh session per probe**, which is the expensive choice. Sharing one
|
|
833
|
+
would cost a single login instead of one per probe and would let a probe's own
|
|
834
|
+
state reach the next, which is the thing the payload-free control exists to
|
|
835
|
+
rule out. The cost is stated rather than quietly avoided.
|
|
836
|
+
|
|
837
|
+
- **`--verify-chain` with `--verify-url` or `-r` is refused**, and so is a chain
|
|
838
|
+
whose steps carry no `FUZZ`. Two ways to name one target is an ambiguity, and
|
|
839
|
+
a chain with no marker would have sent its steps and tested nothing.
|
|
840
|
+
|
|
841
|
+
### Removed
|
|
842
|
+
|
|
843
|
+
- **The 3.8.0 warning that `--methods` is not applied on the chain path.** It
|
|
844
|
+
was true when it was written and is not now, and the condition that printed it
|
|
845
|
+
sits inside a block reached only when `--methods` is absent — so it had become
|
|
846
|
+
unreachable as well as wrong. A test asserting it was the thing that caught
|
|
847
|
+
this.
|
|
848
|
+
|
|
849
|
+
## [3.8.0] — 2026-10-30
|
|
850
|
+
|
|
851
|
+
### Changed
|
|
852
|
+
|
|
853
|
+
- **`--verify-chain`'s in-band verdict was `executed` on evidence the tier rule
|
|
854
|
+
forbids, and is now `needs-review`.** The oracle there is `record.match`, a
|
|
855
|
+
*static* signature from `_COMMAND_SIGNATURES` — `uname` is matched by the word
|
|
856
|
+
`Linux` appearing, `cat /etc/passwd` by a `root:` line, `id` by `uid=` — and
|
|
857
|
+
this path runs the chain once, with the payload, so there is no payload-free
|
|
858
|
+
control to difference it against.
|
|
859
|
+
|
|
860
|
+
Both halves of what `executed` requires were therefore missing: the value is
|
|
861
|
+
not one RCEKit generated at random for that probe, and nothing ruled out its
|
|
862
|
+
having been in the response anyway. Measured against a local target that
|
|
863
|
+
**executes nothing at all** — one fixed page containing `uid=0`, `root:x:0:0:`
|
|
864
|
+
and the word `Linux` — the previous behaviour reported `executed=6` for six of
|
|
865
|
+
six payloads. It now reports `needs-review=6`, with the reason on each row.
|
|
866
|
+
|
|
867
|
+
The two tests that pin this are deliberately a pair: a genuinely vulnerable
|
|
868
|
+
sink and that inert page reach the **same** verdict through this oracle. An
|
|
869
|
+
oracle that cannot separate those two was never entitled to the tier reserved
|
|
870
|
+
for execution. That the real sink now reports `needs-review` is the honest
|
|
871
|
+
ceiling of this channel, not a regression in detection.
|
|
872
|
+
|
|
873
|
+
A control was considered and rejected: it would rule out "it was already
|
|
874
|
+
there" and not "the target computed it", so it would buy a doubled chain cost
|
|
875
|
+
for a verdict that still could not be `executed`.
|
|
876
|
+
|
|
877
|
+
- **The out-of-band chain verdict is unchanged, and that is not an oversight.**
|
|
878
|
+
A `{callback}` payload still reaches `executed` — configured by the chain
|
|
879
|
+
profile's own `callback_host` and `listen_port`, which is the only place this
|
|
880
|
+
path looks; `--oob-host` is read by the `--methods` engine and never by this
|
|
881
|
+
one. Of the shipped corpus two payloads carry that marker, both `postgres`
|
|
882
|
+
under `code_execution`, which is outside the default environment set. Its token
|
|
883
|
+
is twelve
|
|
884
|
+
characters minted for that payload and registered with the run's listener, so
|
|
885
|
+
a callback carrying it is a value only the target could have learned by
|
|
886
|
+
running what it was given — the tier rule's second clause, which needs no
|
|
887
|
+
control for the same reason `--methods oob` needs none.
|
|
888
|
+
|
|
889
|
+
- **`--verify-chain` now says that `--methods` is not applied, before it sends
|
|
890
|
+
anything.** This path never consulted the flag, so a run that accepted it in
|
|
891
|
+
silence delivered the corpus oracle while the operator believed they had asked
|
|
892
|
+
for a tiered one — and a clean result then read as though the methods had been
|
|
893
|
+
tried. Not a refusal: the chain run is still worth making, and the operator can
|
|
894
|
+
decide once they know. The run also closes by naming its own ceiling whether or
|
|
895
|
+
not anything matched.
|
|
896
|
+
|
|
897
|
+
### Migration
|
|
898
|
+
|
|
899
|
+
A `--verify-chain` run that previously printed `EXECUTED` for an in-band match
|
|
900
|
+
now prints a `NEEDS-REVIEW candidate(s)` section instead, and `executed` on that
|
|
901
|
+
path is reachable only out of band. Nothing about the chain's delivery changed —
|
|
902
|
+
the same steps, substitutions and payloads go to the target — so a finding you
|
|
903
|
+
reported from a previous run is not retracted by this; it is reclassified as
|
|
904
|
+
something to confirm rather than something confirmed.
|
|
905
|
+
|
|
906
|
+
To confirm it, reproduce the sink through `--verify-url` / `-r` with `--methods`,
|
|
907
|
+
where the oracles that rest on a computed value and a payload-free control live.
|
|
908
|
+
The chain's own out-of-band channel is the other route, and it needs two things
|
|
909
|
+
named precisely: `callback_host` and `listen_port` in the **chain profile**
|
|
910
|
+
(`--oob-host` belongs to the `--methods` engine and is not read here), and a
|
|
911
|
+
payload carrying `{callback}` — of which the shipped corpus has two, both
|
|
912
|
+
`postgres` under `code_execution`, so `--environments postgres --categories
|
|
913
|
+
code_execution` or your own `--template-file` is required to generate one.
|
|
914
|
+
|
|
915
|
+
Exit status is unaffected: this path returned 0 regardless of outcome before and
|
|
916
|
+
still does.
|
|
917
|
+
|
|
918
|
+
## [3.7.1] — 2026-10-29
|
|
919
|
+
|
|
920
|
+
### Fixed
|
|
921
|
+
|
|
922
|
+
- **A byte-order mark on a JSON *response* cost it its leaf channels and its
|
|
923
|
+
shape reading.** 3.1.2 stripped the mark everywhere RCEKit decides what a
|
|
924
|
+
request body is. The response side was left alone, and the previous change
|
|
925
|
+
documented that as a decision rather than an oversight — with what each half
|
|
926
|
+
cost measured, because the obvious answer was wrong in both directions. This
|
|
927
|
+
closes it, and that documentation is what made it safe to close.
|
|
928
|
+
|
|
929
|
+
`json.loads` rejects a mark outright, so `_json_leaf_channels` returned
|
|
930
|
+
nothing for a marked body and `response_shape` fell from its structural
|
|
931
|
+
reading to the word-count fallback. Both now strip the mark through the same
|
|
932
|
+
shared helpers the request side uses, and they had to move **together**: they
|
|
933
|
+
are two readings of one body, and stripping in one and not the other makes
|
|
934
|
+
them disagree about what a response *is* — the shape of the request-side bug,
|
|
935
|
+
reached from the other direction.
|
|
936
|
+
|
|
937
|
+
What the leaf half cost was mostly the precision of a channel name, since
|
|
938
|
+
`response body` carries the whole document and the encoded-value search peels
|
|
939
|
+
URL, HTML, `\uXXXX`, base64 and hex out of it. But a value whose JSON
|
|
940
|
+
rendering uses an escape that peeling does not undo — `\/`, or a surrogate
|
|
941
|
+
pair — was reachable *only* through the parsed leaf, and measured, it was
|
|
942
|
+
found on no channel at all once the mark was there. That is a lost
|
|
943
|
+
confirmation rather than a lost label, and it is recovered: measured again,
|
|
944
|
+
`JSON field p` with the mark and without it.
|
|
945
|
+
|
|
946
|
+
The shape half is the one that needed the wait. `response_shape` is
|
|
947
|
+
`boolean`'s oracle input, so changing it changes what a detection method
|
|
948
|
+
reports, which this project does not settle on a fixture — and `boolean` was
|
|
949
|
+
the one method with no bench case. It has had one since 3.6.1, and
|
|
950
|
+
`mongo-express-where-boolean` was run on this tree **before and after**: pass
|
|
951
|
+
in 21.2s both times, `evaluation-sink` against `negative` both times. That is
|
|
952
|
+
the no-regression evidence the change was blocked on. It does not exercise
|
|
953
|
+
the fix, because mongo-express emits no mark; the behaviour change itself is
|
|
954
|
+
shown by fixtures, and saying which evidence covers which half is the point.
|
|
955
|
+
|
|
956
|
+
**The direction is toward fewer false positives.** The structural reading
|
|
957
|
+
drops every scalar, so a request id or a timestamp cannot make two identical
|
|
958
|
+
answers look different; the word-count fallback a marked body used to get
|
|
959
|
+
cannot. A JSON API that emits a mark now gets the same guard every other JSON
|
|
960
|
+
target gets. No tier changes and no new verdict.
|
|
961
|
+
|
|
962
|
+
A mark is still not a licence to guess: a body that is not JSON once the mark
|
|
963
|
+
is gone takes exactly the path it did before, which a test pins for plain text
|
|
964
|
+
and for markup.
|
|
965
|
+
|
|
966
|
+
## [3.7.0] — 2026-10-29
|
|
967
|
+
|
|
968
|
+
### Added
|
|
969
|
+
|
|
970
|
+
- **`--methods argv`: argument injection into a program spawned with no shell.**
|
|
971
|
+
This class was in the README's excluded list until now, and the reason it
|
|
972
|
+
moved is the reason it is worth having. It is not a weaker case of command
|
|
973
|
+
injection; it is the case where the application did the **correct** thing.
|
|
974
|
+
GitList calls `escapeshellarg($query)` exactly as documented, so the value
|
|
975
|
+
reaches `git grep -i --line-number <value> <branch>` as one argv element with
|
|
976
|
+
no shell anywhere and every separator inert. What quoting cannot stop is that
|
|
977
|
+
argument being read as an **option**, and `git`'s `--open-files-in-pager=`
|
|
978
|
+
names a command git then runs. Measured against vulhub
|
|
979
|
+
`gitlist/CVE-2018-1000533`: `--methods reflected` at `--probe-depth full`
|
|
980
|
+
sends 37 probes and reports `negative` on all 37, while `--methods argv`
|
|
981
|
+
reports `executed` on the same endpoint in one probe. A separator ladder
|
|
982
|
+
cannot reach that sink by construction, not by bad luck.
|
|
983
|
+
|
|
984
|
+
**The oracle did not change, and that is the point.** The option names a
|
|
985
|
+
command, so the command is the same arithmetic core the results-based probes
|
|
986
|
+
already build, and `_confirm_computed` differences it against the payload-free
|
|
987
|
+
control exactly as it does for `reflected`. A new vector needed no new
|
|
988
|
+
definition of proof, and `executed` still rests on the channels it rested on
|
|
989
|
+
before.
|
|
990
|
+
|
|
991
|
+
It is a **method rather than a carrier**, unlike the query-language bridges it
|
|
992
|
+
otherwise resembles. A carrier would have printed this finding as
|
|
993
|
+
`[reflected/...]`, which asserts a shell of that family ran the input; on an
|
|
994
|
+
argv sink no shell ran it, a program parsed it and chose to run something
|
|
995
|
+
else. Naming the wrong class is the error 3.0.1 removed a probe shape for.
|
|
996
|
+
|
|
997
|
+
The catalogue lives in the corpus as `argv_primitives`, the seam the bridges
|
|
998
|
+
and eval carriers already use, so an option shape can be added without
|
|
999
|
+
touching Python. Two ship: `git --open-files-in-pager=` and
|
|
1000
|
+
`gs -sOutputFile=%pipe%`. Each is a **single argv element** —
|
|
1001
|
+
`-sOutputFile=x`, never `-s OutputFile=x` — because a sink that hands the
|
|
1002
|
+
value over as one argument is the shape that makes the class reachable, and a
|
|
1003
|
+
two-element option is inert there while looking like coverage. A test fails if
|
|
1004
|
+
one is added.
|
|
1005
|
+
|
|
1006
|
+
An entry also has to be able to return the value **through the channel this
|
|
1007
|
+
method has**, and that is the harder bar. `ssh -oProxyCommand=` and
|
|
1008
|
+
`rsync --rsh=` were written, reviewed and cut for failing it: a ProxyCommand
|
|
1009
|
+
runs through a shell but its stdout *is* the SSH transport, and rsync does not
|
|
1010
|
+
use a shell at all — measured, `--rsh="echo RK$((111+222))RK"` yields
|
|
1011
|
+
`protocol version mismatch` and no computed value, where the same string
|
|
1012
|
+
through a shell yields it. Both options work; neither can hand the result
|
|
1013
|
+
back. They are the reason the catalogue's remaining notes state where each
|
|
1014
|
+
primitive's stdout goes.
|
|
1015
|
+
|
|
1016
|
+
`--argv-binary` selects by primitive name or by the binary (`git`, `gs`),
|
|
1017
|
+
and refuses an unknown one rather than narrowing the run to
|
|
1018
|
+
nothing: a typo that selected no option at all would read exactly like a run
|
|
1019
|
+
that tried them and came back clean.
|
|
1020
|
+
|
|
1021
|
+
**In-band only, deliberately.** A blind argv sink is real — an image converter
|
|
1022
|
+
spawned on an upload renders nothing — and reaching it means carrying an
|
|
1023
|
+
out-of-band core instead of an arithmetic one, which is a small change to this
|
|
1024
|
+
class and no change to its shape. It is left out because there is no target to
|
|
1025
|
+
prove it against, and a path shipped without a case that exercises it is a
|
|
1026
|
+
claim the bench cannot reproduce.
|
|
1027
|
+
|
|
1028
|
+
- **A bench case for it**, `gitlist-cve-2018-1000533-argv`, passing in 18.3s
|
|
1029
|
+
with the strongest control this harness can carry: the negative half is the
|
|
1030
|
+
target's **own security property** rather than a contrivance, since
|
|
1031
|
+
`escapeshellarg` is what makes `reflected` come back clean on a build that is
|
|
1032
|
+
genuinely exploitable.
|
|
1033
|
+
|
|
1034
|
+
Three details of the probe were measured there rather than reasoned, and each
|
|
1035
|
+
is the difference between confirming and reporting a clean negative against a
|
|
1036
|
+
target that executes. The probe ends in `#`, not the `;` the published
|
|
1037
|
+
write-ups use: git appends the path it would have paged, so `;` leaves it as a
|
|
1038
|
+
bare command, git exits 255, and GitList's
|
|
1039
|
+
`catch (RuntimeException) { return false; }` throws the output away — the
|
|
1040
|
+
command runs and nothing comes back. The pager's output imitates git grep's
|
|
1041
|
+
own `tree:file:line:match` format, because whatever consumes that stdout is an
|
|
1042
|
+
application parsing git grep output, and a bare line reaches GitList and is
|
|
1043
|
+
dropped by its own regex. And the URL's branch segment has to be a pattern
|
|
1044
|
+
that matches file content, because once the query is consumed as an option the
|
|
1045
|
+
branch becomes git grep's pattern and the pager only opens when there is a
|
|
1046
|
+
file to page.
|
|
1047
|
+
|
|
381
1048
|
## [3.6.1] — 2026-10-27
|
|
382
1049
|
|
|
383
1050
|
### Fixed
|
|
@@ -3397,6 +4064,14 @@ this file and have not been restated here.
|
|
|
3397
4064
|
|
|
3398
4065
|
|
|
3399
4066
|
[Unreleased]: https://github.com/kabiri-labs/rcekit/compare/v2.36.0...HEAD
|
|
4067
|
+
[3.12.1]: https://github.com/kabiri-labs/rcekit/compare/v3.12.0...v3.12.1
|
|
4068
|
+
[3.12.0]: https://github.com/kabiri-labs/rcekit/compare/v3.11.0...v3.12.0
|
|
4069
|
+
[3.11.0]: https://github.com/kabiri-labs/rcekit/compare/v3.10.0...v3.11.0
|
|
4070
|
+
[3.10.0]: https://github.com/kabiri-labs/rcekit/compare/v3.9.0...v3.10.0
|
|
4071
|
+
[3.9.0]: https://github.com/kabiri-labs/rcekit/compare/v3.8.0...v3.9.0
|
|
4072
|
+
[3.8.0]: https://github.com/kabiri-labs/rcekit/compare/v3.7.1...v3.8.0
|
|
4073
|
+
[3.7.1]: https://github.com/kabiri-labs/rcekit/compare/v3.7.0...v3.7.1
|
|
4074
|
+
[3.7.0]: https://github.com/kabiri-labs/rcekit/compare/v3.6.1...v3.7.0
|
|
3400
4075
|
[3.6.1]: https://github.com/kabiri-labs/rcekit/compare/v3.6.0...v3.6.1
|
|
3401
4076
|
[3.6.0]: https://github.com/kabiri-labs/rcekit/compare/v3.5.0...v3.6.0
|
|
3402
4077
|
[3.5.0]: https://github.com/kabiri-labs/rcekit/compare/v3.4.0...v3.5.0
|