rcekit 3.15.0__tar.gz → 3.20.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 (50) hide show
  1. {rcekit-3.15.0 → rcekit-3.20.0}/CHANGELOG.md +597 -0
  2. {rcekit-3.15.0 → rcekit-3.20.0}/PKG-INFO +106 -40
  3. {rcekit-3.15.0 → rcekit-3.20.0}/README.md +105 -39
  4. rcekit-3.20.0/SECURITY.md +239 -0
  5. {rcekit-3.15.0 → rcekit-3.20.0}/docs/guide.md +34 -3
  6. rcekit-3.20.0/docs/oracle-model.md +138 -0
  7. {rcekit-3.15.0 → rcekit-3.20.0}/docs/reference.md +75 -7
  8. {rcekit-3.15.0 → rcekit-3.20.0}/rcekit.egg-info/PKG-INFO +106 -40
  9. {rcekit-3.15.0 → rcekit-3.20.0}/rcekit.egg-info/SOURCES.txt +2 -0
  10. {rcekit-3.15.0 → rcekit-3.20.0}/rcekit.py +1535 -76
  11. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/README.md +77 -5
  12. rcekit-3.20.0/tests/bench/cases/flask-ssti-syntax.json +74 -0
  13. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/runner.py +27 -8
  14. {rcekit-3.15.0 → rcekit-3.20.0}/tests/test_bench_runner.py +468 -3
  15. {rcekit-3.15.0 → rcekit-3.20.0}/tests/test_docs.py +71 -0
  16. {rcekit-3.15.0 → rcekit-3.20.0}/tests/test_generator.py +1289 -17
  17. rcekit-3.15.0/SECURITY.md +0 -69
  18. {rcekit-3.15.0 → rcekit-3.20.0}/CONTRIBUTING.md +0 -0
  19. {rcekit-3.15.0 → rcekit-3.20.0}/LICENSE +0 -0
  20. {rcekit-3.15.0 → rcekit-3.20.0}/MANIFEST.in +0 -0
  21. {rcekit-3.15.0 → rcekit-3.20.0}/docs/generation.md +0 -0
  22. {rcekit-3.15.0 → rcekit-3.20.0}/docs/verify-it-yourself.md +0 -0
  23. {rcekit-3.15.0 → rcekit-3.20.0}/pyproject.toml +0 -0
  24. {rcekit-3.15.0 → rcekit-3.20.0}/rcekit.egg-info/dependency_links.txt +0 -0
  25. {rcekit-3.15.0 → rcekit-3.20.0}/rcekit.egg-info/entry_points.txt +0 -0
  26. {rcekit-3.15.0 → rcekit-3.20.0}/rcekit.egg-info/top_level.txt +0 -0
  27. {rcekit-3.15.0 → rcekit-3.20.0}/setup.cfg +0 -0
  28. {rcekit-3.15.0 → rcekit-3.20.0}/templates/payloads.json +0 -0
  29. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/fastjson-1.2.83.json +0 -0
  30. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/gitlist-cve-2018-1000533-argv.json +0 -0
  31. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/hugegraph-gremlin-eval.json +0 -0
  32. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/hugegraph-gremlin-reflected-class.json +0 -0
  33. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/hugegraph-gremlin-shell.json +0 -0
  34. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/log4shell-cve-2021-44228.json +0 -0
  35. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/mongo-express-where-boolean.json +0 -0
  36. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/opentsdb-cve-2023-25826.json +0 -0
  37. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/php-inclusion-file-read.json +0 -0
  38. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/php-inclusion-include-execute.json +0 -0
  39. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/struts2-s2-001.json +0 -0
  40. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/thinkphp-lang-include-execute.json +0 -0
  41. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/tomcat-cve-2017-12615.json +0 -0
  42. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107-enumerated.json +0 -0
  43. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107-file.json +0 -0
  44. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107-time.json +0 -0
  45. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/cases/webmin-cve-2019-15107.json +0 -0
  46. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/requests/mongo-express-literal.txt +0 -0
  47. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/requests/mongo-express-where.txt +0 -0
  48. {rcekit-3.15.0 → rcekit-3.20.0}/tests/bench/requests/webmin.txt +0 -0
  49. {rcekit-3.15.0 → rcekit-3.20.0}/tests/test_corpus_embedding.py +0 -0
  50. {rcekit-3.15.0 → rcekit-3.20.0}/tools/embed_corpus.py +0 -0
@@ -8,6 +8,102 @@ formats, or the template schema.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ### Fixed
12
+
13
+ - **A bench case that spelled out its `compose` lost its teardown, and said
14
+ nothing.** `compose_command` read the down command as
15
+ `case.get("compose_down", [])`; an absent key gave the empty list, and
16
+ `take_down` reads an empty command as "this case manages no containers" and
17
+ returns. So a case that named `compose` -- all four that did it named it only
18
+ to add `--build` -- reported `pass` and left its container running.
19
+
20
+ What that cost, measured on the 3.19.0 sweep:
21
+ `gitlist-cve-2018-1000533-argv` passed, kept `:8080` for the next hour, and
22
+ the seven later cases that publish that port failed one after another on
23
+ `port is already allocated`. Eight red rows from one leak, and nothing wrong
24
+ with any of the eight -- re-run on a free port, all eight pass. A harness
25
+ that turns a leak into findings is worse than no harness, because the
26
+ findings look real.
27
+
28
+ An absent `compose_down` now falls back to the standard teardown, run in the
29
+ directory the `up` ran in. `compose_down: []` still means no teardown, which
30
+ is now the only way to say it and says it on purpose.
31
+ `TeardownTestCase.test_every_real_case_that_comes_up_also_goes_down` walks
32
+ the shipped corpus rather than a fixture, both halves of every case, and
33
+ fails on 8 halves across 4 cases against the old logic.
34
+
35
+ ### Added
36
+
37
+ - **A bench case for `syntax`, the last method without one.** `flask-ssti-syntax`
38
+ points the differential at vulhub's `flask/ssti` -- three lines whose
39
+ parameter reaches `Template(...).render()` -- and the sink is the shape the
40
+ method was designed against: `?name={{7*7}}` answers 200 with `Hello 49`,
41
+ and `?name={{7*7` answers 500 with Flask's error page. A difference in the
42
+ response's *structure*, which is what `response_shape` reads.
43
+
44
+ The case is worth more than its one row because of the 24 `inconclusive`
45
+ rows beside it. Jinja2 does not parse `${}`, `#{}`, `%{}`, `<%= %>` or `@()`,
46
+ so the app echoes those forms back verbatim and the two halves of each pair
47
+ differ because the *input* differed. The reflection guard says so and
48
+ refuses to answer -- so the guard this oracle most needs is exercised on the
49
+ same target as the finding, in the same run. Two shapes are disclosed as not
50
+ tested rather than reported negative: `@()` in `shell_subshell`, whose
51
+ broken half that context's own `)` closes.
52
+
53
+ The control is class attribution and the mirror of the Struts2 case: Jinja2
54
+ parses the value and no shell is behind it, so `reflected`'s shell-syntax
55
+ probes have nothing to execute. Measured at 52 probes, all negative.
56
+
57
+ ### Documentation
58
+
59
+ - **The bench claim is a sweep again, and it is measured at this version.**
60
+ The README said the suite was last green at 3.0.1, 10/10 in 55m48s, with a
61
+ paragraph beside it listing the 7 cases added since, each run on its own --
62
+ honest about what it was, and no longer a statement about the suite.
63
+ `python tests/bench/runner.py --all` is now green at **18/18 in 1h21m42s at
64
+ 3.19.0**, every case and every control in one run on the fixed runner, and
65
+ the figure in both READMEs is that run. With `flask-ssti-syntax` in it, all
66
+ 12 detection methods have a bench case; `syntax` was the last one without.
67
+ `tests/bench/README.md` carries the table, the four cases that are most of
68
+ the wall clock and why each of them is, and the teardown bug the sweep
69
+ found.
70
+
71
+ - **Two measured claims in `rcekit.py` corrected by a longer soak.** The
72
+ `syntax` differential's guards were documented as holding *completely*
73
+ against a 20% drifting page, on 1200 judgements. At 120000 they leave
74
+ **171, a rate of 0.14%** -- about one claim in 700. The docstring now says
75
+ 0.14% and says that 0 was a sample rather than a floor. The same soak left
76
+ the `boolean` scalar channel's 0 of 2000 at 0 of 20000, which the docstring
77
+ now records, because the two zeros came from different places: one was
78
+ structure and one was sample size.
79
+
80
+ - **`docs/oracle-model.md`: where to audit the verdict logic.** The trust core
81
+ -- the oracle contract, the verdict vocabulary, and the delivery facts the
82
+ engine decides for every method -- is interleaved with HTTP delivery, CLI
83
+ parsing, injection-point enumeration and an embedded corpus, because
84
+ `rcekit.py` is one file on purpose. A reviewer's first question is where the
85
+ verdict logic lives, and the answer was "read 14,000 lines".
86
+
87
+ The page is an index rather than a second copy of anything: the three regions
88
+ with the symbols in each, and every invariant the model rests on with **the
89
+ test that holds it**. `rcekit.py` now fences those three regions with the
90
+ banner style the rest of the file already uses, so each is citable.
91
+
92
+ The citations are checked. `OracleModelPageTestCase` asserts that every test
93
+ the page names exists and that every symbol in its region table is a symbol,
94
+ because which test guards which property is a judgement and cannot be
95
+ derived -- so without the check the page would rot the way every
96
+ hand-written cross-reference here has rotted before: the property stays
97
+ true, the test gets renamed, and the page sends a reviewer after something
98
+ that is not there.
99
+
100
+ Module extraction was considered and declined. One file is a distribution
101
+ property -- `rcekit.py` runs alone on a jump box -- and the three regions
102
+ cannot be made one contiguous block without moving code, so the page says
103
+ where they are instead of pretending they are adjacent.
104
+
105
+ No version bump -- this is documentation and comments only.
106
+
11
107
  ### Documentation
12
108
 
13
109
  - **The README said a run that reached nothing exits non-zero, and it exits 0.**
@@ -413,6 +509,499 @@ formats, or the template schema.
413
509
 
414
510
  No version bump -- this is documentation and tests only.
415
511
 
512
+ ## [3.20.0] — 2026-12-04
513
+
514
+ ### Added
515
+
516
+ - **A `--detect-json` report says which invocation wrote it.** The report
517
+ carried `rcekit_version`, `target`, `methods`, `verdict`, `counts` and
518
+ `probes` -- six fields, none of them about *this* run. A run that refuses to
519
+ start exits non-zero **before** the writer is reached, so the report the
520
+ previous run left stays on disk byte for byte, and a caller reusing one
521
+ output path across runs read a stale file with nothing in it to say so.
522
+
523
+ Measured: a clean run wrote a report; a second invocation to the same path
524
+ with an unknown `--methods` name exited 1 and left the earlier report
525
+ byte-identical (same md5). Nothing in the file, and nothing in the schema,
526
+ distinguished it from a fresh one.
527
+
528
+ So two fields. `run_id` is minted once per invocation and **printed on the
529
+ `[detect]` line that names the path**, which is what makes it usable: the
530
+ comparison a caller makes is an equality rather than a time window. That is
531
+ the half a timestamp cannot do alone -- a report written to a mounted volume
532
+ by a container whose clock drifted, or read by a job in another timezone,
533
+ defeats a window and not an equality. `generated_at` is a tz-aware UTC
534
+ ISO-8601 stamp, and it stays because it is the only field that dates the
535
+ evidence for a human reading the file months later.
536
+
537
+ **Nothing is written on an early failure, and that is the contract rather
538
+ than a gap.** Both alternatives are worse: a placeholder report would
539
+ overwrite the evidence the previous run left, and refusing to run when the
540
+ path exists would break every caller that reuses one. The exit status already
541
+ answers whether the run started; `run_id` answers whether this file came from
542
+ it. The two together are complete, and `README.md`'s CI guidance now says so
543
+ in those terms.
544
+
545
+ Additive: no field, verdict name or exit code changed, and the bench harness
546
+ reads `verdict`, `counts` and `probes` exactly as before.
547
+
548
+ ### Fixed
549
+
550
+ - **An interrupted `--detect-json` write destroyed the previous report as well
551
+ as the new one.** `open(path, "w")` truncates before a byte is written, so a
552
+ crash, a full disk or a `TypeError` out of `json.dump` left a half-written
553
+ document where a readable one had been -- and a truncated report is worse
554
+ than a stale one, because a stale report is answered by comparing the run id
555
+ while a truncated one fails to parse at all.
556
+
557
+ The document is now staged beside the target and moved into place with
558
+ `os.replace`. Beside it rather than in a temp directory because `os.replace`
559
+ is atomic within one filesystem and not across two, and a report collected
560
+ off a mounted volume -- which is how the bench harness reads one -- is on
561
+ another. The staging name carries the run id, so two runs writing the same
562
+ path cannot stage over each other, and the debris is removed on any failure
563
+ while the previous report is left untouched.
564
+
565
+ It is atomic **where the directory allows it**, and that qualifier is not
566
+ hypothetical. An atomic replace has to create a sibling and rename it, and
567
+ both need write permission on the *directory* -- which `tests/bench/`
568
+ deliberately withholds. `run_rcekit` pre-creates the report at mode `0666`
569
+ inside a directory at `0711`, so a container under Docker user-namespace
570
+ remapping can write that one file and create nothing beside it; the harness
571
+ says so itself: "nobody else can create, replace or unlink entries here".
572
+ A writer that only ever staged raised `PermissionError` there, published no
573
+ report, and left every bench case reading `nothing-tested` -- the one false
574
+ clean that harness exists to prevent. So an `OSError` out of the staged
575
+ write or the rename falls back to writing the report in place: where the
576
+ atomic path is available the previous report survives any failure, and
577
+ where it is not the writer degrades to exactly its pre-3.20.0 behaviour
578
+ rather than to something worse.
579
+
580
+ The document is also serialised **before any file is opened**, on either
581
+ path, so a value that cannot be encoded raises with the previous report and
582
+ the directory both untouched. The old writer discovered that with the file
583
+ already truncated.
584
+
585
+ - **A restrictive mode on an existing report no longer survives only by
586
+ accident.** The truncating write kept the inode, and with it the mode. An
587
+ `os.replace` publishes the staging file instead, which was created under the
588
+ current umask -- so replacing a report an operator had set to `0600` would
589
+ have produced a `0644` one under umask `022`. The report carries the full
590
+ target URL and every probe's evidence, so that is access to engagement data
591
+ rather than a tidiness point. The mode of the report being replaced is now
592
+ carried onto its replacement. Only ever *preserved*, in both directions: a
593
+ report that did not exist is still created under the umask, and a `0666` one
594
+ -- which is exactly what the bench harness pre-creates -- is not narrowed.
595
+
596
+ And the staging file is narrowed **before a byte of evidence goes into it**,
597
+ which is the half that makes the other one worth anything. `open` creates it
598
+ under the umask, so setting the published mode after writing left the whole
599
+ report on disk at `0644` until the change landed -- and a local user with
600
+ access to the directory who opened it inside that window keeps the descriptor
601
+ across the change. Measured against that ordering: 443 bytes were already
602
+ written when the mode was first set. The file is now created empty, narrowed
603
+ to owner-only, written, and only then set to the mode it is published with.
604
+ An empty file discloses nothing, so the moment it spends at the umask costs
605
+ nothing, and the mode it was born with is what a first report still ends up
606
+ at. `ReportStagingModeTestCase` watches the mode changes rather than the
607
+ file, because the window is an ordering and not a state -- so it runs
608
+ everywhere, and all 3 of its tests fail against the old ordering.
609
+
610
+ ## [3.19.1] — 2026-12-04
611
+
612
+ ### Fixed
613
+
614
+ - **A chain never substituted the payload into a step’s path, and never
615
+ encoded it anywhere.** `_run_chain_steps` resolved `{var}` and then did a
616
+ raw `.replace(mark, payload)` for every other position, while the
617
+ single-request path has always put each injection point through
618
+ `_encode_for_location`. One omission, three defects — and a chain is the
619
+ delivery a sink behind a login is reached through, so each was a false
620
+ answer about a target nothing else could reach.
621
+
622
+ **The marker in a step’s `path` was not substituted at all.** `subst`
623
+ resolves `{var}`; nothing resolved the marker. The step went out carrying
624
+ the literal string `FUZZ`, the sink never saw a payload, and every oracle
625
+ read `negative` — the false clean this project exists to refuse. A GET
626
+ endpoint behind a login is the most ordinary shape a chain is pointed at,
627
+ and it was the one shape that could not work. Measured: a query-string
628
+ command-injection sink driven through a chain reported `negative` on all 6
629
+ probes before, and `executed` after. Worse while it lasted, `carried_mark`
630
+ checks `step["path"]` for the marker, so the code believed the payload had
631
+ landed there and timed that step as the injected one — `injected_elapsed`
632
+ was attributed to a step that received no payload.
633
+
634
+ Each URL position is now encoded for itself, as `_build_verify_request`
635
+ already does for a single request: `?` and `&` are structure in a query
636
+ string and data in a path segment, so one encoder chosen for the whole URL
637
+ would corrupt whichever position it was not chosen for — and a step may
638
+ carry the marker in both.
639
+
640
+ **A `json` step stopped being JSON.** Raw, a payload carrying a double
641
+ quote closed the string it was dropped into: `{"host": "FUZZ"}` became
642
+ `{"host": ""; echo …#"}`. That is the whole `dq` sink-shape rung. The
643
+ verdict it produced is worse than the lost coverage — the target answered
644
+ 400 to a body RCEKit had malformed, the quote-free control parsed and got
645
+ through, and `payload_refused` read the pair as a filter. Measured against
646
+ a fixture with no filter in it: 5 of 8 probes reported `blocked`, "a filter
647
+ refused the payload … the sink never saw it". Now `json_string`, and the
648
+ payload survives the escaping byte for byte.
649
+
650
+ **A header step could not carry a newline.** A header value with a raw
651
+ newline is not a request http.client will send, so the `newline`
652
+ sink-shape rung was lost to `error` on every chain it went through. Now
653
+ the `header` encoder folds CR/LF to spaces, which is what the
654
+ single-request path has always done, and the probe arrives with a status to
655
+ be judged on.
656
+
657
+ `form` stays `raw` deliberately: `urlencode` encodes every value it is
658
+ handed, and encoding beforehand would percent-encode the first pass’s
659
+ percent signs. A raw `body` stays `raw` too — the operator chose the
660
+ format. An upload’s filename moves to `multipart_filename`, since a part
661
+ header is where a newline forges a new part rather than corrupting one
662
+ value.
663
+
664
+ **Why none of it was caught:** no fixture and no documented example ever
665
+ put the marker anywhere but a `form`, a `body` or a `multipart` part.
666
+ `chain_profile` uses `form`; the guide’s example uses `multipart`.
667
+ `ChainPayloadEncodingTestCase` and `ChainQueryStringSinkTestCase` put it
668
+ in every position a step can carry, and 10 of their 13 tests fail against
669
+ the old behaviour. The 3 that pass are the guards on the positions that
670
+ were already right.
671
+
672
+ ## [3.19.0] — 2026-11-19
673
+
674
+ ### Added
675
+
676
+ - **`boolean` reads one bit of a JSON answer, not just the shape of one.**
677
+ `response_shape` drops every scalar a document carried -- which is what keeps
678
+ a request id and a timestamp from making two identical answers look different
679
+ -- so `{"allowed":true}` and `{"allowed":false}` had the same shape, and a
680
+ sink that evaluates an attacker-supplied predicate and renders one bit of the
681
+ result was invisible to the one method built for predicate sinks. A rules
682
+ engine, a filter-expression evaluator and an authorisation endpoint all have
683
+ that shape. The `$where` case was never affected: a document set changes
684
+ length, and a list's length is kept.
685
+
686
+ The scalar channel reads those values back at identical JSON paths, **off the
687
+ series already fired**, so it costs no request unless it finds something. It
688
+ runs only where the shape channel said nothing: a whole response partitioning
689
+ is the stronger reading of the same probes.
690
+
691
+ It is guarded harder than the shape channel because it has to be, and the
692
+ floors are measured rather than chosen. Against a body carrying a scalar that
693
+ flips on its own -- an A/B variant, a feature flag, a cache marker -- and
694
+ against one that really evaluates the predicate, 2000 runs each:
695
+
696
+ | configuration | flips on its own | really evaluates |
697
+ |---|---|---|
698
+ | one wave, 2 pairs (`quick`) | 152/2000 (7.6%) | 2000/2000 |
699
+ | one wave, 4 pairs (`full`) | 14/2000 (0.70%) | 2000/2000 |
700
+ | one wave, 6 pairs | 0/2000 | 2000/2000 |
701
+ | screen then confirm, 2 pairs | 2/2000 (0.10%) | 2000/2000 |
702
+ | **screen then confirm, 4 pairs** | **0/2000** | **2000/2000** |
703
+
704
+ So: a confirming wave on fresh operands, and a floor of four pairs per
705
+ connective -- which is why this channel does not answer at `--probe-depth
706
+ quick` and says so in the negative's evidence rather than letting the run read
707
+ as a clean one. Six pairs in a single wave reaches the same 0 and was not
708
+ taken: it costs 20 extra requests on every context including every clean one,
709
+ where a confirming wave costs nothing until something screens. The shape
710
+ channel's floor of two is untouched -- `response_shape` drops the scalar that
711
+ is doing the flipping, so one oracle's measured floor is not another's.
712
+
713
+ Four further guards exclude a confound structurally rather than by name: a
714
+ path must appear in every answer of the wave; its values across the wave must
715
+ number exactly two, which is what rules out an id, a timestamp and a counter;
716
+ the three true anchors must agree on the path and with the true half; and a
717
+ value carrying the predicate back is reflection. Measured at 200 runs each: 0
718
+ of 200 for a random id, a monotonic timestamp, an incrementing counter, an
719
+ echoed predicate, and a filter that refuses the false half.
720
+
721
+ JSON only, deliberately. A path is a stable identity for "the same value" and
722
+ a plain-text body has none -- which is where the measurement behind
723
+ `response_shape` came from, a length-shaped signature claiming a differential
724
+ in 13 of 25 runs against a target that only echoed its input.
725
+
726
+ The ceiling is unchanged: `evaluation-sink`, a lead rather than a finding.
727
+ Which evaluator rendered the bit is no more visible here than in the shape
728
+ channel.
729
+
730
+ ## [3.18.2] — 2026-11-18
731
+
732
+ Both of these were raised by automated review on the pull request that shipped
733
+ 3.18.1, verified against the code, and are defects in that release rather than
734
+ in what it replaced.
735
+
736
+ ### Fixed
737
+
738
+ - **A syntax pair was voided by its own transport encoding.** 3.18.1 judged
739
+ whether a form's broken twin survives its context by looking at the fully
740
+ wrapped payload -- escaping included. A context has two parts doing different
741
+ things: the prefix and suffix are text the sink concatenates, while the escape
742
+ is how the value survives the trip, and an XML consumer turns `&lt;%=` back
743
+ into `<%=` before any template parser sees it. So the `xml` context voided
744
+ `<%= %>` for a reason that has nothing to do with the sink, dropping the sixth
745
+ form and with it a real `syntax-sink` on a target whose ERB is reached through
746
+ an XML body.
747
+
748
+ Survival is read from the prefix and suffix now. Measured across every shipped
749
+ context, before and after: `xml` voided `<%= %>` and no longer does, and
750
+ `shell_subshell` still voids `@()`, which is the one a structural suffix
751
+ really does repair.
752
+
753
+ It is 3.18.1's own mistake mirrored. That release stopped a form that was
754
+ never tested from reading as a clean negative, and introduced a form that was
755
+ perfectly testable reading as untested.
756
+
757
+ - **A refused read counted as a read.** 3.18.1 added an `unauthorised` state for
758
+ an observed endpoint that answers 401/403, and drew it from the poll phase
759
+ alone -- so a session that expired mid-run overwrote rows that had been read
760
+ successfully. The first fix for that was to stop overwriting `polled`, and a
761
+ test showed it was not enough: the per-probe read path marked a row `polled`
762
+ from a 403 as well, so `polled` never meant "read, and the value was not
763
+ there" at all. It meant "a status came back".
764
+
765
+ A refused read is not a read, at all three sites that take one -- the control,
766
+ the per-probe read and the poll -- and `polled` means what it says again. A
767
+ refused control is not a control either: there is no page in a 403 for the
768
+ differential to rule anything out against. A row whose channel was never read
769
+ is `unauthorised`; a row that was read keeps its reading; a run where a session
770
+ expired part-way leaves both kinds, and the notice reports how many of each
771
+ rather than claiming every read was refused.
772
+
773
+ A refusal is still an *answer*, and reachability and a reading are different
774
+ questions. Counting a refusal as neither reported `unreachable` -- "never
775
+ answered" -- about an endpoint that answered 403 to every read, whenever the
776
+ control request was the one that failed to connect, and swallowed the notice
777
+ that names the flag which fixes it. A refused read records reachability
778
+ without being treated as a reading.
779
+
780
+ No version of this ever claimed a finding it should not have. What it claimed
781
+ was that a channel had not been read when it had, which is the same class of
782
+ error one door along: a run-wide assertion erasing a per-probe observation.
783
+
784
+ ## [3.18.1] — 2026-11-18
785
+
786
+ ### Fixed
787
+
788
+ - **A syntax form its context could not carry was reported `negative`.** A
789
+ context is a prefix and a suffix, and a suffix can hand back the character
790
+ the broken twin removed: `shell_subshell` wraps the payload in `$(` ... `)`,
791
+ so the broken `@(a*b` arrives as `$(@(a*b)` and both halves of the pair are
792
+ well formed. They answer alike, and the form read as a clean negative about a
793
+ question nobody put to the target.
794
+
795
+ 3.18.0 shipped that as a known limit with a test pinning it, on the grounds
796
+ that a false negative is better than a false claim. Both are true and neither
797
+ was the point: the README's opening says a run that could not test something
798
+ never reports it as clean, and this reported it as clean. The limit was the
799
+ reporting, not the oracle.
800
+
801
+ Each pair is now checked against the context it will be wrapped in. A form
802
+ that does not survive is not sent -- it would cost four requests to ask
803
+ nothing -- and the run discloses it rather than voting on it: `N probe
804
+ shape(s) could not be carried by the context they landed in and were NOT
805
+ tested`, with the form and the context named. That is the treatment the
806
+ partly-blinded second-order run already gets, one level down: the verdicts
807
+ describe what was measured, and the run says what it never asked.
808
+
809
+ A verdict row was tried first and withdrawn. It made every sweep containing a
810
+ subshell context collapse to `inconclusive` -- which is almost every sweep --
811
+ so the one method that can answer about a parse-only sink could no longer
812
+ report a clean negative at all. A disclosure costs the operator nothing and
813
+ claims nothing.
814
+
815
+ Measured across every shipped context: exactly one pair is voided, `@()`
816
+ inside `shell_subshell`.
817
+
818
+ - **An observed endpoint behind a login read as one that had been read.** The
819
+ second-order fetch carries no credentials of its own -- deliberately, and the
820
+ README lists that under the engagement controls -- so a page behind a login
821
+ answers 401 or 403 to every poll. The run recorded that as `polled`, which
822
+ claims the channel was read and carried nothing, and then let the in-band
823
+ negatives stand as second-order ones.
824
+
825
+ It is its own state now, `unauthorised`, distinct from a channel that never
826
+ answered at all, and the run names the flag that fixes it:
827
+ `--observe-request` with a captured request that has the session.
828
+
829
+ What was *not* done, and deliberately: making the observed fetch inherit each
830
+ probe's session. That fetch sending no credentials is a documented guarantee
831
+ rather than an oversight, and inheriting a chain's cookies would change it
832
+ without the operator asking. The path already exists; what was missing was
833
+ the run pointing at it.
834
+
835
+ ## [3.18.0] — 2026-11-17
836
+
837
+ ### Added
838
+
839
+ - **`--methods syntax`, and the `syntax-sink` verdict it reports.** A template
840
+ sink whose output never reaches the response was invisible to every oracle
841
+ here: `eval` needs the product rendered, `boolean` sends no template
842
+ delimiters at all -- its connectives are `&&`, `and`, `||`, `or` -- `time`
843
+ needs a sleep and `oob` needs egress. The run reported `negative` about a
844
+ target whose template engine was reading attacker input.
845
+
846
+ The new method sends each delimiter form twice, well formed and with its
847
+ closing delimiter removed, and reads the *shape* of the answers. It claims
848
+ only that something parsed the syntax: which parser is not shown, nothing
849
+ says it evaluates what it parses, and there is no path from here to
850
+ `evaluation-sink` or `executed`. The verdict sits between them in the
851
+ report's order for exactly that reason.
852
+
853
+ Every guard earned its place against a fixture built to make it lie, at 200
854
+ runs x 6 forms = 1200 judgements each. The structural signature
855
+ (`response_shape`, not a body or its length) claimed a parser in 0 of 1200
856
+ against a target that only echoes its input -- into markup, into a
857
+ word-counted plain-text body, and HTML-escaped. One bracket was not enough:
858
+ against a page carrying an independent banner on 20% of requests, three
859
+ probes claimed a parser in 199 of 1200, bracketing both halves brought that
860
+ to 56, a second round on fresh operands to 2, and requiring the two rounds to
861
+ agree about what each half *looked like* -- which costs no request -- to 0. At
862
+ 50% drift, 8 of 1200 survive, and that is the limit rather than a bug to
863
+ file: no response-shape oracle can answer about a page whose structure is a
864
+ coin flip per request.
865
+
866
+ The guard that matters most on a real engagement is none of those. A WAF that
867
+ refuses malformed syntax and lets the well-formed form through produces a
868
+ perfect differential with nothing on the target having parsed anything, which
869
+ would be a false positive on precisely the hardened targets this tool is for.
870
+ A form whose halves a filter answered differently is `inconclusive`; one whose
871
+ halves were both refused is `blocked`. Measured against a 403-on-malformed
872
+ fixture: 0 of 1200.
873
+
874
+ Cost: 4 requests per form per round, 24 per carrier at `--probe-depth full`
875
+ and 12 at `quick`, plus 4 for each form that screens positive. `costly`, so
876
+ it runs in the expensive wave and is skipped at a point where execution is
877
+ already proven.
878
+
879
+ One known limit is pinned by a test rather than left to be discovered: a
880
+ subshell context closes the broken `@(a*b` with its own paren, so that form's
881
+ halves are both well formed there and it reports `negative`. A false negative
882
+ rather than a false claim, which is the direction this project takes when it
883
+ has to pick one.
884
+
885
+ ### Changed
886
+
887
+ - **`Observation.control_status` is the run control's status again, and the
888
+ field 3.17.0 gave that name is `after_status`.** Two controls needed two
889
+ names: the payload-free control a verdict is differenced against, whose body
890
+ and channels the Observation already carried, and the one sent immediately
891
+ after a probe that timed out. A differential across several probes has to ask
892
+ `payload_refused` itself -- the engine's own check runs once, against the
893
+ probe a verdict is anchored to -- and a form whose malformed half alone was
894
+ refused is a filter rather than a parser.
895
+
896
+ ## [3.17.0] — 2026-11-15
897
+
898
+ ### Fixed
899
+
900
+ - **A timeout the payload-free control did not share was reported as
901
+ `error`.** `VERDICT_MEANING` spells `error` out as "nothing reached the
902
+ target, so nothing was tested", and a request that hung because the injected
903
+ command hung did reach it. Every results-based method collapsed that case:
904
+ `_confirm_computed` answered `error` on `status is None` and asked nothing
905
+ further.
906
+
907
+ A probe that spends its whole request timeout is now asked about. One
908
+ payload-free control goes out immediately after it, and where that control
909
+ answers promptly the hang is attributable to the payload rather than to
910
+ reachability: `needs-review`, with both timings in the evidence line and
911
+ `--methods time` named as the step that turns it into a measured
912
+ `timing-sink` or rules it out. `reflected`, `eval` and `argv` declare it in
913
+ `also_reports`, since the oracle they share is where it is decided.
914
+
915
+ Three guards hold it to that, and they are the point rather than the
916
+ trimming. The control is sent *after* the probe, not read off the run's own
917
+ control, which is minutes old by then -- a target that fell over in between
918
+ would otherwise make every probe read as a signal. A control that was slow
919
+ too, or that did not arrive either, keeps the verdict at `error`. And a
920
+ failure that was never a timeout is told apart by the clock rather than by
921
+ matching the exception text: a timeout spends its whole budget where a
922
+ refused connection comes back in milliseconds, both arrive as
923
+ `status is None`, and a list of exception spellings would be the
924
+ hand-written list this tool keeps learning not to keep.
925
+
926
+ One extra request per timed-out probe, spent only on those and only for a
927
+ method whose oracle reads the answer, charged to `delivered_probes` and gated
928
+ on `--max-payloads` exactly as the evasion retry is. That restriction is not
929
+ an optimisation: `write`'s injection point is the file's *content*, so a
930
+ payload-free request through its delivery is a write, and sent before the
931
+ read-back it overwrote the file the probe had just stored -- `executed`
932
+ became `negative` on an executable upload directory, with the read-back
933
+ serving the canary. The probe's own evidence is now read before anything
934
+ further touches the target, which is the rule `file`'s oracle already states
935
+ one layer up.
936
+
937
+ The guard that pinned `needs-review` to one reporter was widened for this,
938
+ deliberately and in the direction it allows. What 3.0.0 established is that a
939
+ *settled measurement* must not be reported as a candidate -- it took
940
+ `timing-sink`, `file-write` and `evaluation-sink` out for that reason -- and a
941
+ hang `--methods time` has still to settle is a candidate in exactly the sense
942
+ `deser`'s fingerprint is. The set is pinned as tightly as before, the reason
943
+ is now in the test's own words, and an assertion was added rather than
944
+ loosened: `needs-review` is nobody's ceiling.
945
+
946
+ - **`Observation.baseline` was declared, documented and never written.** It had
947
+ been the field a delay is differenced against for four releases while the
948
+ engine discarded the control's elapsed time, so any oracle reading it read
949
+ `0.0`. `time` was unaffected -- it samples its own baseline locally and
950
+ medians it -- which is exactly why nothing caught it: the one method the
951
+ field was named for does not use it. It now carries the contemporaneous
952
+ control's elapsed, beside a new `control_status`, and `timed_out` says
953
+ whether the probe spent its timeout.
954
+
955
+ - **A write that landed while its own request hung was reported as `error`.**
956
+ `file`, `write` and `include`'s write rung all read `status is None` before
957
+ looking at the file they had already fetched back -- and that fetch fires
958
+ whatever the injecting request answered, deliberately, so the token or the
959
+ product was sitting in hand. The read-back is consulted first now, which is
960
+ the rule `_refusal` states one door along: a 4xx does not unmake what the run
961
+ observed, and neither does a delivery that failed. `error` is for a run with
962
+ nothing to go on. A confirmation reached this way says in its evidence line
963
+ that the request never answered and the read-back is the whole of it.
964
+
965
+ ## [3.16.0] — 2026-11-15
966
+
967
+ ### Added
968
+
969
+ - **A refused request whose effect landed anyway says so.** A probe answered
970
+ 4xx where the payload-free control got through, confirming a finding on a
971
+ channel other than that response — the read-back fetch, the listener, the
972
+ observed endpoint — is a separately actionable fact: whatever refused the
973
+ request is applied after the effect, or outside its transaction. Every input
974
+ to that statement was already in hand, and none of it was reported. The run
975
+ prints one block for it, and `--detect-json` carries `refused_but_landed`
976
+ with the status on each affected probe.
977
+
978
+ The block sits outside the "nothing was confirmed" branch that every other
979
+ refusal line lives in, which is where this had been invisible: the one run
980
+ worth saying it about is the run that confirmed something.
981
+
982
+ It is a property of a finding and not a verdict. No tier is added, no verdict
983
+ changes, and nothing new earns `executed`. What holds the claim to what was
984
+ observed is the third of its three conditions — the evidence has to come from
985
+ somewhere other than the refused response. An application answering 4xx from
986
+ its own error path with the computed value in its body keeps its finding, as
987
+ it already did, and gets no line about a refusal, because there may be no
988
+ filter there to say anything about. Which method reads which channel is
989
+ declared on the method, with a per-shape override for the two that read both:
990
+ `deser`'s gadget against its shape differential, and `include`'s write rung
991
+ against its read rungs.
992
+
993
+ ### Fixed
994
+
995
+ - **`oob`, `lookup` and `deser` findings carried no HTTP status.** The
996
+ per-probe branch of the aggregate path wrote a literal `None` into every row
997
+ while the status sat in the dict the refusal check one line above reads from,
998
+ so neither the text report nor `--detect-json` showed a status for the three
999
+ methods that confirm from the listener. The row carries the probe's own
1000
+ status now, and a consumer that pinned `null` there will find an integer. It
1001
+ is also what made "refused, and the effect landed anyway" unanswerable on
1002
+ exactly the path where the clearest case of it lives: these three confirm out
1003
+ of band, so a probe a filter refused can still be the one that called back.
1004
+
416
1005
  ## [3.15.0] — 2026-11-08
417
1006
 
418
1007
  Four fixes from running 3.14.0 against a real target on a real terminal, which
@@ -4301,6 +4890,14 @@ this file and have not been restated here.
4301
4890
 
4302
4891
 
4303
4892
  [Unreleased]: https://github.com/kabiri-labs/rcekit/compare/v2.36.0...HEAD
4893
+ [3.20.0]: https://github.com/kabiri-labs/rcekit/compare/v3.19.1...v3.20.0
4894
+ [3.19.1]: https://github.com/kabiri-labs/rcekit/compare/v3.19.0...v3.19.1
4895
+ [3.19.0]: https://github.com/kabiri-labs/rcekit/compare/v3.18.2...v3.19.0
4896
+ [3.18.2]: https://github.com/kabiri-labs/rcekit/compare/v3.18.1...v3.18.2
4897
+ [3.18.1]: https://github.com/kabiri-labs/rcekit/compare/v3.18.0...v3.18.1
4898
+ [3.18.0]: https://github.com/kabiri-labs/rcekit/compare/v3.17.0...v3.18.0
4899
+ [3.17.0]: https://github.com/kabiri-labs/rcekit/compare/v3.16.0...v3.17.0
4900
+ [3.16.0]: https://github.com/kabiri-labs/rcekit/compare/v3.15.0...v3.16.0
4304
4901
  [3.15.0]: https://github.com/kabiri-labs/rcekit/compare/v3.14.0...v3.15.0
4305
4902
  [3.14.0]: https://github.com/kabiri-labs/rcekit/compare/v3.13.0...v3.14.0
4306
4903
  [3.13.0]: https://github.com/kabiri-labs/rcekit/compare/v3.12.2...v3.13.0