13.28 Lab: Reflected XSS into a template literal with angle brackets, single, double quotes…

5 months ago 32
BOOK THIS SPACE FOR AD
ARTICLE AD

This lab contains a reflected cross-site scripting vulnerability in the search blog functionality. The reflection occurs inside a template string with angle brackets, single, and double quotes HTML encoded, and backticks escaped. To solve this lab, perform a cross-site scripting attack that calls the alert function inside the template string | Karthikeyan Nagaraj

Karthikeyan Nagaraj

This lab contains a reflected cross-site scripting vulnerability in the search blog functionality. The reflection occurs inside a template string with angle brackets, single, and double quotes HTML encoded, and backticks escaped. To solve this lab, perform a cross-site scripting attack that calls the alert function inside the template string.

Submit a random alphanumeric string in the search box, then use Burp Suite to intercept the search request and send it to Burp Repeater.Observe that the random string has been reflected inside a JavaScript template string.Replace your input with the following payload to execute JavaScript inside the template string: ${alert(1)}Verify the technique worked by right clicking, selecting “Copy URL”, and pasting the URL in the browser. When you load the page it should trigger an alert.

A YouTube Channel for Cybersecurity Lab’s Poc and Write-ups

Telegram Channel for Free Ethical Hacking Dumps

Thank you for Reading!

Happy Ethical Hacking ~

Author: Karthikeyan Nagaraj ~ Cyberw1ng

Read Entire Article