Medium
Password grant advertised
MCPS-AUTH-010Why it mattersThe password grant hands the person's password to the client. RFC 9700 says it must not be used.
How to fixRemove password from grant_types_supported.
- Request
GET https://auth.code4.space/realms/code4/.well-known/openid-configuration- What we saw
grant_types_supported: ["authorization_code","implicit","refresh_token","password","client_credentials","urn:openid:params:grant-type:ciba","urn:ietf:params:oauth:grant-type:device_code"]
Seen in the server's answer
SpecRFC 9700, Section 2.4 (Resource Owner Password Credentials Grant MUST NOT be used)
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://mcp.code4.space/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
PKCE plain method offered
MCPS-AUTH-008Why it mattersWith plain, the challenge equals the secret, so anyone who sees the request sees the secret.
How to fixOffer S256 only.
- Request
GET https://auth.code4.space/realms/code4/.well-known/openid-configuration- What we saw
code_challenge_methods_supported: ["plain","S256"]
Seen in the server's answer
SpecRFC 9700, Section 2.1.1 (PKCE: S256)
Low
Implicit flow advertised
MCPS-AUTH-009Why it mattersThe implicit flow puts the access token in the browser's address. RFC 9700 advises against it, and OAuth 2.1 drops it.
How to fixRemove token from response_types_supported and use the code flow with PKCE.
- Request
GET https://auth.code4.space/realms/code4/.well-known/openid-configuration- What we saw
response_types_supported: ["code","none","id_token","token","id_token token","code id_token","code token","code id_token token"]
Seen in the server's answer
SpecRFC 9700, Section 2.1.2 (Implicit Grant)