Found and changed on codingbench.studyportacademy.com
1 scan
codingbench.studyportacademy.com has been scanned once; that scan started this record. Then the findings of the latest scan, each with what to do, and the date each fact was first recorded. The reports themselves are under Scan history.
scan of codingbench.studyportacademy.com/ · first scan · 2 findingsReport of , 09:23 UTC
The certificate is issued by Google Trust Services, valid until , TLS 1.3
Address
IPs 216.24.57.16,216.24.57.18 belong to AS397273 Render, behind Render
Protection
Traffic passes through Render's edge
Name servers of studyportacademy.com
NS hosted by Cloudflare (nolan.ns.cloudflare.com,piper.ns.cloudflare.com), no CAA record, DNSSEC not signed
Transport
Served over h2 (h3advertised), first byte in 192 ms, 500 KB in total, gzip compressed, cache DYNAMIC, server cloudflare
Endpoints, routes and files on codingbench.studyportacademy.com
23 on this host: 15 endpoints, 6 routes, 2 files · 1 endpoint on another host
23 endpoints, routes and files have been found on codingbench.studyportacademy.com. 15 are endpoints (7 named in its scripts, 8 seen at run time), 6 are routes named in its scripts and 2 are files that answered.
23 paths · what each is, the icon copies the full URLscroll for all
/tracks/ · seen at run time
/practice/ · seen at run time
/projects/ · seen at run time
/debug/ · seen at run time
/glossary/ · seen at run time
/challenges/ · seen at run time
/classroom/ · seen at run time
/auth/ · seen at run time
/api/broadcast · named in its scripts
/notes/:id · named in its scripts
/orders/42 · named in its scripts
/tracks/node/backend-meets-ai/rate-limiting-and-cost-control-for-ai-endpoints · named in its scripts
/tracks/node/mongodb/crud-operations · named in its scripts
/tracks/node/rest-api/headers-status-codes-and-pagination · named in its scripts
/v1/chat · named in its scripts
/ · route named in 1388-1f655fdb6145e2ae.js
/_next/image · route named in 1742-cfd12663ca084899.js
Values in the scripts of codingbench.studyportacademy.com
151 values
151 values are written into the scripts of codingbench.studyportacademy.com.
151 values in 2 scripts and objectsscroll for all
/_next/static/chunks/2117-892fcd3748375f5f.js1
Name
Value
next.version
14.2.35
/_next/static/chunks/2441-36dcad27bda4a398.js150
Name
Value
score
4
savedVolume
0
total
0
count
1
count
0
prices
10, 20, 30
jar
Every verifier must hold the same secret that signs tokens, so one leak mints tokens everywhere, HMAC cannot expire, Any script on the page can read it, HttpOnly cookies cannot be sent, verify on login, name an HttpOnly Secure SameSite coocut
—
choice.workedExplanation
Managed auth services take password storage, session cookies, and social login. You still configure redirects, decide authorization, and keep a plan for vendor outage. Self-hosting keeps those secrets in your database and your on-callrotacut
—
choice.analogy
A managed login stores the passwords. It does not know which note Ada may open.
choice.left
caller
choice.middle
check
choice.right
allow or refuse
choice.note
Each Run is a new process.
choice.left
secret
choice.middle
store
choice.right
verify
choice.note
Store a verifier, not the secret.
choice.left
request
choice.middle
middleware
choice.right
handler
choice.note
Auth runs before the route body.
choice.animation
concept
choice.text
Assuming a managed login also checked object ownership leaves every BOLA bug in place. The vendor authenticated Ada. Your handler still has to compare owners.
choice.text
Self-hosting a password database without a tested reset and breach plan means you own the incident and the hash migration.
choice.title
Keep product rules on your side
choice.instruction
writesYourRules is true, which claims the vendor decides authorization. Set it back to false. The print should say the vendor does not write your rules.
choice.check
output
choice.question
What does a managed auth service typically take off your plate?
choice.answer
1
choice.explanation
Those are the parts that are easy to implement wrong and common across products.
choice.question
What do you still own with a vendor?
choice.explanation
The product rules are yours. A wrong redirect is your bug even when they store the password.
choice.slug
authorization-models
choice.title
Authorization models
choice.tier
intermediate
choice.order
10
choice.trackSlug
authentication
choice.phaseSlug
authorization
choice.minutes
18
choice.hook
RBAC asks for the role. ABAC asks about this user and this resource. Scopes ask what the token was issued to do.
choice.description
Three ways to decide a yes. The inputs differ, and so do the bugs.
choice.conceptSummary
RBAC checks a role against an action. ABAC checks attributes of the user and the resource together. Scope checks look at what the token itself was allowed to do. A reader role is not a write scope.
choice.tryIt
Predict the result of the example, then press Run and compare it with what you expected.
vendor.storesPasswords
true
vendor.rotatesKeys
true
matrix.workedExplanation
RBAC checks a role against an action. ABAC checks attributes of the user and the resource together. Scope checks look at what the token itself was allowed to do. A reader role is not a write scope.
matrix.analogy
RBAC asks for the role. ABAC asks about this user and this resource. Scopes ask what the token was issued to do.
matrix.left
caller
matrix.middle
check
matrix.right
allow or refuse
matrix.note
Each Run is a new process.
matrix.left
secret
matrix.middle
store
matrix.right
verify
matrix.note
Store a verifier, not the secret.
matrix.left
request
matrix.middle
middleware
matrix.right
handler
matrix.note
Auth runs before the route body.
matrix.animation
concept
matrix.text
Giving every logged-in user the editor role makes the matrix look filled in while every account can write.
matrix.text
A token scope of notes:read does not become notes:write because the user's role is editor. The token is a narrower grant.
matrix.title
Use the role matrix
matrix.instruction
rbac currently returns true for every known role, so a reader can write. Check the action against that role's list.
matrix.check
output
matrix.question
What does RBAC look at?
matrix.answer
1
matrix.explanation
The matrix is role to actions.
matrix.question
What is a scope?
matrix.explanation
The token lists notes:read.notes:write is a different grant.
matrix.slug
bola-and-broken-authorization
matrix.title
BOLA and broken authorization
matrix.tier
advanced
matrix.order
11
matrix.trackSlug
authentication
matrix.phaseSlug
authorization
matrix.minutes
18
matrix.hook
A valid login plus an id is not proof that this caller owns that id.
matrix.description
The broken notes route checks that someone is logged in, then returns whatever id was asked for. The fix compares the owner.
matrix.conceptSummary
Broken object level authorization is an endpoint that authenticates the caller and then returns the record for the id in the path. The fix loads the record and returns 403 when note.owner is not the caller.
matrix.clearance
2
matrix.tryIt
Predict the result of the example, then press Run and compare it with what you expected.
matrix.beyondJS
The same check shows up in other stacks. The library names change. The job does not.
matrix.id
idea
matrix.title
The idea
matrix.id
states
matrix.title
What changes
matrix.id
command
matrix.title
The command
matrix.id
mistake
matrix.title
The mistake
matrix.id
check
matrix.title
Check the result
matrix.workedExplanation
Broken object level authorization is an endpoint that authenticates the caller and then returns the record for the id in the path. The fix loads the record and returns 403 when note.owner is not the caller.
matrix.analogy
A valid login plus an id is not proof that this caller owns that id.
matrix.text
Checking that req.query.user is a known account, then returning notes[req.params.id], lets Ada read Bea's note by changing the id.
matrix.debugSlug
bola-missing-owner-check
matrix.text
Returning 404 for someone else's id tells the caller the id exists. 403 after a real lookup is the refusal. Do not include the note in that body.
matrix.title
Compare the owner
notes
It makes the match succeed for every note, It sets an HttpOnly cookie, It is the cloud metadata address the server can reach and the browser should not ask it to fetch, It is a JWT header, XSS, and cookie security, and a matching token covcut
—
sessions.workedExplanation
Session fixation keeps a pre-set id across login, so the attacker who planted it is now authenticated. Login deletes that id and creates a new one. Promotion retires the member id. Logout deletes the admin id.
sessions.analogy
If login keeps the id the attacker chose, they already hold the session you just authenticated.
sessions.left
caller
sessions.middle
check
sessions.right
allow or refuse
sessions.note
Each Run is a new process.
sessions.left
secret
sessions.middle
store
sessions.right
verify
sessions.note
Store a verifier, not the secret.
sessions.left
request
sessions.middle
middleware
sessions.right
handler
sessions.note
Auth runs before the route body.
sessions.animation
concept
sessions.text
Calling the authenticated session by the id that existed before login lets anyone who set that cookie ride the new login.
sessions.text
Leaving the old session id valid after a role change means a stolen member cookie becomes an admin cookie when you only update a field.
sessions.title
Drop the planted session
sessions.instruction
login currently leaves attacker-sid in the map and adds a new row beside it. Delete attacker-sid before you create the authenticated id.
sessions.check
output
sessions.question
What should login do with the id the browser already has?
sessions.answer
1
sessions.explanation
The pre-login id is the attacker's id until you replace it.
sessions.question
What does logout have to delete?
fixed
4, 17, 0
fixed
4, 17, 21
map.workedExplanation
NoSQL includes document, key-value,column-family, and graph models, each purpose-built for specific access patterns.
map.analogy
Why 'NoSQL' is four completely different database engines masquerading under one label.
map.left
client
map.middle
query
map.right
database engine
map.note
Each Run is a fresh, disposable SQLite instance.
map.left
SQL statement
map.middle
query planner
map.right
execution plan
map.note
Indexes turn table scans into B-tree seeks.
map.left
mutation
map.middle
write-ahead log
map.right
data pages
map.note
ACID transactions guarantee durability across crashes.
map.animation
concept
map.text
Deploying a wide-column Cassandra cluster for a simple 10,000-user web application
map.text
Using Redis as a primary permanent database for complex relational entity reporting
map.title
Match workload to NoSQL shape
map.instruction
Update the function to return 'graph' for fraud_ring_edges and 'key-value' for http_session_cache.
map.js
function matchNoSqlShape(feature){\n // Return 'graph' for edge traversal, 'key-value' for O(1) session lookups\n return 'document';\n}\nconsole.log(matchNoSqlShape('fraud_ring_edges'));\nconsole.log(matchNoSqlShape('http_session_cache'cut
—
map.js
function matchNoSqlShape(feature){\n // Return 'graph' for edge traversal, 'key-value' for O(1) session lookups\n return feature === 'fraud_ring_edges'?'graph' :'key-value';\n}\nconsole.log(matchNoSqlShape('fraud_ring_edges'));\nconscut
—
map.check
output
map.question
Which NoSQL database shape is specifically engineered for traversing multi-hoprelationships between entities?
map.answer
0
Third parties and requests of codingbench.studyportacademy.com
1 third-partydomain · 44 requests · 3 named, not requested
Only tbbjtlvnnqfddnqvdgqr.supabase.co receives requests from the page. The page made 44 requests; 2 went to tbbjtlvnnqfddnqvdgqr.supabase.co and 42 stayed on first-party hosts. 3 domains are named in the page or its scripts without being requested.
Scripts and behaviour of codingbench.studyportacademy.com
16 scripts, all first-party · 19 events after load
All 16 scripts load from codingbench.studyportacademy.com/_next/static/chunks/. Their values are listed under Values in the scripts. They reference 1 open-source project: supabase.
Key listeners, other behaviour and script files of codingbench.studyportacademy.com
Key listeners
8 on document
Also seen
8 clipboard accesses · 1 history change · 1 focus or visibility watch · 1 storage write
Hosts built with Next.jswindow: nextjshtml: /_next/static/script: https://codingbench.studyportacademy.com/_next/static/chunks/webpack-bbbf75536475dc35.js