Multiple Open redirect in sissbruecker/linkding
Valid
Reported on
Mar 19th 2022
Description
There exist multiple open redirect in the get parameter return_url . I found it in bookmarks/<int:bookmark_id>/edit , bookmarks/<int:bookmark_id>/remove, bookmarks/<int:bookmark_id>/archive, bookmarks/<int:bookmark_id>/unarchive, bookmarks/bulkedit
Proof of Concept
1. Login in the demo instance https://demo.linkding.link/
2. Go to https://demo.linkding.link/bookmarks/3/remove?return_url=https://google.com
3. You will be redirected to google.com
Impact
Open Redirect
We are processing your report and will contact the
sissbruecker/linkding
team within 24 hours.
2 years ago
We created a
GitHub Issue
asking the maintainers to create a
SECURITY.md
2 years ago
Thanks for reporting this @noobexploiterhuntrdev. Given the self-hosting scenario I don't this this is super critical, but can be fixed all the same.
Thinking about possible solutions here, how about checking that the redirect URL starts with a slash (/
), and if not then redirect to a default route?
We have contacted a member of the
sissbruecker/linkding
team and are waiting to hear back
2 years ago
The fix bounty has been dropped
This vulnerability will not receive a CVE
bookmarks.py#L153
has been validated
bookmarks.py#L162
has been validated
to join this conversation