-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SECURITY_ISSUE : Http request context (response-headers) not getting popped up from the global flask context on request completion #463
Comments
I tried to follow the steps you mentioned, but I am unable to replicate the issue. Are the steps missing something? For example, did you modify the backend in any way? Also, i see that in the steps you mentioned, you are starting the backend on port 5000, however, the frontend is querying port 3001. Perhaps you could upload the generated demo code that has this issue on github and I can try that? Also, what version of python and
The command I ran to start the backend is:
Finally, for the above to work, i had to modify the package.json in the root of the demo app to be as follows:
(I essentially removed calling |
I tested the behaviour just by using backend code and running it on 5000 port . |
Why are you doing this? Cause without this, it works just fine. |
This issue has been fixed in the python SDK version >= 0.18.3. The issue was that |
Steps to reproduce :
This is a security concern as this is resulting in the following scenario :
User A logs in his device with his credentials , server responds with a token .
User B on a different device who goes to the Url to login gets logged with userA's credentials as the login-methods api responds with UserA's token (since the context from the 1st request was not popped up from the global stack) in the response headers hence the client logs User B without asking him to login .
Some speculations after checking library code and g-unicorn's functionality .
As removing (app.app_context().push()) is not the right way cuz it would be needed in use-cases where we need to access current-app context .
The text was updated successfully, but these errors were encountered: