Background
This is a security test of the Hat Check app, which is also called Job Decoder. Morgan Denner owns the app and asked for this test, so the test is allowed. The app is live on the internet, but the best way to test your own app is to read the real code and the real settings, not just poke at the website from outside. So this test reads the source code, the database settings in Supabase, and the hosting settings in Vercel. It checks all of them against the OWASP Cheat Sheet Series. There are 139 cheat sheets. The list was taken from the live OWASP website on November 18, 2026.
What this test is trying to reach:
- Make the ways into the app as few and as safe as they can be, and write down any risk that is still left over.
- Decide how to write the code more safely, mostly around the one API route, the input checks, and the AI step.
- Decide how to set up the network on Vercel and the database on Supabase.
One honest note. No app can block every possible attack, so this test does not promise that. Instead, for each cheat sheet that applies, the goal is one of two things. Either the app has a working defense that a test can prove, or the risk is written down and accepted on purpose.
Code Being Tested
Hat Check, also called Job Decoder, is a free public tool. A person pastes in a job posting, and the tool reads it against the Tech Fleet Skills and Practices Framework. Then it shows the real duties the role expects.
- Live app: https://job-decoder-zeta.vercel.app/
- Code: C:\Users\morga\Documents\job-decoder (Next.js 14, version 0.2.0)
- Hosting and data: Vercel runs the website and Supabase holds the database
Here is why the app has only a few ways in, which is the main thing that sets the shape of this test:
- There is no login, no account, no session, no cookie, and no personal data. Anyone can use the tool without signing in.
- There is only one server route, which is POST /api/decode. There are no server actions in the src folder.
- The normal request never reads the database. A build step copies the framework data into a set of static files, and the website serves those files. The database is only used during the build, by a secret server key.
- Row Level Security is turned on for both database tables, and no rule lets the public key read them. So the browser cannot read anything from the database. This is written in migration 0001 and still needs to be checked in the live project.
- There is one outbound call, from the server to OpenRouter, which runs the AI step. It is locked to a United States provider, it has no backup provider, and it tells the provider not to keep the data. The AI step only adds to the keyword result, and its answers are checked against the framework. The step is optional, and it fails safe if it cannot run.
- Some defenses are already in the code and still need to be checked. These include a rate limit for each user, an input check called validateDecodeInput, plain error messages with server side logging, basic security headers, and a build gate that keeps server secrets out of the browser code. One known gap is that the Content Security Policy header is not added yet. That is ticket T13.
Template