Skip to content

A high-performance Android storage analyzer that bypasses MTP using a native C++ daemon, a Rust TCP bridge, and a React Treemap UI.

Rust

Update Rust XML and error dependencies for advisories (#64)

Vishnu Srivatsava4ca0b0e6e0b1
diff --git a/docs/dependency-review.md b/docs/dependency-review.md
index 4ed3dd2..1604492 100644
--- a/docs/dependency-review.md
+++ b/docs/dependency-review.md
@@ -1,9 +1,10 @@
-# Dependency review — 17 October 2026
+# Dependency reviews — October 2026
-This is the npm portion of
+This records the npm review on 17 October and Rust review on 20 October for
[#44](https://github.com/VishnuSrivatsava/SocketSweep/issues/44).
-It does not complete the Rust review or establish that the application has no
-security vulnerabilities.
+Remaining upstream warnings are tracked in
+[#63](https://github.com/VishnuSrivatsava/SocketSweep/issues/63).
+Neither review establishes that the application has no security vulnerabilities.
## npm lockfile update
@@ -70,11 +71,110 @@ byte-identical. These are local artifact checks, not device performance results.
The existing headless replay and three-platform packaging CI validate the new
toolchain without an attached phone or launching the native app.
-The Rust lockfile is unchanged. Its `quick-xml` 0.39.4 findings remain unresolved:
-[RUSTSEC-2026-0194](https://rustsec.org/advisories/RUSTSEC-2026-0194.html) and
-[RUSTSEC-2026-0195](https://rustsec.org/advisories/RUSTSEC-2026-0195.html) identify
-0.41.0 as the patched boundary. This requires reviewing the plist/Tauri dependency
-constraints and the actual XML input paths, not pretending a 0.39 patch update
-fixes them. A current `cargo audit` run and remaining Rust
-maintenance/unsoundness warnings are still part of #44; `cargo-audit` was not
-installed in the local environment during this npm-only change.
+The npm change left the Rust lockfile untouched. The follow-up below addresses
+its compatible security updates and records the remaining warnings separately.
+
+## Rust lockfile update — 20 October
+
+The existing Tauri, Tauri-codegen, and Tauri-utils manifests accept `plist = "1"`.
+Updating that transitive dependency avoids an override or a framework upgrade:
+
+| Package | Before | After |
+| --- | --- | --- |
+| `plist` | 1.9.0 | 1.10.2 |
+| `quick-xml` | 0.39.4 | 0.42.0 |
+| `anyhow` | 1.0.102 | 1.0.103 |
+| plist's `base64` | 0.22.1 | 0.23.1; other dependencies retain their existing versions |
+
+Application dependency changes are confined to `Cargo.lock`. Direct dependency declarations and all Tauri versions
+remain unchanged. Plist's declared minimum Rust version remains 1.88.0.
+[Plist's release notes](https://github.com/ebarnard/rust-plist/blob/v1.10.2/CHANGELOG.md)
+record its parser/dependency changes, including the required base64 update.
+
+The fixed advisory boundaries are:
+
+- [RUSTSEC-2026-0194](https://rustsec.org/advisories/RUSTSEC-2026-0194.html):
+ duplicate-attribute checking can take quadratic CPU time; fixed in quick-xml
+ >=0.41.0.
+- [RUSTSEC-2026-0195](https://rustsec.org/advisories/RUSTSEC-2026-0195.html):
+ unbounded namespace-declaration allocation in `NsReader`; fixed in quick-xml
+ >=0.41.0.
+- [RUSTSEC-2026-0190](https://rustsec.org/advisories/RUSTSEC-2026-0190.html):
+ an unsound mutable downcast after adding error context; fixed in anyhow
+ >=1.0.103. This is an informational unsoundness warning in cargo-audit,
+ separate from its vulnerability entries.
+
+### Audit method and results
+
+Built `cargo-audit` 0.22.2 from its locked published source into a temporary tools
+directory; it is not a project/runtime dependency. Audited a saved original
+lockfile and the updated lockfile against the same freshly fetched RustSec
+database, commit `999ec89d5d3f10f20be14750ec8c2d8b44e0ac9b` (1,338 advisories,
+database last updated 17 October). The second audit used `--no-fetch`; the
+database Git commit was checked again afterward. No target, architecture,
+severity, or advisory-ignore filter was applied.
+
+| cargo-audit category | Before | After |
+| --- | --- | --- |
+| Vulnerability entries | 2 (quick-xml) | 0 |
+| Unsoundness warnings | 2 (anyhow, GLib) | 1 (GLib) |
+| Unmaintained-package warnings | 6 | 6 |
+
+The default post-update audit exits successfully **with seven warnings**. It
+must not be described as a clean bill of health. Repeat with an installed audit
+tool using `cargo audit --file src-tauri/Cargo.lock --json`; adding
+`--deny warnings` intentionally fails until the remaining findings are resolved.
+Future database updates can change these snapshot counts.
+
+### Input-path assessment
+
+The inspected Tauri 2.11.1 source reads a macOS application's own
+`Contents/Info.plist` in its restart helper. Tauri-codegen 2.6.1 optionally reads
+the project's `Info.plist` during macOS development context generation.
+Tauri-utils 2.9.1 also constructs plist values for file-association metadata.
+SocketSweep's source has no direct plist/quick-xml calls, no restart call, and
+parses the device scan stream as JSON, not XML.
+
+Plist 1.9.0's inspected XML reader uses quick-xml's plain `Reader`, not
+`NsReader`, and its event handling does not iterate start-tag attributes.
+Those observations do not demonstrate either advertised attack path through
+SocketSweep. They are source-path findings, not a proof that arbitrary XML is
+safe or that every dependency path is unreachable. Patched dependencies still
+remove the affected versions from the lockfile. No direct `downcast_mut` call
+was found in SocketSweep or the inspected Tauri/runtime/Wry sources; anyhow is
+updated rather than relying on that limited search as a safety guarantee.
+
+### Remaining warnings and follow-up
+
+| Package | Advisory | Observed dependency path / action |
+| --- | --- | --- |
+| `glib` 0.18.5 | [2024-0429](https://rustsec.org/advisories/RUSTSEC-2024-0429.html) | Linux GTK/WebKit runtime; investigate a supported framework fix or backport. |
+| `proc-macro-error` 1.0.4 | [2024-0370](https://rustsec.org/advisories/RUSTSEC-2024-0370.html) | Linux `glib-macros` / `gtk3-macros` build-time code; track supported macro replacements. |
+| `unic-char-property` 0.9.0 | [2025-0081](https://rustsec.org/advisories/RUSTSEC-2025-0081.html) | Tauri-utils → urlpattern; review supported replacement and URL/capability behavior. |
+| `unic-char-range` 0.9.0 | [2025-0075](https://rustsec.org/advisories/RUSTSEC-2025-0075.html) | Same urlpattern chain. |
+| `unic-common` 0.9.0 | [2025-0080](https://rustsec.org/advisories/RUSTSEC-2025-0080.html) | Same urlpattern chain. |
+| `unic-ucd-ident` 0.9.0 | [2025-0100](https://rustsec.org/advisories/RUSTSEC-2025-0100.html) | Same urlpattern chain. |
+| `unic-ucd-version` 0.9.0 | [2025-0098](https://rustsec.org/advisories/RUSTSEC-2025-0098.html) | Same urlpattern chain. |
+
+GLib's affected iterator functions are a real unresolved correctness risk. The
+advisory requires >=0.20.0, while GTK 0.18.2 requires GLib 0.18. SocketSweep has
+no direct GLib calls, and no direct `VariantStrIter`/`array_iter_str` call was
+found in the inspected Tauri/runtime/Wry roots. That does not rule out transitive
+runtime reachability. Forcing another GLib version would not replace GTK's
+affected copy.
+
+The proc-macro warning concerns compilation of project/dependency Rust code.
+The UNIC warnings concern maintenance of the URL-pattern parser's Unicode
+support. Tauri uses that parser for remote capability patterns; the current
+default capability declares none. These narrower observed paths are not a
+general non-reachability proof and do not justify ignoring warnings.
+
+[#63](https://github.com/VishnuSrivatsava/SocketSweep/issues/63) records remediation
+options and required validation for all seven findings. No advisory ignores,
+patched crate forks, or incompatible overrides are introduced. The fork's native
+ADB/crypto dependencies remain a separate review if that client is proposed for
+adoption; it is not part of the current dependency graph.
+
+All 33 Rust library tests pass with the updated lockfile. Three-platform locked
+builds and packaging CI exercise the framework integration. No native app,
+Android daemon, ADB command, or phone test is run locally for this update.
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index a7205e9..f2fff76 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -43,9 +43,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.102"
+version = "1.0.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
+checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
[[package]]
name = "atk"
@@ -94,6 +94,12 @@ version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
[[package]]
name = "bit-set"
version = "0.8.0"
@@ -2168,11 +2174,11 @@ checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
[[package]]
name = "plist"
-version = "1.9.0"
+version = "1.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1"
+checksum = "65dca778f41c79ebbe8b2b2139fee86f01b766b67130d108c7c2b8ffbd949f77"
dependencies = [
- "base64 0.22.1",
+ "base64 0.23.1",
"indexmap 2.14.0",
"quick-xml",
"serde",
@@ -2300,9 +2306,9 @@ dependencies = [
[[package]]
name = "quick-xml"
-version = "0.39.4"
+version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
dependencies = [
"memchr",
]