/security-agent-skills:hunting-broken-object-level-authorizationfrom security-agent-skills
Hunts broken object-level authorization (BOLA/IDOR) by tracing client-supplied object references to data access points and checking for missing owner-binding checks. Use when reviewing APIs that fetch or mutate records by client-controlled IDs.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The most common serious API bug is also the simplest: a handler takes an object reference from the client, fetches or mutates that object, and never checks that the caller is allowed to touch this object. Authentication passes, the route filter passes, the query runs, and user A reads user B's record by changing one id. The bug is not in the routes that are protected; it is in every access that trusts a client-supplied reference without binding it to the caller. You find it by following the reference from the request to the data access and asking, at the access, what proves this is the caller's object.
Test object access only in systems you own or are authorized to test, with test accounts across at least two users and, where relevant, two tenants. If you can't name the authorization, stop.
Enumerate every client-supplied object reference. Inventory each endpoint that accepts an object identifier and where it arrives: path segment, query parameter, body field, an id nested inside a JSON object or array, a batch of ids, a value carried in a token or cookie, or a filename. Each reference that selects an object is a source. Do not stop at the obvious path id; references hide in nested and batch payloads.
Follow each reference to the data access. Trace the reference from where it enters to where it selects the object: the query filter, the key lookup, the file open, the mutation. That access is the sink. The question the whole audit turns on is asked here, so find the exact access each reference reaches.
Ask what binds the object to the caller. At the access, is there a predicate that
ties the object to the authenticated caller, scoping by owner, tenant, or an explicit
membership check? A lookup keyed only by the client's id (find(id)) with no
owner == caller constraint is unbound. Authentication proves who the caller is;
it does not prove the object is theirs.
Check the siblings and the write side. An ownership check on GET /object/{id}
means nothing if PUT, DELETE, the export path, the batch endpoint, or a newer
sibling handler reaches the same object without it. Enumerate every access to the
object type and confirm each one binds the caller; the unbound peer is the bug, and
write and bulk paths are where it hides.
Test the reference substitution. Confirm by requesting another user's or tenant's object: swap the id for one you do not own, walk enumerable or guessable ids, embed a foreign id in a nested or batch field, or replay a second-order id captured earlier. A response that returns or mutates the other party's object is the proof. A predictable id (sequential, timestamped) raises severity but is not required; an unbound access with random ids is still the bug once you have a valid foreign reference.
Confirm and record. Confirm with the cross-user or cross-tenant access that succeeds, capturing request and response. Kill the lead if every access to the object binds it to the caller at the data layer, including writes, batches, and exports. Record with the exact endpoint, the reference field, and the foreign object reached.
PUT, DELETE,
bulk, and export paths reach the same object unbound. Audit every verb.Confirm.
GET /api/invoices/{id}scopes the query to the caller. The siblingPOST /api/invoices/exporttakes{"ids": [...]}and streams each invoice with a lookup keyed only by id, no owner predicate. Logged in as user A, exporting user B's invoice ids returns B's invoices. Confirmed BOLA on the batch export path,high, remediation = filter every id in the batch by the caller's ownership at the query, and add a test that the export path rejects foreign ids.Kill. Every access to the record type, across
GET,PUT,DELETE, the batch endpoint, and the export, runs through one repository method whose query is scoped to the caller's tenant and owner id; nested and second-order references pass through the same method. Cross-user and cross-tenant substitution returns nothing on every path. Killed,kill_reason= "single owner-scoped access path used by every reference, including writes, batch, and second-order; no unbound peer."
You need every endpoint that accepts an object reference and where the reference enters, a trace from each reference to the exact data access it reaches, and test accounts across users and tenants to substitute references. A dataflow view that carries a client-supplied reference to the query or mutation it selects, and shows which accesses apply an ownership predicate and which do not, turns this from endpoint-by-endpoint clicking into a coverage pass over every object access; the follow-the-reference method is the same by hand.
auditing-declarative-authorization - the coverage-and-correctness view of authz as
config; this skill is the per-request object-reference dataflow underneath it.hunting-mass-assignment-and-property-authz - the sibling bug where the client controls
which fields of an object it may write, not which object it may reach.auditing-guard-gaps - the unguarded-peer pattern, here the access that skips the owner
check its siblings apply.hunting-business-logic-flaws - authorization of outcomes reached through a permitted
path, above the object-access layer.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job