Webapp Security Review
ASecurityStack-specific web application security checks for this repository (Void Pages on Cloudflare Workers, Void-managed Better Auth, D1 through Drizzle, R2, the `gateway/` authorization boundary), one reference per vulnerability class, each saying which file to open, what to grep, which request to send, and what test pins the fix. Use when implementing or reviewing a page loader or action, an API route, a middleware, a gateway, an upload, a header, or anything that reads the session, alongside `we...
- 79 stars
- 0 votes
- 0 copies
- 4 views
- Added September 30, 2026
Works with
Security analysis
100/100Pro scans all 20 files and shows the line behind each finding
npx -y skills add imaimai17468/imaimai-front-templete --skill webapp-security-review --agent claude-codeAre you the author of Webapp Security Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/imaimai17468-webapp-security-review)---
name: webapp-security-review
description: Stack-specific web application security checks for this repository (Void Pages on Cloudflare Workers, Void-managed Better Auth, D1 through Drizzle, R2, the `gateway/` authorization boundary), one reference per vulnerability class, each saying which file to open, what to grep, which request to send, and what test pins the fix. Use when implementing or reviewing a page loader or action, an API route, a middleware, a gateway, an upload, a header, or anything that reads the session, alongside `web-security-audit`, which owns the general audit methodology and reporting.
---
# Web application security review
This skill turns a vulnerability class into the checks it takes in this repository. `web-security-audit` decides how an audit is run and how a finding is validated and reported; this skill supplies what to look at once the class is known.
## Procedure
1. **Write the policy before reading the code.** For the feature under review, list who can do what to which object: the caller (signed out, the owner, another user), the object, the action, and the decision. Without the table, a 200 and a 403 are equally plausible answers, and a review has nothing to compare against.
2. **List every entrance to the same data.** A page's `loader` or `action` in an `index.server.ts` under `src/pages/`, a method handler in a route file under `src/routes/`, and the shared data a middleware under `src/middleware/` puts on every page each reach the data by a different path, and a policy holds only where every one of them applies it. An object in R2 is one more path wherever the bucket has been given a public URL; without one it is served only through a route. `git grep -n -E '^export (async )?(const|let|function) (loader|action|actions|GET|HEAD|POST|PUT|PATCH|DELETE)([^A-Za-z0-9_$]|$)' -- src/pages src/routes` lists the first two, apart from a re-export such as `export { x as GET }`, which only reading the file shows, and `ls src/middleware` the third.
3. **Change one thing in a request that works, and compare the answer with the table.** Send the request as the owner first, then swap one element (the caller, or one id), so a difference in the answer has one cause.
4. **Fix at the boundary the reference names**, which for anything the session decides is the service in the `gateway/` directory rather than the route or the component.
5. **Pin the decision with a test of each row of the table**, the allowed rows as well as the denied ones, so a fix that denies everyone fails as loudly as the hole it closed.
Run step 3 only against the local dev server and accounts you created yourself. Changing an id against a service you have not been authorized to test is an attack whatever the intent.
`bun run dev` applies the D1 migrations itself when it starts, and keeps the local D1 under `.void/`. A reference that reads or writes a row runs `mise exec -- bunx void db execute "<SQL>"`, which `node_modules/void/docs/reference/cli/database.md` says targets the local database unless `--remote` is given, and which AGENTS.md lets an agent run. `mise exec --` runs it on the Node that `mise.toml` pins, because the void CLI exits under a Node older than 24.22 and `bunx` uses whichever Node is first on `PATH`. On 2026-12-03 it printed the `user` rows while `bun run dev` ran, and an `UPDATE` it ran was read by the dev server's next request, so a write needs no restart. `sqlite3` on the file under `.void/v3/d1/` is not a substitute: its read-only modes failed with `unable to open database file` that day whenever the WAL's `-shm` file was absent. The auth tables are Better Auth's, named `user`, `session`, `account`, `verification` and `rateLimit` with camelCase columns, as `.void/better-auth-schema.ts` declares them.
A reference that sends a request as Void's client router does sends `X-VoidPages: true`, `X-VoidPages-Version: 2` and `Accept: application/json`, the headers `node_modules/void/dist/pages/client.mjs` sets. Without `X-VoidPages-Version` matching `PAGES_PROTOCOL_VERSION` (`"2"` in `node_modules/@void/edge/dist/index.mjs`), Void answers as to an outdated client (`needsPageReload` and `legacyPageResponse` in `node_modules/void/dist/protocol-*.mjs`): an empty 200 that runs no loader for a GET, and a 422 `{"errors":...}` for an action the schema refuses.
## References
Each file in `references/` covers one vulnerability class and is named for it, such as `references/access-control.md`. List the directory and open the file for the class under review; open more than one where a change crosses classes, as an upload does for both file handling and authorization.
Each reference is written in this repository's terms and states what a reviewer does and what they then see. Its source is the book below, summarized in our own words for this stack. The book is not quoted, because its text carries no license that permits republishing it in a public repository.
> 「Webアプリケーションセキュリティ入門」 yousukezan + AI, https://bogus.jp/webapp_security_review.pdf
Chapters the references leave out, and why:
| Chapters | Reason |
| --- | --- |
| 1 to 3 | HTTP basics, the book's Flask sample app, and Burp Suite setup, none of which is a check on this code |
| 13 (OS command injection) | A Worker has no shell to inject into |
| 14 (server-side template injection) | Rendering is React, which has no template source a request can supply |
| 26 to 29 | Running an assessment, writing the report, rebuilding the sample app, and future topics, which `web-security-audit` covers or which name no check |
## Adding a reference
Name the file for the vulnerability class in kebab-case and open it with the chapters it draws on. Write each check as the file to open or the command to run, followed by what a reviewer sees when the code is right and when it is not. A reproduction replays a request against an object that exists, and says what each possible answer means, including the one that proves nothing, such as a 404 for an id nothing wrote. Open every file a check names before writing the check. Write in your own words, and never copy a sentence, a table, or a code sample from the book.
Files in this skill
- SKILL.md
- references/access-control.md
- references/api.md
- references/authentication.md
- references/browser-headers.md
- references/business-logic.md
- references/client-side.md
- references/cors.md
- references/csrf.md
- references/data-processing.md
- references/deployment.md
- references/file-upload.md
- references/information-leakage.md
- references/input-validation.md
- references/logging.md
- references/path-traversal.md
- references/session.md
- references/sql-injection.md
- references/ssrf.md
- references/supply-chain.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.