Files
reverse-engineering-anything/scripts
morluto 2d1748117e fix(browser): redact literal credentials in browser scenarios unless retained (#15347)
* fix(browser): redact literal credentials in browser scenarios unless retained

capture_browser_scenario records the scenario in Evidence parameters as
written. A literal Authorization header value or cookie seed therefore stayed
verbatim in Evidence, while the same record's network events redacted it.

Literal values of transport-credential headers (isTransportCredentialHeader)
and cookie seeds are now redacted like declared secrets. One domain owner,
scenarioLiteralCredentials, lists them with their redaction identities; the
capture session adds them to its redaction set, and Evidence parameters and
scenario_sha256 record the redacted scenario. A caller that wants the literal
kept sets retain_literal_credentials: true. Other literals stay ordinary
evidence; secrecy is not inferred from names.

Refs #15340

* test(browser): assert whole-value redaction instead of any change

not.toBe(value) also passed for partial redaction, such as a marker appended
with the secret left in place. Assert that each redacted value is exactly one
marker and that no fragment of the secret or its JSON-escaped form remains in
text, bytes, URLs or protected response bodies.

Refs #15340

* fix(browser): redact the trimmed spelling of padded literal credentials and commit the schema summary

* fix(browser): treat a credential header's prefix as part of its literal credential and retain fingerprint fixtures

* fix(browser): keep the bare literal token redacted beside the prefixed header
2026-12-01 02:27:15 +00:00
..