Repository navigation
feat: CORS preflight pentesting checks from BootUI 2.5.0 - #275
Merged
Merged
Conversation
Scenario and TDD plan for porting BootUI 2.5.0's CORS preflight checks onto the bounded pentesting probe. Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
… and BootUI OPTIONS parity The truncated OPTIONS body follows BootUI, the header bounding is a pure function, every test commit carries wrong-value stubs, and the evidence echo, comparison asymmetries and required-name withholding each get a scenario row and a red-first test. Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…and text semantics Port BootUI's A02 and A10 coverage rules, required-header gap strings, Java trim and isBlank semantics, joined TRACE header reads and evidence text, with the scan result masked. Split the header bounding function under the complexity limit, give every absence test a positive control and list characterization tests with their mutants. Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…s deviations Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
…mplete OPTIONS 5xx Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
Signed-off-by: Flavio Oliva <ffroliva@gmail.com>
ffroliva
marked this pull request as ready for review
November 22, 2026 00:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports BootUI 2.5.0's CORS preflight pentesting checks (lane A11 of the 0.8.0 plan) onto the bounded probe runner from
the security header checks. No new request is sent: the checks read the GET and OPTIONS responses the scan already
makes.
thresholds, trim rules (Java
String.trim()andisBlank(), so a non-breaking space is not stripped) and per-probeorder. Repeated headers are read joined, as BootUI does, including the TRACE
Allowcheck.BootUI's gap strings; a truncated header inventory makes every dependent rule indeterminate, never a clean pass.
otherwise INFO); a truncated OPTIONS body alone is complete evidence, as in BootUI.
under
METADATA_ONLYthey become[masked], BootUI's fixed text is never masked. The masker is a required argumentof the scan and of the report builder.
docs/reference/matrix-updates/0.8.0-a11.tsv.Tests
Every test commit was red at its named assertions before the change (
scripts/dev/red_check.py): 27 for the evidencecontract, 64 for the CORS rules. Mutations confirm the tests bite: a no-op masker fails 3 tests, comparing the
credentialed origin trimmed fails 1, ignoring per-name completeness fails 10. A planted secret is masked on the POST
scan, the cached GET report, MCP
get_pentest_report, thepentest_scansummary and the CLI. Ruff, format, pyright,the import-boundary and code-shape ratchets (McCabe 9 or below for the new functions) and the pentesting suites pass.