Medium
Any website can read answers sent with the person's cookies
MCPS-CORS-001Why it mattersThe server repeats whatever Origin it gets and allows credentials. If sign-in uses cookies, any page a signed-in person opens can call the server as that person and read the answer.
How to fixAllow credentials only for a fixed list of origins, never for the Origin a request sends.
- Request
POST https://api.planner.day/api/mcp (initialize, Origin: https://probe.invalid)- Answer
401- What we saw
Access-Control-Allow-Origin: https://probe.invalid; Access-Control-Allow-Credentials: true
Seen in the server's answer
SpecFetch Standard, CORS protocol and credentials
Low
No Strict-Transport-Security header
MCPS-HDR-001Why it mattersWithout it, an attacker can keep a browser on plain HTTP on any later visit. HSTS makes the browser use HTTPS only.
How to fixSend Strict-Transport-Security: max-age=31536000 on every HTTPS response.
return new Response(body, { headers: { 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' } })app.use((req, res, next) => { res.setHeader('Strict-Transport-Security', 'max-age=31536000; includeSubDomains'); next() })- Request
POST https://api.planner.day/api/mcp (initialize)- Answer
401- What we saw
no Strict-Transport-Security
Seen in the server's answer
SpecRFC 6797 (HTTP Strict Transport Security)
Low
No X-Content-Type-Options: nosniff
MCPS-HDR-002Why it mattersA browser may guess a response's type and render JSON or text as HTML or script.
How to fixSend X-Content-Type-Options: nosniff on every response.
res.setHeader('X-Content-Type-Options', 'nosniff')- Request
POST https://api.planner.day/api/mcp (initialize)- Answer
401- What we saw
no X-Content-Type-Options: nosniff
Seen in the server's answer
SpecFetch Standard, X-Content-Type-Options
Low
Refresh tokens without an advertised revocation endpoint
MCPS-AUTH-012Why it mattersA long-lived refresh token that leaks keeps working until it expires.
How to fixPublish a revocation_endpoint (RFC 7009) and rotate refresh tokens.
- Request
GET https://api.planner.day/.well-known/oauth-authorization-server- What we saw
refresh_token granted; no revocation_endpoint
Seen in the server's answer
SpecRFC 7009 (Token Revocation); RFC 8414, Section 2 (revocation_endpoint)