Commit Graph
761 Commits
Author SHA1 Message Date
BFlat b9f9a2a9ea Merge pull request #2078 from Plastic-time/bugfix/r3.13-share-secret-redaction-helpers
The live browser and Electron capture tools had their own copy of the code that hides declared secrets, and only that copy hid two secrets that overlap: in a network recording or a stand-in built from one, `Bearer abc` and `abc123456789` in `Bearer abc123456789` left `123456789` showing. All three now use one implementation, in the analysis crate, which hides overlapping matches as one.
2026-11-18 10:39:21 +07:00
RRFZ ee4219a80d Read cooked template-literal values across JavaScript fact and bundle extraction (R3.12) 2026-11-17 22:37:16 -05:00
RRFZ e939a5dad2 Preserve Thumb evidence across mixed symbol/export tag bits and escape STATUS pipe (R3.11) 2026-11-17 22:36:38 -05:00
BFlat 77ca096874 Merge pull request #2076 from Plastic-time/bugfix/r3.12-csharp-type-normalization
Matching C# source declarations against a .NET program's metadata reported methods as different when they were the same, in four cases: a parameter of a nested type or one written with `global::`; any type or namespace with "ref" in its name (`Preference` became `Pref erence`); a type of the program's own named like a built-in (`App.String` was read as `string`); and arrays of two or more dimensions, which metadata writes as `[0...,0...]` and C# as `[,]`. Each is now read the same way on both sides.
2026-11-18 10:28:02 +07:00
BFlat 1e55067102 Merge pull request #2077 from Plastic-time/bugfix/r3.13-web-scripts-layout-collisions
Saving the scripts of a web capture planned two files for URLs that differed only in letter case; on Windows and on a default Mac disk those are one file, so the second script was skipped. Paths are now compared without regard to case. A script whose URL ends in `.JS`, `.MJS` or `.CJS` no longer gets a second `.js` added, and a script captured many times is numbered `.hash.2`, `.hash.3` and so on, where each copy used to add to the last one's name until it was too long to write.
2026-11-18 10:26:27 +07:00
RRFZ d36d4d38bc Select Thumb mode for entryless ARM libraries and normalize Thumb target addresses (R3.11) 2026-11-17 22:16:02 -05:00
RRFZ b866bf95ec Fold single-codepoint lowercase before uppercase in module_path_key for Kelvin and Angstrom signs 2026-11-17 22:09:55 -05:00
RRFZ 0aa9c1559c Share span-merging secret redaction helpers across HAR, stand-in, and engine (R3.13)
- Update `analysis::web_har::replace_needles_with` to scan each UTF-8 character
  boundary for the longest matching needle and merge overlapping matched byte
  spans before replacing, closing the suffix leak on partially overlapping
  declared secrets in HAR inspection and stand-in builds while keeping distinct
  non-overlapping adjacent matches separate for stand-in deduplication budgets.
- Export `encode_query`, `contains_ascii_ci`, and `replace_needles_with` from
  `analysis::web_har` and call them directly from `engine::tools::web_common`,
  removing the duplicate implementations so all three redactors stay in sync.
2026-11-17 22:05:17 -05:00
RRFZ 6ac0a8563f Keep YAML anchor context for one-line flow checks and refuse next-line flow blocks 2026-11-17 22:03:46 -05:00
RRFZ 5296e50f2b Avoid case collisions, double extensions, and chained suffixes in web_scripts::plan_layout (R3.13) 2026-11-17 21:52:01 -05:00
RRFZ 9afff41393 Fold single-codepoint uppercase in module_path_key so final sigma collides with sigma 2026-11-17 21:42:28 -05:00
RRFZ 490ff2f6d9 Normalize C# nested, ref, built-in-named, and array types in reconciliation (R3.12)
- Strip `global::` and convert metadata `/` nested-type separators in `norm_type`
  as well as `norm_type_qualified` so method parameters taking nested or
  `global::`-qualified types reconcile without mismatch.
- Emit `ref ` only for leading `ref` modifiers followed by whitespace and a type
  start, avoiding spurious spaces inside identifiers containing `ref` or on `@ref`
  value types.
- Keep non-`System` types named like CLR built-ins (such as `App.String`) distinct
  from C# built-in keywords in qualified conversion-target comparisons.
- Collapse multi-dimensional zero-lower-bound CLI array shapes (`[0...,0...]`) to
  C# rank commas (`[,]`) while preserving rank-1 `[0...]` and non-zero/sized bounds.
2026-11-17 21:36:27 -05:00
BFlat 118b105452 Merge pull request #2068 from Plastic-time/bugfix/r3.12-js-compare-vendor-versions
When an app's files named the same library more than once, with a version in one place and without one in another, comparing two versions of the app kept only the last entry. A later entry with no version erased the known one on both sides, so a library upgrade went unreported. Every version found for a library is now kept (several are listed together), and entries without a version no longer replace one.
2026-11-18 09:36:17 +07:00
BFlat c1413ad009 Merge pull request #2060 from Plastic-time/bugfix/r3.13-web-common-secret-encodings
The same gap as #2053, in the live browser and Electron capture tools: a value declared as secret could still appear when it was written the way a form posts it, with lower-case or mixed-case percent escapes, or in another letter case. Those spellings are now matched without regard to case, longest first, in one pass.
2026-11-18 09:34:19 +07:00
BFlat e03c651588 Merge pull request #2073 from Plastic-time/bugfix/r3.11-pseudo-call-arg-deps
The pseudo-C folded an argument's assignment into the call that follows, even when a register that assignment read had been overwritten in between: `rsi = rdi; edi += 1; f(...)` showed the call taking the new `rdi` where it takes the old one. An assignment whose source register changes before the call is now left as its own statement, and the call is shown taking the assigned register or stack slot. This covers calls, tail calls and Win64 stack arguments.
2026-11-18 09:29:40 +07:00
RRFZ 013e97b10b Accept complete one-line YAML flow entries and siblings under mcp_servers 2026-11-17 21:23:24 -05:00
RRFZ d84ec9e412 Deduplicate recovered JS module paths case-insensitively (R3.12) 2026-11-17 21:19:20 -05:00
BFlat f9c16904f3 Merge pull request #2066 from Plastic-time/bugfix/r3.11-overran-function-xrefs
When a function was scanned before the next function's start was known, it could run on into it; the second, trimmed scan fixed its blocks, but the references the first scan had recorded stayed and still counted against the limit. References are now kept per function, replaced when a function is scanned again, and the overall limit is shared out in the order functions were found, with freed room going to functions that had been cut short.
2026-11-18 09:14:27 +07:00
Fury db1792b8d1 Don't save over a config.toml link whose target is missing (R2.9) (#2070)
Reading a link whose target isn't there answers "not found", so a config.toml that is such a link (a synced folder not mounted yet, a drive not attached) loaded as plain defaults, and the next save, or a deferred save recovered at the start, put a file where the link was. "Not found" is a first start now only when nothing is at the path itself. A link without its target loads as defaults that refuse to be saved, naming where it points, and deferred edits aren't merged over it. The note on kept copies said "up to 16"; they are config.toml.broken, then .broken.1 to .broken.15.
2026-11-18 09:06:47 +07:00
RRFZ edfa9b63b8 Merge remote-tracking branch 'origin/main' into bugfix/r3.12-js-compare-vendor-versions
# Conflicts:
#	docs/STATUS.md
2026-11-17 21:05:13 -05:00
RRFZ 0a4720ea9d Invalidate pseudo-C call argument expressions when source registers change (R3.11) 2026-11-17 20:57:02 -05:00
RRFZ 459091aea7 Merge overlapping and adjacent secret spans in web_common::Secrets (R3.13)
Scan every UTF-8 character boundary for the longest declared secret spelling,
merge overlapping or adjacent matched byte spans, and replace each merged span
once so an earlier shorter match cannot expose the suffix of a longer secret.
2026-11-17 20:50:49 -05:00
BFlat f63ff7b304 Merge pull request #2065 from Plastic-time/bugfix/r3.12-js-recover-module-paths
When two modules recovered from a bundle had the same path, the second was renamed with a `.js` ending whatever it was, so a duplicate `.ts`, `.css` or `.json` module came out as `.js`; the copy now keeps its own extension. A module id is also stripped of at most one `webpack://`, `webpack:` or `file://` prefix instead of every repeated one.
2026-11-18 08:46:22 +07:00
BFlat 787a68892b Merge pull request #2057 from Plastic-time/bugfix/r3.12-js-reassigned-const-aliases
The JavaScript reader remembered a variable's first string, number or required module and kept using it after the variable was assigned again, so a later fetch(url) was reported with a stale address marked as literal, and calls through a re-pointed module alias were reported as the old module's. A straight-line assignment now updates the value; a compound or update operation, a destructuring or loop binding, and a write inside a branch, loop, try/catch or nested function make it unknown for the code that follows.
2026-11-18 08:46:18 +07:00
RRFZ db092830ca Refuse inline flow entries under mcp_servers instead of heuristic brace scanning 2026-11-17 20:45:01 -05:00
RRFZ f866018713 Reconcile overrun rescans and clipped refills in one discovery-order pass and drop scan buffer capacity 2026-11-17 20:32:53 -05:00
RRFZ e6199c8ba5 Preserve non-empty vendor versions across duplicate markers in compare_versions 2026-11-17 20:25:49 -05:00
BFlat aa2e6b9095 Merge pull request #2064 from Plastic-time/bugfix/r3.11-a32-reglist-reads-writes
For ARM32 and Thumb `pop`, `push`, `ldm` and `stm`, only the first listed register was treated as written and the rest as read, so `pop {r0, r1}` looked as if it read r1 and a load's base register looked written. Every register a `pop` or `ldm` loads is now recorded as written, every register a `push` or `stm` stores as read, and the base register as read (and written only with `!`).
2026-11-18 08:21:07 +07:00
BFlat 743a2f6a93 Merge pull request #2062 from Plastic-time/bugfix/r3.12-sqlite-adjacent-table-constraints
SQLite lets table constraints follow each other without a comma (`UNIQUE(v) PRIMARY KEY(id)`) and lets a key column sit in extra parentheses (`PRIMARY KEY((id))`). Both the rowid-alias check and the WITHOUT ROWID key layout now find the primary key in those forms, so rows from such tables show their key values in the right columns.
2026-11-18 08:18:57 +07:00
RRFZ a59bb0211b Keep chained scheme segments while skipping Windows drive prefixes 2026-11-17 20:18:05 -05:00
RRFZ 92281edad9 Enforce global max_xrefs budget and discovery order across overrun re-scans 2026-11-17 20:09:39 -05:00
RRFZ f07d131102 Merge remote-tracking branch 'origin/main' into bugfix/r3.12-js-reassigned-const-aliases
# Conflicts:
#	docs/STATUS.md
2026-11-17 20:07:36 -05:00
RRFZ d3361d583f Merge remote-tracking branch 'origin/main' into bugfix/r3.13-web-common-secret-encodings
# Conflicts:
#	docs/ROADMAP.md
2026-11-17 20:03:45 -05:00
RRFZ c583736789 Accept empty YAML flow braces, null case variants, and multi-line flow child blocks in setup (R2.2) 2026-11-17 20:02:18 -05:00
BFlat 9db8830a1a Merge pull request #2063 from Plastic-time/bugfix/r3.12-indexed-sourcemap-content-counts
An indexed source map (one made of sections) always reported 0 sources with embedded content, because only the top level was counted; the count now includes every inline section, nested ones too. A stand-alone map named like `app.map.map` also lost both suffixes when its script name was worked out; only the last `.map` is removed now.
2026-11-18 07:53:23 +07:00
RRFZ 769ae52f12 Record implicit r13 read/write effects on Thumb pop and push 2026-11-17 19:48:50 -05:00
BFlat 6701cfa207 Merge pull request #2061 from Plastic-time/bugfix/r3.11-a64-cmn-zero-destination
On AArch64, a `cmn` followed by a conditional branch was shown as `if (wzr == 0)`, and writes to the zero register appeared as statements (`wzr = w0 + 1;`). The condition is now shown as `(a + b) <op> 0`, and writes to `wzr`/`xzr` are left out while their flags are still used.
2026-11-18 07:47:27 +07:00
BFlat 83580ca3f4 Merge pull request #2059 from Plastic-time/bugfix/r3.12-js-compare-exclusive-tiers
Comparing two versions of a JavaScript app matched each old module against every rule before moving to the next, so an earlier module's weaker match (same structure, or same id) could take a new module that a later one matched exactly, and one new module could be reported twice. Modules are now matched one rule at a time across all of them, strongest first, and each new module is claimed once.
2026-11-18 07:44:11 +07:00
RRFZ 70ea7885cc Drop stale cross-references from re-scanned overran functions (R3.11) 2026-11-17 19:43:53 -05:00
BFlat f2f8d492ab Merge pull request #2058 from Plastic-time/bugfix/r2.2-toml-inline-servers-table
When another app's config.toml wrote its server list inline (`mcp_servers = {}` or `mcp_servers = { other = … }`), setup refused with "exists but is not a table" and the plan was blocked. Setup now writes into an inline table too, keeping the other entries, comments and line endings, and merging into an entry it already owns. A value that is not a table is still refused.
2026-11-18 07:40:28 +07:00
RRFZ 202b523b4a Strip single scheme prefix and preserve extensions in recovered JS module paths 2026-11-17 19:38:43 -05:00
RRFZ 351444ab7b Count indexed source map content across sections and strip literal map suffix 2026-11-17 19:27:00 -05:00
BFlat 5a86212ea4 Merge pull request #2053 from Plastic-time/bugfix/r3.13-har-secret-encodings
A value the person declared as hidden could still appear in a network capture view or a stand-in when it was written the way a form posts it (spaces as `+` with other characters percent-encoded), with mixed-case percent escapes, or as an encoded form field name. Those spellings are now matched, without regard to letter case, with the longest spelling replaced first.
2026-11-18 07:26:26 +07:00
RRFZ 4d55d6fcae Read SQLite primary keys across adjacent table constraints 2026-11-17 19:23:31 -05:00
BFlat eb64560bbb Merge pull request #2055 from Plastic-time/bugfix/r3.12-graphql-directive-trivia
Follow-up to #2047. GraphQL allows spaces, commas and comments between `@` and a directive's name; a document written that way was rejected and its operations were lost. Those ignored tokens are now skipped in directive annotations and directive definitions.
2026-11-18 07:16:32 +07:00
BFlat 4a6eb485c7 Merge pull request #2054 from Plastic-time/bugfix/r3.12-csharp-verbatim-checked-conversion
Follow-up to #2049. A conversion operator whose target type is named `@checked` was read as a checked operator with no target type, because the `@` was lost before the name was compared with the `checked` keyword. The keyword is now recognised only when it was written without `@`.
2026-11-18 07:14:23 +07:00
RRFZ cd9972da18 Address CodeRabbit review comments on FactVisitor alias and conditional write invalidation 2026-11-17 19:13:00 -05:00
RRFZ 1a1f9ae721 Record full register-list and base-pointer effects in ARM32/Thumb decoding (R3.11) 2026-11-17 19:11:26 -05:00
RRFZ 9a5e3fe6a4 Redact form-encoded and mixed-case secrets in web_common::Secrets 2026-11-17 19:04:03 -05:00
RRFZ dd4d9fa233 Lift AArch64 cmn conditions and skip zero-register writes in pseudo-C (R3.11) 2026-11-17 19:03:49 -05:00