Architecture check
brocoders/nestjs-boilerplate
0 errors, 21 warnings
No critical or high-risk findings. 7 worth a look.
21 warnings in the paths between 19 routes and 5 tables.
Stop it getting worse on every pull request
Findings already on main never fail a pull request; only what a pull request adds can. Nothing new slips in while you fix these. One commit adds it. No token, no account.
Route → table map
19 routes · 3 tables reached
Tables
5
Rules run
20/20
Findings by route
9 of 19 routes flagged · 20/20 rules ran
- Errors
- Warnings
- No findings
21 findings
7 medium14 low
POST /email/login has no validator or rate limiter attached.
POST /email/login accepts any body at any rate. Malformed input reaches your handler, and nothing stops a script calling it in a loop.
- Missing
- Schema validation of the request body, and a rate limit.
- Confidence
- Inline validation (zod.parse, pydantic models) and platform rate limits are not always visible to the parser. Check before acting.
Prove it
curl -i -X POST 'https://YOUR_API/email/login' \ -H 'content-type: application/json' -d '{"unexpected": {"nested": [1,2,3]}}' # Expect 400. A 2xx or 500 means the body is not validated.Fix
class BodyDto { @IsString() @MaxLength(200) name!: string; } @Post("/email/login") handler(@Body(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })) body: BodyDto) { /* ... */ }Regression test
test("POST /email/login rejects an unexpected body", async () => { const res = await request(app).post("/email/login").send({ unexpected: true }); expect(res.status).toBe(400); });Intended? If validation and rate limiting happen upstream (an API gateway, Vercel Firewall), turn the rule off for the repo:
{ "policy": { "rules": { "public-entry-guarded": "off" } } }in wyro.json.public-entry-guardedPOST /email/register has no validator or rate limiter attached.
POST /email/register accepts any body at any rate. Malformed input reaches your handler, and nothing stops a script calling it in a loop.
- Missing
- Schema validation of the request body, and a rate limit.
- Confidence
- Inline validation (zod.parse, pydantic models) and platform rate limits are not always visible to the parser. Check before acting.
Prove it
curl -i -X POST 'https://YOUR_API/email/register' \ -H 'content-type: application/json' -d '{"unexpected": {"nested": [1,2,3]}}' # Expect 400. A 2xx or 500 means the body is not validated.Fix
class BodyDto { @IsString() @MaxLength(200) name!: string; } @Post("/email/register") handler(@Body(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })) body: BodyDto) { /* ... */ }Regression test
test("POST /email/register rejects an unexpected body", async () => { const res = await request(app).post("/email/register").send({ unexpected: true }); expect(res.status).toBe(400); });Intended? If validation and rate limiting happen upstream (an API gateway, Vercel Firewall), turn the rule off for the repo:
{ "policy": { "rules": { "public-entry-guarded": "off" } } }in wyro.json.public-entry-guardedPOST /email/confirm has no validator or rate limiter attached.
POST /email/confirm accepts any body at any rate. Malformed input reaches your handler, and nothing stops a script calling it in a loop.
- Missing
- Schema validation of the request body, and a rate limit.
- Confidence
- Inline validation (zod.parse, pydantic models) and platform rate limits are not always visible to the parser. Check before acting.
Prove it
curl -i -X POST 'https://YOUR_API/email/confirm' \ -H 'content-type: application/json' -d '{"unexpected": {"nested": [1,2,3]}}' # Expect 400. A 2xx or 500 means the body is not validated.Fix
class BodyDto { @IsString() @MaxLength(200) name!: string; } @Post("/email/confirm") handler(@Body(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true })) body: BodyDto) { /* ... */ }Regression test
test("POST /email/confirm rejects an unexpected body", async () => { const res = await request(app).post("/email/confirm").send({ unexpected: true }); expect(res.status).toBe(400); });Intended? If validation and rate limiting happen upstream (an API gateway, Vercel Firewall), turn the rule off for the repo:
{ "policy": { "rules": { "public-entry-guarded": "off" } } }in wyro.json.public-entry-guarded
18 more findings, plus a one-click fix prompt for Cursor or Claude Code. Free with GitHub sign-in.
What this is
Wyro reads the repository’s routes and data models and checks the paths between them: whether a route can reach a table without passing a guard, whether a datastore holding personal data is exposed to a public read, whether an endpoint that issues credentials requires the credentials it issues.
It is rule-based, not a model. The same commit produces the same result every time, and it does not guess at business rules it cannot see. A rule with nothing to look at is reported as not having run — never as a pass.
This check runs on public source through GitHub’s own API and needs no account. A free account adds the findings, the editable architecture canvas and a CI gate that is free on private repositories too. No card required.
Maintain this repository? You can have this report removed, and a real vulnerability is disclosed to you privately before it is published. How public reports are handled.