Skip to content

feat(hunting): add modern full-stack, Next.js, and ORM attack classes - #22

Open
rehmanNRY wants to merge 1 commit into
cloudflare:mainfrom
rehmanNRY:feat/modern-web-and-fullstack-attack-classes
Open

rehmanNRY wants to merge 1 commit into
cloudflare:mainfrom
rehmanNRY:feat/modern-web-and-fullstack-attack-classes

Conversation

@rehmanNRY

Copy link
Copy Markdown

Summary

Expands domain companion guides to cover common boundary failures in modern full-stack web applications, React Server Components (RSC), Next.js App Router, ORMs, and commercial LLM integrations:

  1. WEB-PROTOCOL-AND-AUTH.md:

    • Added Server-action endpoint and mutation binding: Addresses publicly callable HTTP endpoints generated by 'use server' exports that lack body-level authorization or CSRF/Origin validation.
    • Added Full-stack framework fetch and route-cache poisoning: Addresses full-stack route handlers and server-side fetch default caching (force-cache) leaking user-specific data across requests.
  2. CLIENT-SIDE.md:

    • Added Server-component serialization boundary leakage: Detects sensitive database/ORM properties (hashes, internal roles, tenant secrets) serialized into client-visible flight streams when crossing 'use client' boundaries.
  3. DATA-ISOLATION-AND-LIFECYCLE.md:

    • Added NoSQL operator and query object injection: Detects uncast object inputs parsed into document-store filter criteria ($gt, $ne, $regex).
    • Added ORM mass-assignment and relational connect overreach: Detects unfiltered request objects passed into ORM mutations and relational connection re-parenting (e.g. Prisma connect).
    • Added Row-level security policy and role bypass: Checks for Postgres/Supabase RLS bypasses, missing table enablement, missing WITH CHECK clauses, and SECURITY DEFINER search-path hijacking.
  4. AI-AND-LLM.md:

    • Added Multimodal and document prompt injection: Covers untrusted user-uploaded images and documents processed by vision models.
    • Added Commercial API spend asymmetry and denial of wallet: Covers unauthenticated/unmetered calls to expensive frontier models exhausting API budgets.
  5. Updated target guidance in ATTACK-CLASSES.md and file index in README.md.

Testing

  • Validated all tests in validate-coverage-ledger.test.cjs.
  • Preserves all canonical ID naming rules and source-grounded boundary contracts.

- Add server-action endpoint and mutation binding checks to WEB-PROTOCOL-AND-AUTH.md
- Add full-stack framework fetch and route-cache poisoning checks to WEB-PROTOCOL-AND-AUTH.md
- Add server-component serialization boundary leakage checks to CLIENT-SIDE.md
- Add NoSQL operator injection, ORM mass-assignment, and row-level security bypass checks to DATA-ISOLATION-AND-LIFECYCLE.md
- Add multimodal prompt injection and commercial API spend asymmetry checks to AI-AND-LLM.md
- Update target guidance in ATTACK-CLASSES.md and file index in README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant