rcekit 3.6.1__tar.gz → 3.15.0__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.
Files changed (47) hide show
  1. {rcekit-3.6.1 → rcekit-3.15.0}/CHANGELOG.md +951 -35
  2. {rcekit-3.6.1 → rcekit-3.15.0}/CONTRIBUTING.md +22 -1
  3. {rcekit-3.6.1 → rcekit-3.15.0}/PKG-INFO +190 -63
  4. {rcekit-3.6.1 → rcekit-3.15.0}/README.md +189 -62
  5. {rcekit-3.6.1 → rcekit-3.15.0}/docs/guide.md +270 -5
  6. {rcekit-3.6.1 → rcekit-3.15.0}/docs/reference.md +148 -33
  7. {rcekit-3.6.1 → rcekit-3.15.0}/rcekit.egg-info/PKG-INFO +190 -63
  8. {rcekit-3.6.1 → rcekit-3.15.0}/rcekit.egg-info/SOURCES.txt +4 -0
  9. {rcekit-3.6.1 → rcekit-3.15.0}/rcekit.py +2132 -260
  10. {rcekit-3.6.1 → rcekit-3.15.0}/templates/payloads.json +99 -0
  11. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/README.md +290 -32
  12. rcekit-3.15.0/tests/bench/cases/gitlist-cve-2018-1000533-argv.json +92 -0
  13. rcekit-3.15.0/tests/bench/cases/php-inclusion-file-read.json +86 -0
  14. rcekit-3.15.0/tests/bench/cases/php-inclusion-include-execute.json +108 -0
  15. rcekit-3.15.0/tests/bench/cases/thinkphp-lang-include-execute.json +95 -0
  16. {rcekit-3.6.1 → rcekit-3.15.0}/tests/test_docs.py +297 -2
  17. {rcekit-3.6.1 → rcekit-3.15.0}/tests/test_generator.py +2678 -59
  18. {rcekit-3.6.1 → rcekit-3.15.0}/LICENSE +0 -0
  19. {rcekit-3.6.1 → rcekit-3.15.0}/MANIFEST.in +0 -0
  20. {rcekit-3.6.1 → rcekit-3.15.0}/SECURITY.md +0 -0
  21. {rcekit-3.6.1 → rcekit-3.15.0}/docs/generation.md +0 -0
  22. {rcekit-3.6.1 → rcekit-3.15.0}/docs/verify-it-yourself.md +0 -0
  23. {rcekit-3.6.1 → rcekit-3.15.0}/pyproject.toml +0 -0
  24. {rcekit-3.6.1 → rcekit-3.15.0}/rcekit.egg-info/dependency_links.txt +0 -0
  25. {rcekit-3.6.1 → rcekit-3.15.0}/rcekit.egg-info/entry_points.txt +0 -0
  26. {rcekit-3.6.1 → rcekit-3.15.0}/rcekit.egg-info/top_level.txt +0 -0
  27. {rcekit-3.6.1 → rcekit-3.15.0}/setup.cfg +0 -0
  28. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/fastjson-1.2.83.json +0 -0
  29. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/hugegraph-gremlin-eval.json +0 -0
  30. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/hugegraph-gremlin-reflected-class.json +0 -0
  31. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/hugegraph-gremlin-shell.json +0 -0
  32. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/log4shell-cve-2021-44228.json +0 -0
  33. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/mongo-express-where-boolean.json +0 -0
  34. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/opentsdb-cve-2023-25826.json +0 -0
  35. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/struts2-s2-001.json +0 -0
  36. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/tomcat-cve-2017-12615.json +0 -0
  37. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107-enumerated.json +0 -0
  38. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107-file.json +0 -0
  39. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107-time.json +0 -0
  40. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/cases/webmin-cve-2019-15107.json +0 -0
  41. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/requests/mongo-express-literal.txt +0 -0
  42. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/requests/mongo-express-where.txt +0 -0
  43. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/requests/webmin.txt +0 -0
  44. {rcekit-3.6.1 → rcekit-3.15.0}/tests/bench/runner.py +0 -0
  45. {rcekit-3.6.1 → rcekit-3.15.0}/tests/test_bench_runner.py +0 -0
  46. {rcekit-3.6.1 → rcekit-3.15.0}/tests/test_corpus_embedding.py +0 -0
  47. {rcekit-3.6.1 → rcekit-3.15.0}/tools/embed_corpus.py +0 -0
@@ -10,41 +10,76 @@ formats, or the template schema.
10
10
 
11
11
  ### Documentation
12
12
 
13
- - **The response side of the byte-order mark is a decision, and nothing said
14
- so.** 3.1.2 stripped the mark everywhere RCEKit decides what a *request* body
15
- is. The response side was left alone on purpose and that purpose was written
16
- down nowhere, so the next reader had no way to tell a boundary from an
17
- oversight. Both halves are now stated where someone would meet them, with
18
- what each costs measured rather than asserted.
19
-
20
- `_json_leaf_channels`: a marked response yields no leaves, because
21
- `json.loads` rejects the mark. Mostly that costs only the precision of the
22
- channel name a finding reports — `response body` carries the whole document
23
- and the encoded-value search peels URL, HTML, `\uXXXX`, base64 and hex out of
24
- it. But a value whose JSON rendering uses an escape that peeling does not undo
25
- (`\/`, or a surrogate pair) is reachable *only* through the parsed leaf, and
26
- measured, it is found on no channel at all once the mark is there. That is a
27
- lost confirmation rather than a lost label. No method is exposed to it today
28
- because every expected value is tag-bracketed decimal digits or a lowercase
29
- token, and no conforming encoder escapes `[A-Za-z0-9]` — a property of the
30
- probes rather than of the channel, so it is asserted across the **whole**
31
- registry: every method in `DETECTION_METHODS`, every probe it builds over a
32
- spread of environments and contexts, with a method that builds none failing
33
- rather than passing quietly. `time` and `boolean` are named as the two that
34
- search no value at all, so a third falling silent is something to look at
35
- rather than absorb. A method whose expected value stopped being alphanumeric
36
- now fails loudly instead of quietly losing findings.
37
-
38
- `response_shape`: a marked JSON response takes the word-count reading instead
39
- of the structural one, which is the weaker guard, so `boolean`'s resistance to
40
- a false `evaluation-sink` is lower against a mark-emitting JSON API.
41
-
42
- Neither is fixed here, and the reason is the same for both: this is the input
43
- to a detection method's verdict, which this project does not settle on a
44
- fixture, and `boolean` is the one method with no bench case to settle it
45
- against. Pinned by tests worded so that closing either half is a deliberate
46
- act with a failing test in front of it, rather than something done by
47
- accident — and so that neither reads as an endorsement.
13
+ - **The README said a run that reached nothing exits non-zero, and it exits 0.**
14
+ The sentence bundled `error` together with `nothing-tested` and claimed the
15
+ status for both, and it left `blocked` out although the paragraph above it
16
+ names three cases and the heading counts three rows. Measured rather than
17
+ read: `nothing-tested` exits 1, `error` and `blocked` exit 0.
18
+
19
+ The code is right and the sentence was wrong, which is worth stating because
20
+ the opposite conclusion was the tempting one. `CLIExitCodeTestCase` holds the
21
+ contract -- every refusal to *run* exits non-zero, and a completed run exits 0
22
+ even when it confirmed nothing, because that is a result and not a failure --
23
+ and an all-`error` run completed: the probes were built and sent, and nothing
24
+ arrived. `nothing-tested` exits 1 for the other reason, that no probes were
25
+ built at all, which is a configuration refusal and belongs with an unusable
26
+ corpus or a missing `FUZZ`. Changing the exit codes to match the sentence
27
+ would have broken the CLI contract a test already pins.
28
+
29
+ What replaces the claim is what a CI author actually needs, which the sentence
30
+ had been standing in the way of: branch on the verdict rather than on `$?`,
31
+ because the status cannot tell an unreachable target from a clean negative.
32
+ `--detect-json` carries the collapsed `verdict` for exactly that.
33
+
34
+ No version bump -- this is documentation only.
35
+
36
+ - **Two bench notes still named a blocker that had already been removed.** The
37
+ second-order row said "the reason is the harness" and the Chartbrew paragraph
38
+ said "there is no setup hook in the runner" — both true when written, both
39
+ false the moment a chain became the delivery the engine drives. A reason that
40
+ has expired is worse than no reason: it sends the next reader to fix something
41
+ already fixed, and it hides whatever is actually in the way now. Both now
42
+ describe the state of the code, which is the only thing a reader of this
43
+ repository can check them against.
44
+
45
+ The harness half is settled and **measured rather than argued**. Run against a
46
+ local target whose store sits behind a login — `POST /login` hands out a
47
+ token, `POST /notes` requires it and answers `saved` with no echo, `GET
48
+ /render` renders the stored value through a shell — `--verify-chain` with
49
+ `--methods reflected --observe-url` reports `executed` on the OBSERVED
50
+ channel, on a computed value absent from that endpoint's pre-injection
51
+ control. Against the twin endpoint that renders the same value and executes
52
+ nothing, the same invocation sends 19 probes and reports `negative` on all 19.
53
+ No case schema change was needed: `invocation` already takes arbitrary flags
54
+ and `{bench}` already expands.
55
+
56
+ So the second-order row's blocker is now the absence of a target, and the note
57
+ says what a target must look like precisely enough to screen one — the store
58
+ may be authenticated, the **render may not be** behind the chain's own
59
+ session, because `_fire_observed` takes the flags' url, method, data and
60
+ headers and nothing else: no cookie jar, no chain state, no `{var}`.
61
+
62
+ **All 332 environments** in a vulhub checkout were then screened against that,
63
+ and the note records the funnel rather than only the conclusion: 168 removed
64
+ by a class that cannot be a deferred execution sink, 164 left, 18 whose own
65
+ documentation describes both a store and a later act on it, and 0 surviving a
66
+ read of those 18. They are grouped by the seven reasons they failed rather
67
+ than by product, because the reason is the part that generalises — in-band
68
+ renders, `write`'s shape, non-HTTP protocols, no computed value reaching any
69
+ response, library demos with no HTTP surface, an interactive setup wizard, and
70
+ client-side execution. `cacti/CVE-2025-24367` is the closest miss and is named
71
+ as such.
72
+
73
+ Chartbrew's obstacle did not disappear, it **moved** — from the harness, where
74
+ it was fixable, to the oracle, where it is not cheaply: a chain can now reach
75
+ its three setup steps, but `boolean` is refused on a chain by name
76
+ (`CHAIN_UNSUPPORTED_METHODS`) because it compares response shape across a
77
+ shuffled series, which a chain's setup steps change for reasons that have
78
+ nothing to do with the sink.
79
+
80
+ The local target is deliberately **not** proposed as a case. A purpose-written
81
+ vulnerable app composed under Docker is a fixture wearing Docker, and a
82
+ fixture is the one thing a bench case exists not to be.
48
83
 
49
84
  ### Added
50
85
 
@@ -378,6 +413,875 @@ formats, or the template schema.
378
413
 
379
414
  No version bump -- this is documentation and tests only.
380
415
 
416
+ ## [3.15.0] — 2026-11-08
417
+
418
+ Four fixes from running 3.14.0 against a real target on a real terminal, which
419
+ is where all four of these were invisible from a test suite.
420
+
421
+ ### Added
422
+
423
+ - **A run states its own verdict, on the last line it prints.**
424
+
425
+ ```
426
+ [detect] VERDICT: negative -- the probes reached the target and found nothing
427
+ ```
428
+
429
+ `overall_detection_verdict` had been computed for `--detect-json`, for the
430
+ per-point marker and for one advice condition, and never said out loud. A run
431
+ ended on a paragraph of suggestions, so an operator reading a terminal could
432
+ not find what it had decided. The advice still comes first because it is long;
433
+ the answer comes last because it is the answer. Each verdict carries the
434
+ one-clause gloss the README's table makes, and a test holds every verdict the
435
+ engine emits to having one.
436
+
437
+ ### Fixed
438
+
439
+ - **Colour could not render on a Windows console.** A console with
440
+ `ENABLE_VIRTUAL_TERMINAL_PROCESSING` unset prints escape sequences instead of
441
+ acting on them, so 3.14.0 would have put `<-[1;33m` in front of every verdict
442
+ on an older console host -- worse than the plain output it replaced. RCEKit
443
+ turns the bit on for its own stdout before writing any sequence, through
444
+ `ctypes` rather than a dependency, and where that fails colour stays off
445
+ instead of producing garbage. Nothing changes off Windows, and nothing
446
+ changes on a Windows Terminal or current `conhost`, which set the bit
447
+ themselves. `--color always` still tries to enable it -- forcing colour onto
448
+ a console that was never asked is how an override turns into a screenful of
449
+ escapes -- it just declines to be refused by the answer.
450
+
451
+ - **`[!]` notices were documented as bold and were not.** 3.14.0 shipped
452
+ `bold()`, said so in its changelog, and never called it from anywhere. The
453
+ function had a test and its *use* did not, so the claim and the code
454
+ disagreed for a release. All 57 notices print through a `warn()` helper now,
455
+ and the test is on a real run's output rather than on the function.
456
+
457
+ - **A clean run rendered entirely grey.** `negative` was deliberately left
458
+ uncoloured so that nothing would read as "safe" -- but it is the commonest
459
+ outcome, and with nothing painted the summary line was indistinguishable from
460
+ the configuration echo above it. The rule that mattered was narrower than
461
+ "no colour": nothing is green. `negative` takes a neutral cyan now, and the
462
+ no-green test is unchanged.
463
+
464
+ - **The configuration echo still scanned as findings.** 3.13.0 gave it a
465
+ heading, which was not enough: the lines under it still wore `[detect]`, the
466
+ tag the findings wear. The run's own settings are tagged **`[config]`** now --
467
+ `sink shell`, `sink shapes`, the five shape descriptions and `methods` -- and
468
+ a test asserts no configuration line is tagged `[detect]`. The separate
469
+ heading is gone, because the tag carries it.
470
+
471
+ ## [3.14.0] — 2026-11-07
472
+
473
+ ### Added
474
+
475
+ - **A progress line, for the minutes a run used to spend in silence.** One
476
+ self-erasing line on stderr with the elapsed time, the method, the carrier and
477
+ the probe count against the pre-flight's own estimate:
478
+
479
+ ```
480
+ [detect] 04:12 reflected unix/raw 412/~2883 probes
481
+ ```
482
+
483
+ A detection run against a single parameter sends hundreds to thousands of
484
+ requests and printed nothing while it did -- measured at 13m12s for three
485
+ methods against a local target, silent from the configuration block to the
486
+ findings. The documented runs in this repository are 1154 and 2883 probes.
487
+
488
+ `--progress auto` draws it only where stderr is a terminal, so a captured
489
+ stderr gets no carriage returns; `plain` writes an ordinary line every 25
490
+ probes for a CI log; `none` turns it off, as does `--quiet`. Redraws are
491
+ rate-limited and the line is clamped to the terminal's width, because a line
492
+ that wraps cannot be erased by one carriage return.
493
+
494
+ The OOB listener erases it before printing a `[HIT]`, from its own thread: a
495
+ hit is evidence and must not land in the middle of a line the main thread is
496
+ drawing.
497
+
498
+ - **Colour, and the palette is a statement about the tier rule.** Hue encodes
499
+ the tier and nothing else; weight carries how much a non-finding line matters,
500
+ so `[!]` is bold and has no colour of its own. `executed` is bold red, the
501
+ proven-but-not-execution tiers share yellow, and the run-level failures
502
+ (`error`, `blocked`, `nothing-tested`, `inconclusive`) take bold yellow so a
503
+ run that tested nothing cannot look like the `negative` it is not.
504
+
505
+ **`negative` is uncoloured and there is no green in the palette at all.**
506
+ Green reads as "nothing here", and `negative` does not mean that -- it means
507
+ the probes reached the target. A test asserts the absence of green, because it
508
+ is a property of the tier rule and not of the styling.
509
+
510
+ On when stdout is a terminal with `NO_COLOR` unset and `TERM` not `dumb`;
511
+ `--color never` / `always` override, `FORCE_COLOR` forces. A redirected report
512
+ carries no escape sequences without anyone passing a flag, and colour can
513
+ never reach `--detect-json` or the `-o` exports under any setting -- a test
514
+ runs with `--color always` and asserts the JSON is free of them.
515
+
516
+ Colour is applied only to labels RCEKit generated: a section heading, a
517
+ verdict name, a marker. Never to a payload, a detail or a point label, all of
518
+ which 3.12.2 escapes precisely because the target chooses them -- wrapping
519
+ attacker-chosen bytes in an escape sequence would hand back the control codes
520
+ that escaping took away.
521
+
522
+ No verdict, tier or output schema changed.
523
+
524
+ ## [3.13.0] — 2026-11-07
525
+
526
+ ### Added
527
+
528
+ - **A banner, and it is two lines.** `RCEKit <version>` and the tier rule, on
529
+ **stderr**, before anything else a run prints. On stderr because stdout is the
530
+ report and has been read out of pipes and redirects since before the banner
531
+ existed; a test asserts stdout is byte-identical with the banner and with
532
+ `--quiet`, which is the whole reason it could be added without changing a
533
+ published surface. Two lines because the screen belongs to the findings -- the
534
+ figlet an operator scrolls past twice in a demo costs more than it gives. The
535
+ second line is the README's own sentence rather than a paraphrase, and a test
536
+ holds the two together, because a banner that states the tier rule in
537
+ different words is a third copy of the rule to keep in sync.
538
+
539
+ - **`-q` / `--quiet`** suppresses the banner. It does not quieten the report:
540
+ there is no flag for that, because a run with no report is a run with no
541
+ purpose.
542
+
543
+ ### Changed
544
+
545
+ - **A redirected run printed nothing at all until it exited.** Python
546
+ block-buffers stdout when it is not a terminal and nothing in this module
547
+ flushed, so a run piped into `tee`, captured by `script`, or watched in CI was
548
+ silent for its whole duration. Measured against a target that accepts and
549
+ never answers: the first line arrived after **50.2s**, and arrives after
550
+ **0.2s** now. An operator watching a silent pipe cannot tell a working run
551
+ from a hung one, which is the same failure the missing progress indicator
552
+ causes and the cheaper half of it. stdout is line-buffered from `main` now --
553
+ one call, rather than a `flush=True` on each of a hundred-odd prints that
554
+ somebody has to remember at the next one.
555
+
556
+ - **The run's own configuration no longer reads as findings.** `sink shell`,
557
+ `sink shapes` and the five shape descriptions under them were seven
558
+ `[detect]` lines printed at exactly the weight of an `EXECUTED` row -- in a
559
+ real run the finding was the seventh of them, indistinguishable from the line
560
+ explaining what `env` means. They sit under a `[detect] run configuration:`
561
+ heading now. Deliberately still on stdout and still `[detect]`: moving them
562
+ would break every consumer and every documented transcript for a cosmetic
563
+ gain, which is not the trade this was worth.
564
+
565
+ - **RCEKit's log records go to stderr instead of stdout.** A log record is not
566
+ part of the report, and on stdout it was duplicating one: a generate run
567
+ printed `INFO - Successfully generated 3 payloads to ...` and then
568
+ `Generated 3 payloads to ... in detection mode` -- one fact, twice, in two
569
+ formats, with a timestamp in front of the copy nobody asked for.
570
+
571
+ No verdict, tier or output schema changed. `--detect-json` and the `-o`
572
+ exports are byte-identical.
573
+
574
+ ## [3.12.2] — 2026-11-07
575
+
576
+ ### Fixed
577
+
578
+ - **A target could write escape sequences into the operator's terminal and
579
+ forge a confirmation.** `terminal_safe` has escaped control characters on the
580
+ `[HIT]` line since the OOB listener landed, for the reason its docstring
581
+ states plainly: a callback's host and path are chosen by the *target*, and an
582
+ ESC byte printed raw lets that target colour, erase and rewrite lines in the
583
+ operator's own terminal. The report's own rows never got the same treatment,
584
+ and one of their fields comes off the wire.
585
+
586
+ When a probe never arrives, the delivery error becomes the observation body.
587
+ `_fire_channels` catches `urllib.error.HTTPError` separately and sends
588
+ everything else to a generic handler whose body is `str(exc)`.
589
+ `http.client.BadStatusLine` is not an `HTTPError`, so a reply that is not a
590
+ valid status line at all lands in that handler carrying the server's raw
591
+ bytes. Those became the `error` verdict's detail, and `[detect] ... NEVER
592
+ REACHED THE TARGET` printed it verbatim.
593
+
594
+ Measured rather than reasoned about: a socket server answering with an
595
+ erase-line sequence followed by a forged `EXECUTED` row wiped the line
596
+ reporting that nothing had reached the target and printed a confirmation in
597
+ its place, for a run that tested nothing. The tier rule is the claim this
598
+ project rests on, and the shape of this bug was that claim being forged by
599
+ the target it is supposed to describe.
600
+
601
+ Every report row now renders through `display_result`, which escapes each
602
+ string field of a result. One function rather than `terminal_safe` at
603
+ fifteen interpolations across the `[detect]`, `[verify]` and `[verify-chain]`
604
+ reports, because a guard applied at fourteen of them is not a guard -- and
605
+ `detail` is the one that was left out. Display only: the result dict,
606
+ `--detect-json` and the written reports keep the bytes verbatim, exactly as
607
+ the OOB hit log does. What arrived stays visible, escaped, so the operator
608
+ can see that something tried this.
609
+
610
+ The same pass closed a legibility bug with the same cause. The `newline` sink
611
+ shape is a real separator, so an ordinary run builds payloads containing a
612
+ literal newline, and the `[detect]` report printed them raw -- splitting the
613
+ EXECUTED row across two lines and leaving its own
614
+ `[method/environment/context]` prefix on the line above, in the section an
615
+ operator reads first. `[verify-chain]` had been printing `repr()` and was
616
+ unaffected; all three reports render the same way now.
617
+
618
+ Three tests, because each catches a different way the fix could come undone:
619
+ `display_result` itself, an end-to-end run against a socket server that
620
+ replies with a malformed status line, and an `ast` walk asserting that no
621
+ f-string in `main` builds a report row from a result field without passing it
622
+ through `display_result`. The last is scoped to f-strings rather than to
623
+ `print` calls on purpose -- the EXECUTED row builds its ` at <point>` fragment
624
+ into a local one statement above the `print`, and a check that looked only
625
+ inside the call missed the field naming the injection point.
626
+
627
+ Version 3.12.1 -> 3.12.2. PATCH: a vulnerability fixed, no capability added
628
+ or changed, and no output schema touched.
629
+
630
+ ## [3.12.1] — 2026-10-31
631
+
632
+ ### Fixed
633
+
634
+ - **RCEKit died mid-report on a Windows console, and leaked its own path doing
635
+ it.** Python encodes stdout with the locale's codec, cp1252 on a stock
636
+ Windows install, and raises `UnicodeEncodeError` on anything that codec has
637
+ no byte for. Three strings carried `U+2192`: the non-execution section
638
+ closing in the `[detect]` report, the same line in `[verify-chain]`, and
639
+ `time`'s own evidence summary -- which is not only printed but becomes the
640
+ `timing-sink` verdict's detail, so it reaches `--detect-json` and the written
641
+ reports too.
642
+
643
+ The shape of the failure was the worst available. The findings above the
644
+ closing line had already been printed, so the run looked like it crashed
645
+ while its verdicts scrolled past, the exit status was 1 from an unhandled
646
+ exception, and the traceback carried the module's absolute path -- which the
647
+ strict posture for this project's own product code forbids.
648
+
649
+ Any run reporting `timing-sink`, `file-read`, `file-write`,
650
+ `evaluation-sink`, `deserialization-sink`, `lookup-sink` or `needs-review`
651
+ reached it, as did any redirected pipe under a non-UTF-8 locale. CI runs on
652
+ Linux under UTF-8, so it had never seen it; the unit suite surfaced it only
653
+ through a subprocess test, and named an assertion about a missing message
654
+ rather than the encoder.
655
+
656
+ Those three are ASCII now, and a test walks `rcekit.py`'s string literals and
657
+ refuses any character cp1252 cannot encode, with one justified exception for
658
+ the byte-order mark `strip_bom` has to *recognise*. `main` also sets
659
+ `errors="replace"` on its own streams, because a guard that holds only while
660
+ someone remembers it is not a guard: a character that slips past prints as
661
+ `?` and the report finishes. A report one character wrong is worth having; a
662
+ traceback in place of a report is not. The streams are not switched to UTF-8,
663
+ which would trade a visible `?` for mojibake throughout on the console the
664
+ operator is actually reading.
665
+
666
+ ### Documentation
667
+
668
+ - **Quick start had no scenario for either sink that is not a shell.** `argv`
669
+ (3.7.0) and `include` (3.12.0) both reach `executed`, and both appeared only
670
+ inside one sentence of the widest-run scenario. The reason is structural and
671
+ now said out loud: scenarios 1-4 ask *what can you observe*, which is what
672
+ decides the oracle, and neither of those methods answers anything on that
673
+ axis -- both sinks return output and neither runs a command. So there is a
674
+ fifth scenario asking what the sink **is**, with a worked command for each,
675
+ and the section says which question each scenario answers.
676
+
677
+ - **The field guide offered ten of eleven methods, and its contents list
678
+ nineteen of twenty-one sections.** `include` had no row in the method-choice
679
+ table and no section; the `argv` section had been missing from the contents
680
+ list since 3.7.0. `docs/guide.md` now has both, and the drift was possible
681
+ because that table and that list were the ones in this repository no test
682
+ read -- the same hole the comparison table had when it named seven of nine
683
+ methods for two releases. Three new test classes close it: the guide's
684
+ method-choice table is pinned to `DETECTION_METHODS` in both directions, and
685
+ every page carrying a contents list has it checked against its own sections,
686
+ by anchor rather than by label, since `docs/reference.md` shortens four
687
+ entries on purpose.
688
+
689
+ - **Both lists of environments were wrong, in opposite directions, and neither
690
+ was checked.** The README named eleven and left out `powershell`, `sql` and
691
+ `kubernetes`; `docs/reference.md` named fourteen, left out `powershell`, and
692
+ mentioned `sql` only in the prose underneath. The real answer is sixteen and
693
+ **not the same set in both modes** -- `powershell` and `sql` have detection
694
+ probes and no exploitation payloads, `graphql` and `mongodb` the reverse --
695
+ which is worth knowing before pinning one, because a name with nothing behind
696
+ it for the mode you are running narrows the run to nothing. The reference
697
+ carries that as a table with a test behind it, read by generating records
698
+ rather than by reading corpus keys: `postgres` is a key inside a payload
699
+ category and emits nothing, so naming it would have replaced an incomplete
700
+ claim with a wrong one. The README's twelve lines enumerating seven flags'
701
+ value sets are a pointer to those tested lists instead.
702
+
703
+ - **`CONTRIBUTING.md` never mentioned `tools/embed_corpus.py`.** Someone
704
+ following it alone would edit `templates/payloads.json`, not regenerate the
705
+ copy inside the module, and meet a red suite complaining about drift with the
706
+ fix documented only in the README.
707
+
708
+ ## [3.12.0] — 2026-10-31
709
+
710
+ ### Added
711
+
712
+ - **`include` reaches execution, and not by the route the roadmap expected.**
713
+ The obvious one is a wrapper carrying code -- `data://`, `php://input` -- and
714
+ both need `allow_url_include`, which PHP has defaulted off since 5.2. The
715
+ target said so in its own words when 3.11.0 measured it:
716
+ `data:// wrapper is disabled in the server configuration by
717
+ allow_url_include=0`.
718
+
719
+ What works on a default build is to make the sink include a script that
720
+ *writes*, and hand that script its arguments through the request. PEAR's
721
+ `pearcmd.php` is present in the official PHP images, `register_argc_argv`
722
+ turns the query string into its argv, and `config-create` writes its output
723
+ to a path those arguments name -- so the computed one-liner goes in the
724
+ output. `--include-write-url` names where that file is served, and without it
725
+ `include` proves reads only, because there is no proof to be had.
726
+
727
+ Two things about the shape were measured rather than reasoned. The payload is
728
+ the **whole query string**, not one parameter's value: the script's arguments
729
+ have to sit outside the parameter carrying the traversal, which is why the
730
+ wrapper writes that parameter's name itself (`--include-write-param`, default
731
+ `lang`) and why the payload needs `--verify-url-location raw` to reach the
732
+ wire with its `&` intact. And the proof is the **second** request: the write
733
+ answers 200 whether or not anything was interpreted.
734
+
735
+ So the ladder has three outcomes and they are three different findings. The
736
+ product in the fetched file is `executed`. The source form coming back
737
+ verbatim is `file-write` -- the file is on the target and nothing interpreted
738
+ it, the distinction `write` has drawn since 2.31.0. Neither is `negative`.
739
+ The read rungs are untouched and still report `file-read`.
740
+
741
+ `include`'s ceiling is now `executed` with `file-read` and `file-write` below
742
+ it, and its `question` deliberately stays `file-read`. A run stops asking a
743
+ question once it is answered, so `execution` there would skip this method on
744
+ any target where execution was already proven -- discarding a file read with
745
+ its own remediation. The tier says how strong an answer the method can reach
746
+ and the question says what it asks; they are different axes and this is the
747
+ method where that matters.
748
+
749
+ Bench case `thinkphp-lang-include-execute` on ThinkPHP 6.0.12: `executed`
750
+ against the real build in 2.6s from a cold start, the fetch returning
751
+ 11688702 for 6022*1941 with the source form absent.
752
+
753
+ ### Changed
754
+
755
+ - **A verdict's tier now comes from the probe shape, not only the method.**
756
+ `Probe` carries an optional `tier` for the shapes that reach less than their
757
+ method can, and the per-probe result assembly reads it before falling back
758
+ to the method's ceiling. This is what keeps 3.11.0's observed-channel fix
759
+ true now that `include`'s ceiling is `executed`: the second-order channel
760
+ awards the tier carried in the result, so carrying the method's ceiling
761
+ there would report a second-order *file read* as execution. The guard
762
+ written for that fix caught it, and `docs/reference.md` now states the rule
763
+ as per-shape rather than per-method.
764
+
765
+ **The control was chosen by measurement.** The obvious one -- `--methods
766
+ reflected` on the same URL -- is wrong: measured, it sends 37 probes and 32
767
+ come back `error`, because a shell payload sent raw into a query string breaks
768
+ the request before it arrives, and a control whose probes mostly never reach
769
+ the target says nothing about false confirmation. So the control is a tier
770
+ ceiling instead: the same build, the same rung, the same probes, with no
771
+ `--include-write-url`. Measured, 16 probes reach the target and all 16 are
772
+ `negative`. The execution verdict comes from reading the written file back,
773
+ and without somewhere to read it from this method does not reach `executed`
774
+ on a target where it otherwise does.
775
+
776
+ ### Fixed
777
+
778
+ - **Every traversal depth now writes its own file and computes its own
779
+ product.** They shared one filename and one product per wrapper, so they also
780
+ shared one read-back URL -- and a depth whose own include *failed* fetched
781
+ the file an earlier depth had written and reported it as its own execution.
782
+ Measured: depth 5, with `Failed opening` in its own response body, returned
783
+ `executed` carrying depth 3's product. The run's verdict about the target
784
+ stayed right, because the file only exists if some depth did execute; what
785
+ was wrong is the map of which shapes the sink accepts, which is what
786
+ `--confirm-depth every` promises and what each finding prints as its carrier.
787
+ Nor did it need that flag: the early stop fires only on `executed`, so a
788
+ depth reaching `file-write` left the carrier running and the next one read
789
+ the same verbatim file. The same class as the `expr` shape 3.0.1 retired from
790
+ `reflected` -- a shape naming something it had not proved.
791
+
792
+ - **`include` missed execution on a sink that opens the path as given.** The
793
+ PEAR traversal named `usr/local/lib/php/pearcmd` with no extension, which is
794
+ right for a framework loader that appends `.php` itself -- ThinkPHP's
795
+ language loader includes `$file . '.php'` -- and wrong for a bare
796
+ `include $_GET['file'];`, where PHP appends nothing and the file is never
797
+ found. Measured on `vulhub/php:7.1.3-apache`, a build whose PEAR script is
798
+ present and whose `register_argc_argv` is on: the extensionless form answered
799
+ 200 on the write, created no file, read back 404 and reported a clean
800
+ `negative` on a sink RCEKit reaches. The corpus now declares both shapes;
801
+ which one works is a property of the sink, so both are sent and at most one
802
+ confirms. New bench case `php-inclusion-include-execute`: `executed` in 2.0s
803
+ from a cold start, against the same build whose read case reports
804
+ `file-read`.
805
+
806
+ That case's own notes said execution was out of reach here and the only
807
+ remaining route was two-step log poisoning. It was right about
808
+ `allow_url_include` and wrong about the conclusion, and the correction is in
809
+ this change too: a script already on disk that *writes* gets code past that
810
+ setting in one step.
811
+
812
+ ### Not built, deliberately
813
+
814
+ - **Windows and PowerShell parity**, the other half of this phase, is blocked on
815
+ a target rather than on design. Measured: none of vulhub's 332 environments
816
+ uses a Windows base image, and this machine's Docker daemon is
817
+ `linux/x86_64`, which cannot run Windows containers at all. PowerShell
818
+ exploitation payloads and `cmd.exe` break-out contexts could be written, and
819
+ nothing could prove them -- and `docs/generation.md` advertises that every
820
+ generated payload runs, so shipping an unmeasured category would weaken a
821
+ stated property rather than extend coverage. It waits for a target.
822
+
823
+ ## [3.11.0] — 2026-10-31
824
+
825
+ ### Added
826
+
827
+ - **A sink that opens a path the request names had no method, and the tier it
828
+ earns is not execution.** `--methods include` confirms that the target read a
829
+ file RCEKit chose, and reports it as a new verdict, `file-read` — the mirror
830
+ of `file-write`, which `write` has reported since 2.31.0 for a file served
831
+ but not interpreted.
832
+
833
+ The ceiling is structural rather than cautious, and it is the whole of what
834
+ this method had to get right. Every method here that proves execution rests
835
+ on a value the target **computed** from operands random to that probe,
836
+ because that is the one thing reflection cannot produce. A file read has no
837
+ such value: RCEKit does not know what is in the target's files, so its
838
+ evidence can only be content recognised in advance. A static signature
839
+ differenced against a payload-free control is exactly the evidence 3.8.0
840
+ demoted the chain's in-band verdict for, and the reasoning does not change
841
+ because the subject did. So `file-read` is where this stops, and there is no
842
+ path upward from it.
843
+
844
+ **The signature has to be the file's content, not the path.** Measured
845
+ against vulhub `php/inclusion`, whose sink is `include $_GET['file'];`: when
846
+ the path cannot be opened, PHP echoes it back inside its own warning, twice.
847
+ An oracle asking "did my string come back" confirms on every probe there,
848
+ against a target that read nothing. So the path travels as the probe's
849
+ *forbidden* literal — its presence says the sink reflected the request — and
850
+ only the content signature decides the verdict. A response carrying both is
851
+ still a read, and the finding says the target also echoes the path.
852
+
853
+ **Traversal depth is swept, not configured.** Which depth works is a property
854
+ of the sink's own directory, not of the target: the same build answered an
855
+ absolute `/proc/version` and a relative `../../../proc/version` alike, and
856
+ measured, depths 1 and 2 failed while 3 through 8 confirmed, because the sink
857
+ runs from `/var/www/html`. A sink that strips a leading separator answers only
858
+ the relative form, so both go out.
859
+
860
+ **The default read target is chosen for what it does not return.** Proving a
861
+ read needs content predictable enough to recognise and absent from the
862
+ control; it does not need the target's secrets on the operator's screen. So
863
+ `/proc/version` is the default, and `/etc/passwd` sits one safety rung up —
864
+ the way the corpus already gates credential-adjacent payloads — which means a
865
+ default run proves the read with a kernel build string and account names come
866
+ back only for an operator who asked for them.
867
+
868
+ The wrappers and the readable files live in the corpus
869
+ (`include_wrappers`, `include_read_targets`), which is the seam the bridges,
870
+ the eval carriers and `argv_primitives` already use: a wrapper or a
871
+ recognisable file can be added without touching Python. `php://filter`
872
+ needed no oracle of its own — the evidence search already peels base64 runs
873
+ of 16 characters or more, and a file's worth of base64 is far past that, so
874
+ the same signature is found inside the encoded blob.
875
+
876
+ `include` declares its own `question` rather than leaving the default. A run
877
+ stops asking a question once it is answered, so `execution` would have made
878
+ this method skipped on any target where execution was already proven —
879
+ discarding a finding with its own remediation, which is the mistake `lookup`
880
+ declares a question to avoid.
881
+
882
+ Bench case `php-inclusion-file-read`: `file-read` against the real build,
883
+ with a `class-attribution` control. The control is the target's own property
884
+ rather than a contrivance — including a file executes no command, so
885
+ `--methods reflected` at `--probe-depth full` sends 19 probes and reports
886
+ `negative` on all 19 against the same URL. That is what earns `include` its
887
+ own name.
888
+
889
+ - **`--include-wrappers`** narrows which inclusion wrappers go out. It defaults
890
+ to everything, unlike `--argv-binary`, because a wrapper names a path rather
891
+ than a program-specific option, so there is nothing target-specific to know
892
+ first. An unknown name is refused rather than narrowing the run to nothing
893
+ and calling the result clean.
894
+
895
+ ### Changed
896
+
897
+ - **The observed channel now awards the method's own tier instead of
898
+ `executed`.** `_observe_match` gave execution to whatever reached it, which
899
+ was true while every method that could reach it proved execution.
900
+ `_observable` admits a result whose expected value is absent from the payload,
901
+ and that was a proxy for "only execution produces this" -- correct for the
902
+ computed-value methods, and correct for `file` and `oob`, whose tokens sit in
903
+ the payload and are excluded by it.
904
+
905
+ `include` is the first method where the proxy and the property come apart. A
906
+ file's content signature is in no payload, so the rule admits it, and it is
907
+ not computed either, so a page that merely renders the file produces it with
908
+ nothing executed. Measured against a sink that only queued a read and an
909
+ observed endpoint that rendered the file: second-order **execution** was
910
+ reported against a target that executed nothing.
911
+
912
+ The tier travels with the method now. `reflected` and `eval` still reach
913
+ `executed` on the observed channel -- pinned by a test, because a fix that
914
+ stopped the false claim by dropping the true one would pass a test written
915
+ only for the first -- and `include` reaches `file-read` there. The observed
916
+ channel changes *where* evidence appeared, never *what* it proves.
917
+ `observe_status` in `--detect-json` carries the awarded tier for the same
918
+ reason.
919
+
920
+ - **Every Windows dialect reads the Windows read targets.** `powershell` is a
921
+ shell dialect, not a filesystem. The traversal builder treated both members
922
+ of `WINDOWS_PATH_SINK_ENVS` alike from the start and the target lookup did
923
+ not, so `--sink-env powershell` found no target, built no probe and reported
924
+ that nothing was tested -- against paths that were entirely right for it.
925
+
926
+ ### Not built, deliberately
927
+
928
+ - **Execution from an inclusion sink.** The route is a wrapper carrying code —
929
+ `data://`, `php://input` — and both need `allow_url_include`, which PHP has
930
+ defaulted off since 5.2. The target said so in its own words:
931
+ `data:// wrapper is disabled in the server configuration by
932
+ allow_url_include=0`, and `php://input` failed the same way. The route that
933
+ works on a released build is two-step — poison a log or a session file, then
934
+ include it — which is a chain, and a chain became a delivery the engine
935
+ drives only in 3.9.0. Shipping an execution path with no case to exercise it
936
+ is a claim the bench cannot reproduce, which this project treats as worse
937
+ than a missing feature, so it waits for the case rather than for the code.
938
+
939
+ - **A phpMyAdmin case.** `phpmyadmin/CVE-2018-12613` was the first choice —
940
+ released software, a documented advisory, and an inclusion sink reachable
941
+ without authentication. Its images cannot be fetched: `vulhub/phpmyadmin:4.8.1`
942
+ and `mysql:5.5` both answer 403 from the registry's blob store on every
943
+ attempt, 13 apiece, while `hello-world` and `vulhub/php:7.1.3-apache` pull
944
+ normally. That is not a transfer that retrying fixes, so the row names a
945
+ target that demonstrates the class instead, and its `Advisory` column says so
946
+ with a dash.
947
+
948
+ ## [3.10.0] — 2026-10-30
949
+
950
+ ### Added
951
+
952
+ - **`--observe-trigger`, because second-order detection has three acts and the
953
+ engine had two.** Inject then read is enough for a payload the target renders
954
+ on its own next page load. It is not enough for one waiting to be run: a queue
955
+ a worker drains, a report generated on demand, a cache rebuilt by an admin
956
+ action, a "run now" button. There the observed page never changes, because the
957
+ work never happens — so polling it reads a page that will not move, and the
958
+ run reports `negative` about a sink that would execute the moment anything
959
+ asked it to.
960
+
961
+ Measured against a target that queues the value on `POST /store`, executes it
962
+ only when `/run` is asked, and renders the output on `/out`: the same probes
963
+ report `negative=19` without the trigger and `executed=19` with it, on the
964
+ observed channel with the same differential as any other second-order finding.
965
+ `--observe-trigger-request` takes a captured request instead, for a trigger
966
+ behind the same session as the page that shows the result.
967
+
968
+ Four properties, each of which is a decision rather than a default:
969
+
970
+ - **Fired before every observed read** — once per probe, once per poll, once
971
+ for the control. Per poll alone is not enough and per probe is the expensive
972
+ half: where the store keeps a single value, triggering only at the end of
973
+ the batch runs whatever the last probe left behind and never tests the rest.
974
+ Measured on an overwriting target, the last stored shape was the Shellshock
975
+ one, which needs a CGI environment sink, so an exploitable sink reported
976
+ `negative` for all 19. The pre-flight names each component of the count,
977
+ because this fires more often than anything else RCEKit sends and that
978
+ number is the operator's to judge rather than the tool's to hide.
979
+ - **The control is triggered too**, so the control and every later read differ
980
+ in the payload and in nothing else — the discipline the chain control
981
+ follows by being a whole chain run. Without it, anything the trigger itself
982
+ renders would be in the reads and absent from the control.
983
+ - **Its own response is never read for evidence.** The trigger is fired to
984
+ cause work; reading what it returns would be a second oracle with no control
985
+ behind it. A test points the trigger at an endpoint that echoes the payload
986
+ and the observed channel at one that does not: nothing is confirmed.
987
+ - **It requires `--observe-url`.** Alone it would send a request and measure
988
+ nothing, which is a run that tests nothing while looking busy, so the run
989
+ refuses it by name.
990
+
991
+ ## [3.9.0] — 2026-10-30
992
+
993
+ ### Added
994
+
995
+ - **A chain is now a delivery the detection engine drives, so a sink behind a
996
+ login is reachable by the oracles that can prove execution.** There were two
997
+ engines. `--verify-chain` carried the session machinery — login, CSRF
998
+ extraction, a payload in an upload's content, a trigger — and none of the
999
+ oracles. `--methods` carried every oracle, the payload-free control, the
1000
+ budget, the safety rungs and the tier vocabulary, and could not hold a
1001
+ session. So the sinks that most needed proof were reachable only by the path
1002
+ that cannot reach `executed` at all.
1003
+
1004
+ `--verify-chain --methods reflected,eval` now runs the engine through the
1005
+ chain's steps. Measured against a two-step target whose `/run` is guarded by a
1006
+ token `/session` hands out — a single request reaches no payload there, it
1007
+ answers 403 — the run reports `executed` with the ordinary evidence line: *a
1008
+ value computed from random operands, absent from the payload-free control*.
1009
+ The same probes against a target that returns the value instead of running it
1010
+ report `negative` for all 19.
1011
+
1012
+ Nothing about the oracles changed to gain this, which is the point. A chain is
1013
+ a different **transport**, not a different oracle, so the seam is one method:
1014
+ every delivery hands back `(status, body, channels, elapsed)` and no detection
1015
+ method knows how many requests produced it.
1016
+
1017
+ - **`--verify-chain` without `--methods` is unchanged**, additively, exactly as
1018
+ `--methods` was introduced for `--verify-url`. The legacy oracle and its
1019
+ `needs-review` ceiling stay; the closing notice now names `--methods` as where
1020
+ a stronger tier comes from, since it is no longer true that the engine cannot
1021
+ run here.
1022
+
1023
+ ### Changed
1024
+
1025
+ - **The nine delivery parameters threaded through `run_detection` and
1026
+ `_escalate` are now one object.** That threading was not merely verbose: 3.1.1
1027
+ found that inserting one of them where it belonged by meaning moved two
1028
+ positional slots and raised `TypeError` for a positional caller. A bundle
1029
+ cannot have that defect, and `SingleRequestDelivery` is the same requests in
1030
+ the same order, so every existing caller is untouched.
1031
+
1032
+ - **A chain step that never answers is an `error`, not a `negative`.** The
1033
+ legacy path put the exception's text in the response body and had no status at
1034
+ all, which for a value oracle reads as "reached the target, found nothing" —
1035
+ a target that could not be reached reported as one with nothing to find. The
1036
+ step runner now distinguishes a 4xx or 5xx, whose body is read like any
1037
+ other, from a request that never completed, which yields no channels and so
1038
+ reports `error` through every oracle.
1039
+
1040
+ **Any** failed step, not only the confirm one, and that distinction is the
1041
+ whole of a chain being several requests. A chain fails in places the confirm
1042
+ step cannot see: an injected step that never connected leaves the confirm step
1043
+ answering perfectly well about a payload it never received. Measured against
1044
+ an unreachable injection step followed by a reachable confirm step, reading
1045
+ only the confirm status reported `negative` — the false clean this project is
1046
+ built to refuse, reached through the code written to refuse it. Failed steps
1047
+ are now collected by name and the detail says which, because "something in the
1048
+ chain broke" is not something an operator can act on.
1049
+
1050
+ - **The pre-flight counts chain steps.** A chain run is one probe and several
1051
+ requests, and the plan line counts payloads — so without this the traffic was
1052
+ understated by the length of the chain, for the operator who has least room to
1053
+ be surprised by it. `--max-payloads` is deliberately **not** converted to
1054
+ requests: it stays a payload allowance so a run is never stopped between a
1055
+ chain's login and its trigger, abandoning a payload and leaving target state
1056
+ the run cannot describe.
1057
+
1058
+ - **`--methods time` and `--methods boolean` are refused by name on a chain**,
1059
+ the way every held-back method is refused rather than dropped. Both read the
1060
+ shape of a response *series*: `time` fits a regression to response time, and a
1061
+ chain's own setup steps move the server's timing in ways the drift term was
1062
+ never fitted against; `boolean` compares response shape across a shuffled
1063
+ series and needs its anchors to hold still, which a fresh session per probe
1064
+ denies by construction. The delivery reports only the injected step's elapsed,
1065
+ which is the honest number and still not one measured through a chain —
1066
+ lifting either refusal changes what a detection method reports, and that is
1067
+ not settleable on a fixture.
1068
+
1069
+ - **A fresh session per probe**, which is the expensive choice. Sharing one
1070
+ would cost a single login instead of one per probe and would let a probe's own
1071
+ state reach the next, which is the thing the payload-free control exists to
1072
+ rule out. The cost is stated rather than quietly avoided.
1073
+
1074
+ - **`--verify-chain` with `--verify-url` or `-r` is refused**, and so is a chain
1075
+ whose steps carry no `FUZZ`. Two ways to name one target is an ambiguity, and
1076
+ a chain with no marker would have sent its steps and tested nothing.
1077
+
1078
+ ### Removed
1079
+
1080
+ - **The 3.8.0 warning that `--methods` is not applied on the chain path.** It
1081
+ was true when it was written and is not now, and the condition that printed it
1082
+ sits inside a block reached only when `--methods` is absent — so it had become
1083
+ unreachable as well as wrong. A test asserting it was the thing that caught
1084
+ this.
1085
+
1086
+ ## [3.8.0] — 2026-10-30
1087
+
1088
+ ### Changed
1089
+
1090
+ - **`--verify-chain`'s in-band verdict was `executed` on evidence the tier rule
1091
+ forbids, and is now `needs-review`.** The oracle there is `record.match`, a
1092
+ *static* signature from `_COMMAND_SIGNATURES` — `uname` is matched by the word
1093
+ `Linux` appearing, `cat /etc/passwd` by a `root:` line, `id` by `uid=` — and
1094
+ this path runs the chain once, with the payload, so there is no payload-free
1095
+ control to difference it against.
1096
+
1097
+ Both halves of what `executed` requires were therefore missing: the value is
1098
+ not one RCEKit generated at random for that probe, and nothing ruled out its
1099
+ having been in the response anyway. Measured against a local target that
1100
+ **executes nothing at all** — one fixed page containing `uid=0`, `root:x:0:0:`
1101
+ and the word `Linux` — the previous behaviour reported `executed=6` for six of
1102
+ six payloads. It now reports `needs-review=6`, with the reason on each row.
1103
+
1104
+ The two tests that pin this are deliberately a pair: a genuinely vulnerable
1105
+ sink and that inert page reach the **same** verdict through this oracle. An
1106
+ oracle that cannot separate those two was never entitled to the tier reserved
1107
+ for execution. That the real sink now reports `needs-review` is the honest
1108
+ ceiling of this channel, not a regression in detection.
1109
+
1110
+ A control was considered and rejected: it would rule out "it was already
1111
+ there" and not "the target computed it", so it would buy a doubled chain cost
1112
+ for a verdict that still could not be `executed`.
1113
+
1114
+ - **The out-of-band chain verdict is unchanged, and that is not an oversight.**
1115
+ A `{callback}` payload still reaches `executed` — configured by the chain
1116
+ profile's own `callback_host` and `listen_port`, which is the only place this
1117
+ path looks; `--oob-host` is read by the `--methods` engine and never by this
1118
+ one. Of the shipped corpus two payloads carry that marker, both `postgres`
1119
+ under `code_execution`, which is outside the default environment set. Its token
1120
+ is twelve
1121
+ characters minted for that payload and registered with the run's listener, so
1122
+ a callback carrying it is a value only the target could have learned by
1123
+ running what it was given — the tier rule's second clause, which needs no
1124
+ control for the same reason `--methods oob` needs none.
1125
+
1126
+ - **`--verify-chain` now says that `--methods` is not applied, before it sends
1127
+ anything.** This path never consulted the flag, so a run that accepted it in
1128
+ silence delivered the corpus oracle while the operator believed they had asked
1129
+ for a tiered one — and a clean result then read as though the methods had been
1130
+ tried. Not a refusal: the chain run is still worth making, and the operator can
1131
+ decide once they know. The run also closes by naming its own ceiling whether or
1132
+ not anything matched.
1133
+
1134
+ ### Migration
1135
+
1136
+ A `--verify-chain` run that previously printed `EXECUTED` for an in-band match
1137
+ now prints a `NEEDS-REVIEW candidate(s)` section instead, and `executed` on that
1138
+ path is reachable only out of band. Nothing about the chain's delivery changed —
1139
+ the same steps, substitutions and payloads go to the target — so a finding you
1140
+ reported from a previous run is not retracted by this; it is reclassified as
1141
+ something to confirm rather than something confirmed.
1142
+
1143
+ To confirm it, reproduce the sink through `--verify-url` / `-r` with `--methods`,
1144
+ where the oracles that rest on a computed value and a payload-free control live.
1145
+ The chain's own out-of-band channel is the other route, and it needs two things
1146
+ named precisely: `callback_host` and `listen_port` in the **chain profile**
1147
+ (`--oob-host` belongs to the `--methods` engine and is not read here), and a
1148
+ payload carrying `{callback}` — of which the shipped corpus has two, both
1149
+ `postgres` under `code_execution`, so `--environments postgres --categories
1150
+ code_execution` or your own `--template-file` is required to generate one.
1151
+
1152
+ Exit status is unaffected: this path returned 0 regardless of outcome before and
1153
+ still does.
1154
+
1155
+ ## [3.7.1] — 2026-10-29
1156
+
1157
+ ### Fixed
1158
+
1159
+ - **A byte-order mark on a JSON *response* cost it its leaf channels and its
1160
+ shape reading.** 3.1.2 stripped the mark everywhere RCEKit decides what a
1161
+ request body is. The response side was left alone, and the previous change
1162
+ documented that as a decision rather than an oversight — with what each half
1163
+ cost measured, because the obvious answer was wrong in both directions. This
1164
+ closes it, and that documentation is what made it safe to close.
1165
+
1166
+ `json.loads` rejects a mark outright, so `_json_leaf_channels` returned
1167
+ nothing for a marked body and `response_shape` fell from its structural
1168
+ reading to the word-count fallback. Both now strip the mark through the same
1169
+ shared helpers the request side uses, and they had to move **together**: they
1170
+ are two readings of one body, and stripping in one and not the other makes
1171
+ them disagree about what a response *is* — the shape of the request-side bug,
1172
+ reached from the other direction.
1173
+
1174
+ What the leaf half cost was mostly the precision of a channel name, since
1175
+ `response body` carries the whole document and the encoded-value search peels
1176
+ URL, HTML, `\uXXXX`, base64 and hex out of it. But a value whose JSON
1177
+ rendering uses an escape that peeling does not undo — `\/`, or a surrogate
1178
+ pair — was reachable *only* through the parsed leaf, and measured, it was
1179
+ found on no channel at all once the mark was there. That is a lost
1180
+ confirmation rather than a lost label, and it is recovered: measured again,
1181
+ `JSON field p` with the mark and without it.
1182
+
1183
+ The shape half is the one that needed the wait. `response_shape` is
1184
+ `boolean`'s oracle input, so changing it changes what a detection method
1185
+ reports, which this project does not settle on a fixture — and `boolean` was
1186
+ the one method with no bench case. It has had one since 3.6.1, and
1187
+ `mongo-express-where-boolean` was run on this tree **before and after**: pass
1188
+ in 21.2s both times, `evaluation-sink` against `negative` both times. That is
1189
+ the no-regression evidence the change was blocked on. It does not exercise
1190
+ the fix, because mongo-express emits no mark; the behaviour change itself is
1191
+ shown by fixtures, and saying which evidence covers which half is the point.
1192
+
1193
+ **The direction is toward fewer false positives.** The structural reading
1194
+ drops every scalar, so a request id or a timestamp cannot make two identical
1195
+ answers look different; the word-count fallback a marked body used to get
1196
+ cannot. A JSON API that emits a mark now gets the same guard every other JSON
1197
+ target gets. No tier changes and no new verdict.
1198
+
1199
+ A mark is still not a licence to guess: a body that is not JSON once the mark
1200
+ is gone takes exactly the path it did before, which a test pins for plain text
1201
+ and for markup.
1202
+
1203
+ ## [3.7.0] — 2026-10-29
1204
+
1205
+ ### Added
1206
+
1207
+ - **`--methods argv`: argument injection into a program spawned with no shell.**
1208
+ This class was in the README's excluded list until now, and the reason it
1209
+ moved is the reason it is worth having. It is not a weaker case of command
1210
+ injection; it is the case where the application did the **correct** thing.
1211
+ GitList calls `escapeshellarg($query)` exactly as documented, so the value
1212
+ reaches `git grep -i --line-number <value> <branch>` as one argv element with
1213
+ no shell anywhere and every separator inert. What quoting cannot stop is that
1214
+ argument being read as an **option**, and `git`'s `--open-files-in-pager=`
1215
+ names a command git then runs. Measured against vulhub
1216
+ `gitlist/CVE-2018-1000533`: `--methods reflected` at `--probe-depth full`
1217
+ sends 37 probes and reports `negative` on all 37, while `--methods argv`
1218
+ reports `executed` on the same endpoint in one probe. A separator ladder
1219
+ cannot reach that sink by construction, not by bad luck.
1220
+
1221
+ **The oracle did not change, and that is the point.** The option names a
1222
+ command, so the command is the same arithmetic core the results-based probes
1223
+ already build, and `_confirm_computed` differences it against the payload-free
1224
+ control exactly as it does for `reflected`. A new vector needed no new
1225
+ definition of proof, and `executed` still rests on the channels it rested on
1226
+ before.
1227
+
1228
+ It is a **method rather than a carrier**, unlike the query-language bridges it
1229
+ otherwise resembles. A carrier would have printed this finding as
1230
+ `[reflected/...]`, which asserts a shell of that family ran the input; on an
1231
+ argv sink no shell ran it, a program parsed it and chose to run something
1232
+ else. Naming the wrong class is the error 3.0.1 removed a probe shape for.
1233
+
1234
+ The catalogue lives in the corpus as `argv_primitives`, the seam the bridges
1235
+ and eval carriers already use, so an option shape can be added without
1236
+ touching Python. Two ship: `git --open-files-in-pager=` and
1237
+ `gs -sOutputFile=%pipe%`. Each is a **single argv element** —
1238
+ `-sOutputFile=x`, never `-s OutputFile=x` — because a sink that hands the
1239
+ value over as one argument is the shape that makes the class reachable, and a
1240
+ two-element option is inert there while looking like coverage. A test fails if
1241
+ one is added.
1242
+
1243
+ An entry also has to be able to return the value **through the channel this
1244
+ method has**, and that is the harder bar. `ssh -oProxyCommand=` and
1245
+ `rsync --rsh=` were written, reviewed and cut for failing it: a ProxyCommand
1246
+ runs through a shell but its stdout *is* the SSH transport, and rsync does not
1247
+ use a shell at all — measured, `--rsh="echo RK$((111+222))RK"` yields
1248
+ `protocol version mismatch` and no computed value, where the same string
1249
+ through a shell yields it. Both options work; neither can hand the result
1250
+ back. They are the reason the catalogue's remaining notes state where each
1251
+ primitive's stdout goes.
1252
+
1253
+ `--argv-binary` selects by primitive name or by the binary (`git`, `gs`),
1254
+ and refuses an unknown one rather than narrowing the run to
1255
+ nothing: a typo that selected no option at all would read exactly like a run
1256
+ that tried them and came back clean.
1257
+
1258
+ **In-band only, deliberately.** A blind argv sink is real — an image converter
1259
+ spawned on an upload renders nothing — and reaching it means carrying an
1260
+ out-of-band core instead of an arithmetic one, which is a small change to this
1261
+ class and no change to its shape. It is left out because there is no target to
1262
+ prove it against, and a path shipped without a case that exercises it is a
1263
+ claim the bench cannot reproduce.
1264
+
1265
+ - **A bench case for it**, `gitlist-cve-2018-1000533-argv`, passing in 18.3s
1266
+ with the strongest control this harness can carry: the negative half is the
1267
+ target's **own security property** rather than a contrivance, since
1268
+ `escapeshellarg` is what makes `reflected` come back clean on a build that is
1269
+ genuinely exploitable.
1270
+
1271
+ Three details of the probe were measured there rather than reasoned, and each
1272
+ is the difference between confirming and reporting a clean negative against a
1273
+ target that executes. The probe ends in `#`, not the `;` the published
1274
+ write-ups use: git appends the path it would have paged, so `;` leaves it as a
1275
+ bare command, git exits 255, and GitList's
1276
+ `catch (RuntimeException) { return false; }` throws the output away — the
1277
+ command runs and nothing comes back. The pager's output imitates git grep's
1278
+ own `tree:file:line:match` format, because whatever consumes that stdout is an
1279
+ application parsing git grep output, and a bare line reaches GitList and is
1280
+ dropped by its own regex. And the URL's branch segment has to be a pattern
1281
+ that matches file content, because once the query is consumed as an option the
1282
+ branch becomes git grep's pattern and the pager only opens when there is a
1283
+ file to page.
1284
+
381
1285
  ## [3.6.1] — 2026-10-27
382
1286
 
383
1287
  ### Fixed
@@ -3397,6 +4301,18 @@ this file and have not been restated here.
3397
4301
 
3398
4302
 
3399
4303
  [Unreleased]: https://github.com/kabiri-labs/rcekit/compare/v2.36.0...HEAD
4304
+ [3.15.0]: https://github.com/kabiri-labs/rcekit/compare/v3.14.0...v3.15.0
4305
+ [3.14.0]: https://github.com/kabiri-labs/rcekit/compare/v3.13.0...v3.14.0
4306
+ [3.13.0]: https://github.com/kabiri-labs/rcekit/compare/v3.12.2...v3.13.0
4307
+ [3.12.2]: https://github.com/kabiri-labs/rcekit/compare/v3.12.1...v3.12.2
4308
+ [3.12.1]: https://github.com/kabiri-labs/rcekit/compare/v3.12.0...v3.12.1
4309
+ [3.12.0]: https://github.com/kabiri-labs/rcekit/compare/v3.11.0...v3.12.0
4310
+ [3.11.0]: https://github.com/kabiri-labs/rcekit/compare/v3.10.0...v3.11.0
4311
+ [3.10.0]: https://github.com/kabiri-labs/rcekit/compare/v3.9.0...v3.10.0
4312
+ [3.9.0]: https://github.com/kabiri-labs/rcekit/compare/v3.8.0...v3.9.0
4313
+ [3.8.0]: https://github.com/kabiri-labs/rcekit/compare/v3.7.1...v3.8.0
4314
+ [3.7.1]: https://github.com/kabiri-labs/rcekit/compare/v3.7.0...v3.7.1
4315
+ [3.7.0]: https://github.com/kabiri-labs/rcekit/compare/v3.6.1...v3.7.0
3400
4316
  [3.6.1]: https://github.com/kabiri-labs/rcekit/compare/v3.6.0...v3.6.1
3401
4317
  [3.6.0]: https://github.com/kabiri-labs/rcekit/compare/v3.5.0...v3.6.0
3402
4318
  [3.5.0]: https://github.com/kabiri-labs/rcekit/compare/v3.4.0...v3.5.0