Skip to content

api(arweave): GET /arweave/anchors has no visibility gate and leaks private-repo ref names and shas #500

Description

@PierrunoYT

GET /api/v1/arweave/anchors (crates/gitlawb-node/src/api/arweave.rs:24-40, db/mod.rs:3836-3858) has no auth extractor and no visibility check. Sibling feeds (events.rs, stats, repo listings) gate every row per caller.

Impact: anonymous callers get repo, owner_did, ref_name, old_sha, new_sha and the Arweave/Irys tx id for anchors of private repos, which leaks branch names and commit tips.

Repro: GET /api/v1/arweave/anchors?repo=<owner-key>/<name> on a private repo returns 200 with ref names and shas.

Fix: apply the same per-row visibility gate events.rs uses (no existence leak), and add deny tests for an anonymous and a non-reader caller. Separate from #490 (negative limit).

Found in the Oct 2 2026 audit (A4) at bfc44f9.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate:nodegitlawb-node — the serving node and REST APIkind:securityVulnerability fix or hardeningsev:highMajor break or real security/trust risk, no easy workaroundsubsystem:apiNode REST API request/response surfacesubsystem:visibilityPath-scoped visibility and content withholding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions