Exposed endpoint /api/auth/_logs raise alert in OWASP scan #2562
-
Anyone have any idea what is the purpose of this endpoint and why is it raising alert in OWASP scan? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems like a false alarm, it doesn't really make sense: Lines 262 to 277 in cb844a2 https://next-auth.js.org/configuration/options#logger In short, that endpoint receives logs from the client and forwards them to your logging service, if you define one. From what I can understand, the endpoint would just crash, because the message in the body is not a valid JSON. Try sending the body in a post to that endpoint to test. |
Beta Was this translation helpful? Give feedback.
Seems like a false alarm, it doesn't really make sense:
next-auth/src/server/index.js
Lines 262 to 277 in cb844a2
https://next-auth.js.org/configuration/options#logger
In short, that endpoint receives logs from the client and forwards them to your logging service, if you define one.
From what I can understand, the endpoint would j…