mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
fix(chromium): export Yandex rows without the data key (#666)
Without the data key the Yandex stores exported nothing, unlike every other store, so a key failure or a master password lost the rows and list --detail, which reads no key, counted 0.
This commit is contained in:
1 parent
1636091b3f
commit
cebfa97ed6
8 files changed
+54
-19
No files matched your search
@@ -43,7 +43,7 @@ The rewrite is invisible from the outside. Every item below behaves exactly as i
|
||||
| Archive | zip layout `<browser-key>/<User Data layout>`, readable by v1.1.0 `restore` |
|
||||
| Exit status | `0` when the run completes (including partial results and "no browsers found"); `1` when it cannot start or finish |
|
||||
|
||||
Not part of the contract: log lines and the human-readable summary on stderr, and row order where today's order is unspecified or wrong. Output may change only for listed bug fixes where today's output is wrong — Firefox history order, Firefox bookmark fields, Safari bookmark IDs, Firefox logins from a profile whose key cannot be recovered, the `browser` value `restore` stamps, and CocCoc cookies on a Windows machine that also has Yandex ([RFC-008](008-output-and-export.md)); each is called out where it is fixed.
|
||||
Not part of the contract: log lines and the human-readable summary on stderr, and row order where today's order is unspecified or wrong. Output may change only for listed bug fixes where today's output is wrong — Firefox history order, Firefox bookmark fields, Safari bookmark IDs, Firefox logins from a profile whose key cannot be recovered, Yandex logins and cards whose data key cannot be recovered, the `browser` value `restore` stamps, and CocCoc cookies on a Windows machine that also has Yandex ([RFC-008](008-output-and-export.md)); each is called out where it is fixed.
|
||||
|
||||
## Hard constraints
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ Extractors emit records one at a time ([RFC-003](003-core-types.md)), but sortin
|
||||
- **Firefox bookmarks** — `folder` holds the real folder name instead of `url`, and `type` and `id` are filled; today they are always `url`, empty, and `0`.
|
||||
- **Safari bookmark IDs** — unique across the whole bookmark tree; today each ID is the index among its siblings, so IDs repeat across folders.
|
||||
- **Firefox logins without a key** — when a profile's key cannot be recovered (no `key4.db`, or a primary password is set), its logins are exported with empty usernames and passwords and the extraction is `partial`; today the run panics as soon as one of those logins uses the legacy cipher.
|
||||
- **Yandex logins and cards without a key** — when a profile's data key cannot be recovered (no master key, a wrong one, or a master password is set), its logins and cards are exported with empty passwords and card numbers and the extraction is `partial`, as every other store's are; today none of them is exported.
|
||||
- **`browser` in `restore` output** — the display name (`Chrome`), as `dump` writes it; today `restore` writes the vault key (`chrome`).
|
||||
- **CocCoc cookies beside Yandex** — on Windows, ABE looks for a browser's program in its own install locations before registry App Paths. CocCoc and Yandex both ship `browser.exe`, and App Paths names only one of them, so today CocCoc's key is requested from Yandex's program and its `v20` cookies export with empty values.
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ Each bug designed out by this rewrite gets a test that would have caught it, so
|
||||
- **Firefox history order**: `visit_count` descending for every browser, Firefox included.
|
||||
- **Safari bookmark IDs**: unique across the whole tree, not repeated per folder.
|
||||
- **Firefox without a key**: a profile with no `key4.db` still exports its logins with empty secrets, the extraction is `partial`, and the run goes on; a missing key makes decryption fail instead of panicking.
|
||||
- **Yandex without a key**: logins and cards still export with empty secrets, each a record-level problem, so `list --detail`, which reads no key, counts them as today does.
|
||||
- **Arc multi-dir**: two `arc` user data dirs yield IDs `arc` and `arc-2`, distinct snapshots, and distinct `keys.json` vaults, while overrides and the vaults' `browser` key still use `arc`.
|
||||
- **`--zip` data loss**: a failing zip write leaves every output file in place.
|
||||
- **Late flag validation**: `-f bogus` exits `1` with no discovery call and no password resolution (both injected as spies).
|
||||
|
||||
@@ -61,6 +61,7 @@ Leaves first, bottom-up along the dependency arrows ([RFC-002](002-package-layou
|
||||
- `dump`, `dumpkeys`, `archive`, `restore`, and `list` run on the pipeline.
|
||||
- `archive` writes the snapshot `manifest.json` and `restore` reads it as its `Discovery` ([RFC-007](007-snapshot-and-acquisition.md)): writer and reader land together, so the round trip is tested end to end, and every earlier archive stays byte-identical to today's.
|
||||
- Validate-first ordering, `--keychain-pw-stdin` with the new precedence, the `-p` fixes, the safe `--zip` order, and the `restore` stamp fix ([RFC-009](009-cli-surface.md)).
|
||||
- Yandex logins and cards export without their data key, like every other store, so `list --detail` counts them without a key ([RFC-008](008-output-and-export.md)).
|
||||
|
||||
### Phase 8 — Delete & document
|
||||
|
||||
|
||||
Reference in new issue
Block a user