Featured finding
criticalAPI route leaks PII without authentication
/api/users
What the scan found
/api/users returned status 200 with PII in the response.
Why it matters
User data is accessible to unauthenticated requests.
On a real application, an endpoint like this could expose private user information. This demo intentionally uses sample data.
The report's fix guidance
Add authentication middleware to protect this API route.
Putting that guidance into practice
A checklist added for this walkthrough. Adapt it to your application.
- Check the caller's session on the server before returning data from
/api/users. - Check which records that caller is allowed to access. Being signed in must not grant access to another user's private data.
- Return only the fields the feature needs. Keep internal and sensitive fields out of the response.
- Test signed-out, unauthorized and permitted requests. Denied requests must return no private data; permitted requests must still work.
Take the finding into your coding tool
This example Fix Prompt is generated by the same template used in paid reports, using the archived finding above. Platform details stay unknown because this excerpt does not include them.
Read the full example prompt
Context the AI should know: - Platform: unknown - Hosting: unknown - Owner of this finding: unknown - Actionability: fixable - Safety: unknown I need help fixing a security vulnerability found by unpwned. **Vulnerability:** API route leaks PII without authentication **Severity:** critical | **Category:** Authentication & Authorization **What's wrong:** /api/users returned status 200 with PII in the response. **Why it matters:** User data is accessible to unauthenticated requests. **Steps to fix:** 1. Add authentication middleware to protect this API route. Please provide the exact code changes needed to fix this completely. Be specific, production-ready, and show the full implementation.
Use prompts with your own codebase in Cursor, Claude or Copilot. Review the proposed changes and test them before deploying.
