How i was able to get Appreciation from the organization of a website just by changing a sign..!!!
The website exposed source code when a tilde character was appended to a URL path, revealing SQL queries and other sensitive information. An attacker could read internal code and database queries by manipulating the URL.
Published on fardeen-ahmed.medium.com
Hi there, This write-up is for the beginners who are into the bug-bounties, and are searching for new-way of finding vulnerabilities. This was my approach, so let’s start.
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 the web server or application mishandled URLs ending with a tilde, treating them as requests for source files instead of normal pages.
Impact
The attacker could read source code and learn about SQL queries, which is a sensitive information disclosure.
What the attacker needed
None
How it was found
- Intercept the website request in Burp Suite and use spidering to find URLs.
- Notice a URL ending with a tilde, such as hello.txt~.
- Try replacing the extension with a tilde, like hello~.txt, and observe no change.
- Try changing hello.txt to hello~ and observe no change.
- Check technologies with Wappalyzer and see that index.html loads as index.html~ in page source.
- Remove index.html and request index~ to get source code disclosure.
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 sometimes shows its internal files by mistake when you add unusual characters to the address. Here, adding a tilde (~) to the end of a web address made the server reveal its source code, which is like showing the recipe instead of just the cake. This let the person see private database queries.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.