Online IDE's leak code snippets
Developers at ZOHO left code snippets containing database credentials and SQL queries, as well as a list of university email addresses, on the public online IDE repl.it. An attacker could find these via a Google search and use the credentials to access systems or the emails for phishing.
Published on tutorgeeks.blogspot.com
The original lives on tutorgeeks.blogspot.com
We do not hold its text, 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 developers used a public online IDE to test code containing sensitive data, and the snippets were indexed by search engines.
Impact
An attacker could obtain database credentials and a list of email addresses, potentially leading to unauthorised access or phishing, though the text does not confirm any exploitation.
What the attacker needed
Publicly accessible repl.it snippets; search engine indexing; no account needed
The fix
The content was removed from the website after the report, and the author recommends training developers not to use online IDEs for testing code snippets.
How it was found
- Search Google for repl.it pages containing the company name.
- Open the search results to find code snippets with credentials and SQL queries.
- Open another result to find a list of university email addresses.
- Report the findings to the company's bug bounty program.
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.
An online IDE is a website where you can write and run code without installing anything. Some developers used one to test code and left it public, so anyone could find it with a search engine. The leaked code included passwords for a database and a list of email addresses, which could let someone break in or send phishing emails.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.