50€ Rabbit Hole — Plain as Cake Bugs
Hard-coded credentials were found in a public JavaScript file and used to create notification hooks on the site. The server accepted requests even with a wrong password, so the credentials gave access to internal notification systems.
Published on medium.com
Hey there! I’m Abu Hurayra, aka rootplinix — daytime hunter, nighttime writer, and early morning philosopher.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely credentials for an internal notification service were hard-coded in client-side JavaScript, and the server did not properly validate them.
Impact
The credentials could be used to create, delete and track notifications, and the server accepted even wrong credentials; the program rated the risk as low but noted it involved internal systems.
What the attacker needed
Access to the public site; none
How it was found
- Scrape the site's JavaScript files with a crawler.
- Beautify the large JavaScript file and search it manually.
- Find hard-coded credentials in the file.
- Send requests with those credentials to the notification hook endpoints.
- Change the username slightly and observe that the server still returns 200 OK.
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 write-up has not been written yet. The Original tab links to the source.
A website's JavaScript files are downloaded by every visitor's browser, so anything written inside them is public. Here, a username and password were written directly into such a file, and they controlled a notification feature on the server. The server also did not properly check the password, which made the exposure worse.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.