Investigation On Javascript Code Detected In Requested Url
An attacker sent requests containing JavaScript code in the URL query parameter to a web server. The server responded with HTTP 302 redirects, so the attack was unsuccessful.
Now looking in to Log Management for what are the activity done by 112.85.42.13 so far,
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 server did not reflect the malicious input and instead redirected the request, preventing the script from executing.
Impact
The attack was unsuccessful because the server redirected the requests, so no code execution or data theft occurred.
What the attacker needed
Attacker can send requests to the server
How it was found
- The attacker sent a request with JavaScript code in the search query parameter.
- The server responded with HTTP 302 redirects for all malicious attempts.
- The analyst compared the 200 response for a normal request with the 302 response for the malicious request.
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.
Cross-site scripting (XSS) is when an attacker tries to insert harmful code into a website so that other people's browsers run it. Here, the attacker put JavaScript into a search link, but the server redirected the request instead of running the code, so nothing bad happened.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.