Reflected XSS in `Telerik.ReportViewer.axd` with F5 BIG-IP ASM Bypass on `████`
A reflected cross-site scripting vulnerability was found in the Telerik.ReportViewer.axd endpoint, where the F5 BIG-IP ASM web application firewall failed to block a Safari-specific event handler and an obfuscated eval call. An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing session tokens or performing phishing.
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 47 days
- Disclosed after 8 months
Description:
A reflected cross-site scripting (XSS) vulnerability exists in the Telerik.ReportViewer.axd endpoint on the staging subdomain of ███. By fuzzing event handlers, i discovered that F5 BIG-IP Application Security Manager (ASM) blocks common handlers but fails to filter the onwebkitplaybacktargetavailabilitychanged attribute when used on an <audio> tag. This event only fires in Safari, so i leveraged BrowserStack to confirm execution in the latest Safari build (video proof captured). A secondary bypass uses a dynamically-constructed eval function to obfuscate the payload further.
WAF Evasion Analysis
- Signature Evasion: Obfuscated
evalcall and nonstandard event handler escape F5 ASM’s default regex signatures. - Lack of Behavioral Filtering: ASM does not simulate or inspect Safari-specific DOM events.
- Obfuscation Resilience: Dynamically composed function names bypass static filters.
Payload Explanation
-
Bypass via unsupported event handler: <audio onwebkitplaybacktargetavailabilitychanged="…"></audio> F5 ASM does not recognize or filter
onwebkitplaybacktargetavailabilitychanged, allowing the browser to execute the attribute value when the event fires. -
Obfuscated eval construction: {var{3:s,2:h,5:a,0:v,4:n,1:e}='earltv'}[self][0]v+a+e+s(origin)
The object literal maps indices to letters: {0:v,1:e,2:h,3:s,4:n,5:a} → “v e h s n a” Assembled: self[0]'v'+'a'+'e'+'s'(origin) → self'eval' This dynamic construction evades F5’s signature‐based detection.
References
Impact
Exploitation of this vulnerability could allow an attacker to:
- Steal session tokens or cookies
- Perform targeted phishing by injecting malicious scripts
- Hijack authenticated user workflows
- Undermine trust in the staging environment
System Host(s)
█████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
Vulnerable URL
█████%22{var{3:s,2:h,5:a,0:v,4:n,1:e}=%27earltv%27}[self][0][v%2ba%2be%2bs](e%2bs%2bv%2bh%2bn)(origin)
- Launch a Safari browser (i used BrowserStack to simulate the latest macOS Safari).
- Open a private/incognito window.
- Navigate to the URL above.
- Observe that the injected JavaScript executes (alert or console command), confirming a reflected XSS.
- Note that the F5 BIG-IP ASM WAF does not block or sanitize the payload.
Suggested Mitigation/Remediation Actions
- Input Validation & Encoding: Properly sanitize and HTML-encode all user-controlled input before reflecting it.
- Attribute Whitelisting: Restrict the set of allowed HTML attributes to a known safe list; disallow unknown or browser-specific events.
- Content Security Policy (CSP): Implement a strict CSP to block inline scripts and unauthorized eval usage.
- WAF Tuning:
- Add custom rules to detect and block dynamic string concatenations of
eval. - Include checks for Safari-only event attributes like
onwebkitplaybacktargetavailabilitychanged.
- Add custom rules to detect and block dynamic string concatenations of
- Browser-Aware Testing: Regularly test WAF coverage against browser-specific features and polyglot payloads.
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
Root cause
Likely the application reflects user-controlled input without proper encoding, and the F5 ASM WAF's signature-based filtering fails to recognise Safari-specific event handlers and dynamically constructed eval calls.
Impact
An attacker could steal session tokens or cookies, perform targeted phishing, hijack authenticated user workflows, and undermine trust in the staging environment; the exploit only works in Safari and bypasses the F5 ASM WAF.
What the attacker needed
Victim uses Safari browser; victim clicks a crafted link; F5 ASM WAF present but bypassable
The fix
The application should properly sanitize and HTML-encode all user-controlled input, restrict allowed HTML attributes to a safe list, implement a strict Content Security Policy, and tune the WAF to detect dynamic eval constructions and Safari-specific event attributes.
How it was found
- Launch a Safari browser (using BrowserStack to simulate the latest macOS Safari).
- Open a private/incognito window.
- Navigate to the provided URL containing the payload.
- Observe that the injected JavaScript executes, confirming reflected XSS.
- Note that the F5 BIG-IP ASM WAF does not block or sanitize the payload.
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 a flaw where a website shows user input without cleaning it, so an attacker can sneak in JavaScript code that runs in other people's browsers. Here, a security tool meant to block such attacks missed a special event that only works in Safari, letting the code run. This could let an attacker steal login cookies or trick users.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.