/api/auth/signout reflects injected script in response body #11228
Unanswered
abentley-castera
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to remediate a security vulnerability in my app picked up from a burp scanner report. My app is using KeyCloak as the authentication provider with NextAuth, and the scanner report is showing that injected scripts provided in the
callbackUrl
request field are being reflected back on the response bodyurl
field. For example, if I make the following call:I am seeing the injected script in the response body:
This seems like a security vulnerabiliy as any arbitrary script could be injected here and is returned back to the caller. What is the proper means to resolve this issue? Is there anything I can add in my app to prevent this from happening on a direct call to
/api/auth/signout
, or does something need to be remediated within the NextAuth libary?Beta Was this translation helpful? Give feedback.
All reactions