Module 12 · Web Penetration Testing · Lesson 36 of 75
APIs, JWTs, business logic and web findings
Test APIs for authorisation gaps and excess data, check JWT handling, look for business-logic flaws, and rate and write up web findings.
In this lesson · about 40 minutes
- Test APIs for broken object and function authorisation
- Check common JWT weaknesses
- Recognise business-logic flaws and rate web findings
API testing
- Find the documentation:
/swagger.json,/openapi.json,/api-docs, GraphQL introspection. - For every endpoint, test with: no token, another user's token, a low-privilege token. Swap IDs (BOLA/IDOR). Call admin functions as a user (BFLA).
- Look for excessive data exposure: the API returns password hashes, internal flags or other users' emails that the screen never shows.
- Try mass assignment: add fields like
"isAdmin":trueor"price":0. - Check rate limits on expensive or sensitive endpoints (login, OTP, search, export).
- Older versions (
/api/v1/next to/api/v2/) often lack newer checks.
JWT checks
- Decode it (jwt.io or
jwt_tool); note the algorithm, expiry (exp) and claims. - Does the server accept a token with the signature removed or
"alg":"none"? - Is it signed with a weak HMAC secret that can be cracked offline (hashcat mode 16500)?
- Algorithm confusion: an RS256 token re-signed as HS256 using the public key.
- Is the token still valid after logout or password change?
Business-logic flaws
- Negative or huge quantities, applying a discount code many times, skipping the payment step by going straight to the confirmation URL.
- Race conditions: sending the same "redeem gift card" request twenty times at once to spend it twenty times.
- Changing the order of steps in a multi-step flow (address change after fraud checks).
Rating and writing web findings
Use CVSS (Module 13) for a base score, then adjust the narrative for business context: an IDOR on order history is High; the same IDOR exposing medical records may be Critical. Each finding includes the exact request and response (from Burp), the affected endpoint and parameter, the WSTG reference, and a specific fix.
Performance-based question (PBQ)
Performance task: rate the web findings
Your test of an online pharmacy produced these findings. Assign each a severity.
Choose a severity for each finding.
- Unauthenticated SQL injection in the login form exposing all patient records
- IDOR: logged-in users can view any other user's prescription by changing an ID
- Stored XSS in the customer review field, shown only on the public product page
- No rate limit on the login endpoint (MFA enabled)
- Server header reveals 'nginx/1.24.0'
- Session cookie missing the SameSite flag; CSRF tokens are present on all forms
Flashcards
Module 12 flashcards
0 of 10 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Module 12 checkpoint
8 questions, 10 minutes.
- 8 questions · 10 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.