Bookmarks: Delete all existing bookmarks of a user
A logical flaw in the bookmark import feature allows an HTML file containing a link with an empty URL to overwrite all existing bookmarks with a blank entry. An attacker could send a malicious HTML file to delete a user's bookmarks, or this could happen unintentionally.
- Triaged in under an hour
- Fixed in 8 days
- Disclosed after 11 days
A logical bug in the bookmark app makes it possible to delete all the existing bookmarks of the user.
Here are the steps to reproduce:
- Create couple of valid bookmarks
- Import a bookmark.html file that contains the line <a href="">Bookmark</a>. All the bookmarks of the user is replaced with blank url and Bookmark as description.
- This is potentially a risk where a user could be sent malicious html file to delete the bookmarks or this could even happen unintentionally if the user uploads a html with blank urls.
The logical flaw resides in the method /apps/bookmarks/controller/lib/bookmarks.php -> addBookmark where SQL query will select all the bookmarks and update them.
Attachments


Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the import logic in addBookmark selects all existing bookmarks and updates them without validating that the imported URL is non-empty, so a blank URL overwrites every record.
Impact
A user could be tricked into importing a malicious HTML file that deletes all their bookmarks, or the same loss could occur unintentionally when importing a file with blank URLs.
What the attacker needed
User imports an HTML bookmark file; file contains a link with an empty URL
How it was found
- Create a couple of valid bookmarks.
- Import a bookmark.html file that contains a link with an empty href.
- Observe that all bookmarks are replaced with a blank URL and the description 'Bookmark'.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Bookmarks are saved links. The app lets you import bookmarks from an HTML file. Because the import code does not check that each link has a real address, a file with an empty link causes every saved bookmark to be replaced by that empty entry, wiping the user's list.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.