-
Notifications
You must be signed in to change notification settings - Fork 26
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
Claims Validation Error #62
Comments
This issue is still valid. |
- fixes issue xmidt-org#62 - update handling of paths by parsing it through the url package - added tests to validate claims and weird paths
Closing this issue, but will investigate and possibly open a new one in the bascule repo. |
This is still an issue in the instead of matching anywhere in the string, we need to be more judicious about how we are matching, to ensure the requester is authorized to access the endpoint. |
The first case is dealt with from using the URL EscapedPath() function, which doesn't include parameters: Still working on a fix for the second case and making our regex more picky. |
Going to see what more needs to be done for this issue, if anything. |
This issue has been fixed. |
If you pass in a nasty claim you can bypass the protection.
/api/v2/device/mac:112233445566/stat?ignore-me=/api/v2/device/mac:112233445566/hook
or
/api/v2/device/mac:112233445566/stat/../../../../../api/v2/device/mac:112233445566/hook
The text was updated successfully, but these errors were encountered: