Audits BaaS and managed-platform configuration for broken-access-control vulnerabilities: Supabase RLS, Firebase rules, connection-string databases, serverless host exposure, payment-webhook integrity, and CMS hardening.
Ships in Aegis 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.
Read when SKILL.md points to them.
This module audits the managed platforms where modern products actually run. It is configuration-first: the platform vendor secures its infrastructure; the application owner secures everything configured on top of it, and on every platform below there is a default whose failure mode equals full-database compromise.
Shared-responsibility baseline. The vendor patches Postgres, scales Firestore, signs TLS, and operates the control plane. You own, without exception:
In scope: Supabase; Firebase (Firestore, Realtime Database, Storage); connection-string-only platforms (Neon, Supabase-Postgres direct connections, Railway, Render, Upstash, MongoDB Atlas); serverless hosts (Vercel, Netlify and similar); Stripe-shaped payment webhooks; WordPress-class managed CMS.
Out of scope: cloud IAM deep dives (see the IAM module), TLS/certificate posture, DNS takeover (dedicated module), mobile-specific storage.
Objectives — produce a finding only when you can name the artifact:
requires-db-credentials or authorized-only; prefer static evidence from repo artifacts first because console or database access is often unavailable to the auditor.Zero-background primer: the terms this module uses, one line each. Deeper plain-language explanations for every class live in the repository GUIDE.md glossary.
Five invariants drive every check in this module:
0.0.0.0/0 network access with one click. Assume defaults are wrong until proven otherwise.NEXT_PUBLIC_, VITE_, NUXT_PUBLIC_) are compile-time public-by-construction; so is any secret accidentally prefixed, bundled, or shipped in a source map.Platform footgun matrix:
| Platform | Footgun | Detection | Hardened state |
|---|---|---|---|
| Supabase | New tables default to RLS OFF; anon key public by design | Migrations scan (create table with no following enable row level security); pg_tables introspection (requires-db-credentials) | RLS enabled + owner-scoped policies covering select/insert/update/delete; documented exceptions only |
| Supabase | service_role bypasses RLS entirely | Grep client code/bundles/env for the key reaching frontend (cross-ref SECRETS) | Key exists only in server-side runtime env; rotated if ever client-exposed |
| Firebase | allow read, write: if true scaffolding; forgotten Storage rules file | Review *.rules; emulator/simulator evaluation | Auth-scoped granular rules, simulator-tested, Storage rules reviewed same session |
| Firebase | Test-mode expiry timer past date = permanently open | Parse request.time < timestamp(X) against current date | Rules migrated off test timers before expiry; prod rules never rely on time alone |
| Neon/Railway/Render/Upstash/Atlas | Public endpoint + credentials-in-connection-string auth; Atlas accepts 0.0.0.0/0 | Connection-string scan; access-list config review | TLS-enforced strong credentials; IP-restricted or private networking; tokens never in clients |
| Vercel/Netlify | Every branch gets a public preview URL by default | Deploy logs/commit-status hosts; unauth fetch probe | Deployment protection enabled for all non-production targets |
| Payment webhooks | Unsigned handler grants entitlements from client JSON | Handler code review: constructEvent absent | Signature verification + event-type allowlist + consumed-once idempotency |
| WP-class CMS | Stale plugins, admin file editor on, xmlrpc.php open | wp-config.php review; authorized curl probes | Patched components, editing disabled, xmlrpc off, application passwords, debug off |
Corollary used throughout What To Check: rules are not filters (Firebase) and policies are not presence (Supabase). A rule that does not constrain the query shape cannot rescue a broad query; a policy that merely exists but says using (true) protects nothing. Presence of the control is checked separately from quality of the control.
Work platform by platform. A finding is complete only when it names the failing control and the artifact that proves it (migration file, rules file, handler route, config constant). Static evidence first; live probes only per Exploitation & Reproduction.
RLS enablement (the flagship check). Scan every SQL migration for create table statements in the public schema and verify a following alter table <schema>.<table> enable row level security; exists in the same migration set or any later one. Absence = world-readable AND world-writable via PostgREST using the anon key.
Live-database confirmation (requires-db-credentials). When database credentials are supplied, run:
-- requires-db-credentials: live RLS state, read-only
select schemaname, tablename, rowsecurity
from pg_tables
where schemaname = 'public'
order by tablename;
Every row must show rowsecurity = true, or carry a documented decision that the table is intentionally public.
Policy quality. For each RLS-enabled table, audit the create policy statements:
using (true) or with check (true) with no role or ownership predicate.auth.uid() = user_id / owner_id column comparisons, not free variables that never bind.for select policy still allows anonymous INSERT/UPDATE/DELETE attempts to be evaluated against no policy (denied) — but the inverse is the killer: write-capable policy with no select policy, or an UPDATE policy missing its with check half, letting rows be moved to another owner. Enumerate which of for select / insert / update / delete have policies and whether each gap is intentional.service_role exposure. The service_role key bypasses RLS entirely. Grep client code, committed bundles, .env* files consumed by frontend builds, and any NEXT_PUBLIC_/VITE_ prefixed variable for the service_role value or its variable name (cross-ref SECRETS). Any hit = full unauthenticated database compromise once the bundle ships.
Storage buckets. Inspect bucket creation migrations (insert into storage.buckets ... public true) and storage.objects policies. Public buckets are legitimate for avatars-by-design but must be documented; flag undocumented public buckets holding non-public object classes. Remember storage access also evaluates RLS on storage.objects — over-broad policies there leak every bucket.
Edge functions secrets. Edge functions should read secrets from the runtime-managed secrets store (e.g., Deno.env.get(...)), never from hardcoded literals or files inside the function directory that get bundled.
firestore.rules, storage.rules, database.rules.json. Flag these shapes:
allow read, write: if true; — fully open.allow read, write: if request.auth != null; — better, but grants any authenticated user any document; flag when data is per-user.request.auth != null on write paths.match /{document=**} applied project-wide, or broad segment wildcards (match /data/{id}) where sub-collections intended narrower scope.allow read granted while write is split into create/update/delete with only some covered.storage.rules at test-mode openness. Review it in the same pass; flag uploads readable/writable by request.auth == null.allow read, write: if request.time < timestamp(<future-date>);. Parse the date; if it is in the past, the rule is inert-but-open depending on surrounding matches — treat expired-timer-plus-permissive-fallback as open. If future-dated, note the expiry date in the finding and require migration before expiry.*-firebase-adminsdk-*.json, serviceAccountKey.json, or tracked JSON containing "type": "service_account" and a "private_key" field (cross-ref SECRETS). Also flag Admin SDK initialization imported into client-reachable code paths.sslmode=require or stronger (not sslmode=disable/prefer); Redis-family connections should use TLS endpoints; Atlas enforces TLS by default — confirm nothing downgrades it.0.0.0.0/0 (allow from anywhere). Console screenshots described by the user count as evidence; repo-side, look for Terraform/CLI provisioning of access lists with world-open CIDRs. Recommend specific egress IPs or private endpoints.DATABASE_URL / MONGO_URL / REDIS_URL exist across shell scripts, CI logs, docker-compose environment blocks, and preview-environment configs; each copy is another leak surface.NEXT_PUBLIC_, VITE_, or NUXT_PUBLIC_ (and equivalents) are inlined into the browser bundle at build time — they are published values, not configuration (cross-ref SECRETS; this trap is named here once and pointed to). Grep those prefixes for secret-shaped names (keys, tokens, URIs with credentials).next.config.js for productionBrowserSourceMaps: true, build scripts emitting maps into the publish directory, and confirm by fetching <bundle>.js.map from production (authorized target).vercel.json / netlify.toml / _headers / _redirects: wildcard catch-all rewrites that mask internal routes, redirects with ! negation mistakes creating open redirects, missing security headers (CSP, X-Frame-Options) on all routes.stripe.webhooks.constructEvent(rawBody, sigHeader, endpointSecret) — throws on failure; reject with 4xx.stripe.Webhook.construct_event(payload, sig_header, endpoint_secret) — raises ValueError (payload parse) or stripe.SignatureVerificationError; reject with 4xx.express.json() before the raw-body capture, request.get_json() then re-serialize) — signature verification fails or is silently skipped.checkout.session.completed, invoice.paid, ...); ignore-and-ACK everything else. Flag switch/if chains acting on arbitrary event.type strings with default-grant behavior./api/webhook|/upgrade route reading attacker-posted JSON ({"type":"checkout.session.completed","email":"victim@x"}) and upgrading the account with no signature check. Any "webhook" route that mutates entitlements without provider-signature verification is this finding regardless of naming.wp-config.php defines DISALLOW_FILE_EDIT as true (absence = vulnerable default: admin users can edit plugin/theme PHP, turning any compromised admin session into remote code execution).authorized-only).WP_DEBUG false in production; debug log must not be web-readable./wp-admin and wp-login.php should be protected with MFA and/or rate limiting. Path obscurity (renamed login) is a minor, honest note only — it is not a control.Resource: "*", "Action": "*", broad service wildcards) in a function role are the finding shape — scope each role to exactly that function's inputs and outputs.supabase/migrations/*.sql — table definitions, create policy, enable row level security, bucket inserts.supabase/config.toml — project linkage; supabase/functions/** — edge function code and secret reads.src/lib/supabase*.ts, any file importing @supabase/supabase-js and calling createClient(..env* files consumed by frontend builds; committed bundles under dist/, .next/, public/.firestore.rules, storage.rules, database.rules.json, firebase.json (rules file wiring).functions/ — Admin SDK usage (firebase-admin imports, initializeApp( with credential arguments).*serviceAccount*.json, *-firebase-adminsdk-*.json, or containing "type": "service_account"..env*, docker-compose*.yml environment blocks, CI definitions, shell scripts.prisma/schema.prisma datasource url env indirection, Sequelize/Knex config files.scripts/.vercel.json, netlify.toml, _headers, _redirects, public/_headers.next.config.js (productionBrowserSourceMaps), build scripts in package.json.app/api/**/route.ts and pages/api/**, Express/Fastify route registrations, Django/Flask/FastAPI URL configs — search for path fragments webhook|stripe|checkout|billing|fulfil.constructEvent vs JSON body parsing; entitlement mutations (update ... plan/pro/tier) reachable from it.wp-config.php (constants), wp-content/plugins/ and wp-content/themes/ listings, xmlrpc.php presence, web-server config (nginx.conf, .htaccess).Ripgrep-compatible signature hunt over repo artifacts (run from repo root):
# BaaS SDK surfaces
rg -n "supabase" -g '!node_modules' -g '!package-lock.json'
rg -n "createClient\(" -g '!node_modules' --type ts --type js
rg -n "from\(['\"]" src/ -g '!node_modules' # supabase-js table access surfaces to diff against RLS-enabled set
# Firebase artifacts and rules
rg -n "firebaseio\.com|firestore\.rules|database\.rules|storage\.rules"
rg -n "initializeApp\(|getFirestore\(|firebase-admin" -g '!node_modules'
# Webhook integrity
rg -n "constructEvent|SignatureVerificationError|stripe-signature"
# Browser-exposed env prefixes (cross-ref SECRETS)
rg -n "NEXT_PUBLIC_[A-Z_]+|VITE_[A-Z_]+|NUXT_PUBLIC_[A-Z_]+" -g '!node_modules'
# Privileged material
rg -n "service_role|SERVICE_ROLE" -g '!node_modules'
rg -n "postgres(ql)?://[^[:space:]\"']+" # connection strings — REDACT every match before reporting
# Permissive policy/rule shapes
rg -n "using\s*\(\s*true\s*\)|with check\s*\(\s*true\s*\)" supabase/
rg -n "allow\s+read,\s*write|if\s+true" --glob '*.rules'
Manual-judgment note: no grep can prove a migration lacks RLS enablement — SQL semantics require reading the migration sequence. Use the signature output to enumerate candidate tables (create table hits) and manually diff each against the set of enable row level security statements across all migrations, honoring later alter table additions. Report as Needs-Review until confirmed.
Paste-ready read-only sweep (values REDACTED always; run from repo root):
# aegis-sweep :: baas-platform :: read-only :: all secret-shaped values REDACTED
red() { sed -E 's/([A-Za-z_]*(KEY|TOKEN|SECRET|PASSWORD|PRIVATE)[A-Za-z_]*)[=:][^[:space:]"]+/\1=[REDACTED]/g; s#((postgres(ql)?|mongodb(\+srv)?|mysql|redis))://[^[:space:]"]+#\1://[REDACTED]#g'; }
echo "== platform markers =="
git ls-files | grep -E '(^|/)(firestore|storage|database)\.rules$|firebase\.json$|vercel\.json$|netlify\.toml$|(^|/)supabase/config\.toml$|schema\.prisma$|wp-config\.php$'
echo "== SDK entry points =="
git grep -lnE "createClient\(|initializeApp\(|new Pool\(|mongoose\.connect|stripe\(" -- '*.ts' '*.tsx' '*.js' '*.jsx' '*.py' | head -30
echo "== migrations missing RLS enable (manual confirm) =="
for f in $(git ls-files 'supabase/migrations/*.sql'); do git show ":$f" | grep -qie 'create table' && ! git show ":$f" | grep -qie 'enable row level security' && echo "RLS-GAP? $f"; done
echo "== rules files (contents safe to print) =="
for f in $(git ls-files '*.rules'); do echo "--- $f"; cat "$f"; done
echo "== browser-exposed env prefixes =="
git grep -nE "NEXT_PUBLIC_[A-Z_]+|VITE_[A-Z_]+|NUXT_PUBLIC_[A-Z_]+" | red | head -40
echo "== privileged material in tracked files =="
git grep -niE "service_role|service_account|BEGIN (RSA )?PRIVATE KEY|constructEvent" | red | head -40
echo "== connection strings anywhere =="
git grep -niE "(postgres(ql)?|mongodb(\+srv)?|mysql|redis)://" | red | head -20
Interpretation: RLS-GAP? lines are candidates only (manual confirmation required); rules file contents are configuration, not secrets, and may be printed; every other stream passes through red() so no key value ever reaches the report or terminal.
Model each platform boundary as source-to-sink; the control that must sit on the path is named per pair.
| Source (attacker-influenced or public-by-design) | Sink | Required gate on path |
|---|---|---|
Supabase anon key + from('<table>') call in client bundle | PostgREST row read/write | RLS enabled + operation-scoped policy on <table> |
service_role key value | Anything client-reachable: bundle, repo, preview env | Server-only runtime env; never a public env prefix |
Env var with public prefix (NEXT_PUBLIC_, VITE_, NUXT_PUBLIC_) | Compiled JS in browser | None possible — value is public at build time; only non-secrets may take this path |
Webhook route req.body / request.get_data() | Entitlement mutation (plan, credits, license, unlock) | constructEvent over RAW body + event-type allowlist + consumed-once dedupe |
| Client-supplied amount/currency/priceId/email | Order record or fulfillment decision | Server-side recompute from provider catalog; session retrieved by ID server-side |
| Firebase query issued by client | Documents evaluated against rules | Rule must constrain the query shape itself (rules-are-not-filters) |
| Service-account JSON path | VCS history, forks, clones | Untracked + ignored + rotated if ever committed |
| Upstash REST token / connection string | Logs, CI output, client code, error reporters | Bearer-secret handling: server-side env only |
Worked traces:
createClient(SUPABASE_URL, SUPABASE_ANON_KEY) and calls .from('documents'). Trace stops at the table name: diff it against the migrations' RLS-enabled set. No policy for anon role = anonymous read/write proof available via curl (procedure a).pages/api/stripe/webhook.ts begins with const event = req.body and no constructEvent appears anywhere in the file. The body taints grantPlan(...) directly — unsigned fulfillment confirmed statically; verify live with procedure (b).NEXT_PUBLIC_STRIPE_SECRET_KEY in .env.local: prefix taint guarantees bundling into shipped JS. Report as Critical-adjacent secret exposure even before fetching the bundle to confirm (cross-ref SECRETS).Static-first throughout: console access may be absent, so every procedure starts from repo artifacts. Run live steps only against targets you are authorized to test. Never exfiltrate data beyond one-row existence proofs; REDACT all values in reports.
NEXT_PUBLIC_SUPABASE_URL, supabase config, or client init literal) and anon key variable reference. Do not print either.create table hits) minus the manually-confirmed RLS-enabled set.requires target authorization):BASE="$SUPABASE_PROJECT_URL"; ANON="$SUPABASE_ANON_KEY" # values never echoed
curl -s -o /dev/null -w "%{http_code}\n" \
"$BASE/rest/v1/<table>?select=*&limit=1" \
-H "apikey: $ANON" -H "authorization: Bearer $ANON"
# 200 -> anonymous read succeeds = Critical when rows are non-public
# 401/403/empty-with-error (e.g., permission code 42501) -> RLS enforcing as intended
curl -s -o /dev/null -w "%{http_code}\n" -X POST \
"$BASE/rest/v1/<table>" \
-H "apikey: $ANON" -H "authorization: Bearer $ANON" \
-H "content-type: application/json" -H "prefer: return=minimal" -d '{}'
# 201 -> anonymous INSERT succeeds = Critical (world-writable table)
# 401/403/42501 -> insert policy blocking as intended
Expected observables: HTTP 200 with row JSON (read) or 201 (write) proves full-database compromise via the public key alone; 401/403 or an empty body with a PostgREST permission error demonstrates the policy layer working.
constructEvent gates the handler.curl -s -o /dev/null -w "%{http_code}\n" -X POST "http://localhost:3000/api/stripe/webhook" \
-H "content-type: application/json" \
-d '{"id":"evt_forged_001","type":"checkout.session.completed","data":{"object":{"customer_email":"[email protected]"}}}'
# Expected when correct: 400/verification-failure observable, no entitlement change.
# 200 plus account upgrade = Critical: unsigned fulfillment accepts forged events.
stripe listen --forward-to <local-handler> then stripe trigger checkout.session.completed; confirm the handler logs successful verification and fulfills once.AUTHORIZED-ONLY)curl -s -o /dev/null -w "xmlrpc: %{http_code}\n" "https://TARGET/xmlrpc.php"
# 200/405 -> endpoint present and reachable (disable when unused); 403/404 -> blocked
curl -s -o /dev/null -w "debuglog: %{http_code}\n" "https://TARGET/wp-content/debug.log"
# 200 with PHP notices -> WP_DEBUG logging publicly readable; 403/404 -> acceptable
Do not brute-force, do not enumerate users, do not POST to xmlrpc methods; existence probes only.
<branch-or-hash>--<site>.netlify.app and <deployment>-<project>.vercel.app).curl -s -o /dev/null -w "%{http_code}\n" "https://<preview-host>/"
# 200 rendering the app shell with no auth challenge = unprotected preview
Enable RLS on every public-schema table and add owner-scoped policies covering all four operations:
-- VULNERABLE: table reachable by the public anon key, no RLS
create table public.documents (
id uuid primary key default gen_random_uuid(),
owner_id uuid not null,
title text,
body text
);
-- FIXED: deny-by-default, then grant narrowly per operation
alter table public.documents enable row level security;
create policy documents_select_own on public.documents
for select using (auth.uid() = owner_id);
create policy documents_insert_own on public.documents
for insert with check (auth.uid() = owner_id);
create policy documents_update_own on public.documents
for update using (auth.uid() = owner_id)
with check (auth.uid() = owner_id); -- prevents re-parenting rows to another owner
create policy documents_delete_own on public.documents
for delete using (auth.uid() = owner_id);
Tables used only by server code (service_role) should have no anon/authenticated policies at all — RLS enabled plus zero policies already denies the public roles.
service_role isolation pattern: the service_role key lives only in server-side runtime env (process.env.SUPABASE_SERVICE_ROLE_KEY behind a non-public name). It must never receive a NEXT_PUBLIC_/VITE_/NUXT_PUBLIC_ prefix, never appear in client-callable modules (in Next.js, import it only from modules marked server-only), never enter VCS or preview env contexts. If it ever shipped in a bundle, rotate it immediately — deletion of the variable does not un-leak it.
// VULNERABLE: scaffolding left open project-wide
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
Hardened starter (deny by default; grant narrowly; mirror the same shape in storage.rules):
// FIXED: starter - replace collection names/fields to match the real schema
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /users/{uid}/private/{docId} {
allow read, write: if request.auth != null && request.auth.uid == uid;
}
match /posts/{postId} {
allow read: if true; // documented intentional public content
allow create: if request.auth != null
&& request.resource.data.authorUid == request.auth.uid;
allow update, delete: if request.auth != null
&& resource.data.authorUid == request.auth.uid;
}
// no catch-all match -> everything else denied
}
}
Migrate off test-mode timers before their timestamps pass; never combine a timer with a trailing permissive fallback. Validate iteratively in the emulator/rules playground before deploying.
?sslmode=require (Postgres-family); TLS endpoints for Redis-family; keep Atlas default TLS untouched.0.0.0.0/0 network access with specific egress IPs or private networking.// VULNERABLE: trusts client JSON, no signature check -> forged upgrades
app.post("/api/stripe/webhook", express.json(), async (req, res) => {
const event = req.body;
if (event.type === "checkout.session.completed") {
await grantPlan(event.data.object.customer_email, event.data.object.amount);
}
res.sendStatus(200);
});
Node fixed middleware:
// FIXED (Node): verify over RAW body before anything else
app.post("/api/stripe/webhook",
express.raw({ type: "application/json" }), // raw bytes required for signature
(req, res) => {
let event;
try {
event = stripe.webhooks.constructEvent(
req.body,
req.headers["stripe-signature"],
process.env.STRIPE_WEBHOOK_SECRET
);
} catch (err) {
return res.status(400).send("signature verification failed");
}
if (!["checkout.session.completed", "invoice.paid"].includes(event.type)) {
return res.status(200).end(); // allowlist: ACK unknown types, act on none
}
fulfill(event); // internally: recompute price from catalog,
return res.json({ received: true }); // dedupe by event.id (consumed-once)
});
Python fixed handler:
# FIXED (Python/Flask): construct_event over raw payload; reject on failure
import stripe
from flask import Flask, request, abort
@app.post("/api/stripe/webhook")
def webhook():
sig = request.headers.get("stripe-signature")
try:
event = stripe.Webhook.construct_event(
request.get_data(), sig, app.config["STRIPE_WEBHOOK_SECRET"]
)
except ValueError:
abort(400) # invalid payload
except stripe.SignatureVerificationError:
abort(400) # signature mismatch
if event["type"] not in HANDLED_EVENTS:
return ("", 200)
fulfill(event) # recompute + dedupe inside
return ("", 200)
Consumed-once table backing idempotent fulfillment:
-- FIXED: unique(event_id) makes replay inserts fail inside the fulfillment transaction
create table public.processed_webhook_events (
event_id text primary key,
provider text not null,
processed_at timestamptz not null default now()
);
-- flow: begin; insert into processed_webhook_events(event_id, provider) values ($1,'stripe');
-- on conflict do nothing -> skip fulfillment; commit after granting entitlements
Console-guidance phrasing (verify state via user-provided screenshots; no CLI):
productionBrowserSourceMaps unset/false; strip .map from publish directory).vercel.json / netlify.toml redirects/rewrites for open-redirect and route-masking mistakes; add security headers globally.// FIXED - wp-config.php additions (production)
define('DISALLOW_FILE_EDIT', true); // blocks plugin/theme PHP editing from admin UI
define('WP_DEBUG', false); // no debug output or web-readable debug.log
wp-config.php (no placeholder phrases).xmlrpc.php when no integration requires it (web-server rule or removal).Post-fix verification (positive):
pg_tables introspection: every public-schema row reports rowsecurity = true (or carries a documented public-by-design exception). Re-run procedure (a): reads/writes against protected tables now return 401/403 or permission errors via the anon key.stripe trigger checkout.session.completed in test mode fulfills exactly once; a verbatim replay updates no entitlement state; a tampered payload is rejected at signature verification.xmlrpc.php and wp-content/debug.log; DISALLOW_FILE_EDIT visible in deployed wp-config.php.Negative tests (product intent preserved):
Regression notes:
.from('<table>') usage against the hardening set before applying.Greps rerun post-fix: the Patterns & Signatures block should show zero hits for service_role outside server-only modules, zero secret-shaped names under public env prefixes, and constructEvent present in every fulfillment handler. Any residual hit needs a documented exception.
Vectors assume an internet-reachable deployment; adjust AV/PR downward only with documented network-boundary evidence.
| Anchor | Finding | CVSS v3.1 vector | Approx. score |
|---|---|---|---|
| Critical | PII-bearing table with RLS off, readable AND writable by anyone holding the public anon key | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | ~9.8 |
| Critical | Firestore/RTDB rules fully open (allow read, write: if true) on user data | same shape as above | ~9.8 |
| High | service_role key recoverable from shipped client bundle (RLS bypass = full DB control); treat as Critical-equivalent when live-confirmed | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L | ~9.2 |
| High | Unsigned webhook fulfillment granting entitlements from forged JSON | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N | ~8.1 |
| High | Unprotected public preview exposing prod-like data/env vars | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N | ~8.1 |
| Medium | Public-read storage bucket undocumented (avatar-style exposure of a broader object class than intended) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | ~5.3 |
| Medium | xmlrpc.php left open when unused (brute-force amplification/pingback abuse surface) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | ~5.3 |
| Low | Platform/component version disclosure banners | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N | ~3.6 |
Anchor discipline: RLS enabled-but-permissive is graded by what its worst reachable operation exposes, not as "missing RLS"; expired-but-inert test-mode rules are graded by whether any live path currently grants access.
rowsecurity = true and using (true) policies fails differently: report it as policy-quality (High/Critical by exposure), not as the missing-RLS Critical anchor. Audit policy quality as a separate finding either way.request.time < timestamp(<future>). Confirm project age against the timestamp; flag only expired-and-open rules or prod data living under a timer.constructEvent present but fed parsed JSON. The call exists, so "unsigned handler" does not apply; the finding degrades to broken-verification (often still exploitable) rather than no-verification.Official documentation roots:
constructEvent / construct_event), test-mode CLI event triggeringwp-config.php constants, application passwords, roles and capabilitiesOWASP references:
What SKILL.md sets; muted values are Claude Code's defaults
/aegis:aegis-baas-platformfrom Aegis Skills
npx claudepluginhub as-foss/aegis-skills --plugin aegis40 skills in this plugin
/aegis-api-securityAudit playbook module for API-specific security failures covering mass assignment, missing rate limits and pagination caps, GraphQL/gRPC misconfiguration, REST hygiene gaps, API key mishandling, and WebSocket/SSE access-control defects across all mainstream web frameworks./aegis-api-token-securityAudits the full lifecycle of bearer/API tokens protecting an internet-exposed HTTP API — minting entropy and format, hash-only server storage, transport rules, scoping, expiry and rotation, revocation, per-key rate limits, and log hygiene — with read-only evidence commands and hardened reference implementations./aegis-authn-sessionDetect authentication and session management failures across login, password storage, password reset, MFA, session lifecycle, JWT/OAuth/API-key handling, remember-me, and session storage.Other plugins' skills for the same job