← Back to list

Lab: Reflected XSS into attribute with angle brackets HTML-encoded

Hello Friends,

Uzumaki Rem01x · 2024-01-25 07:10 · 0 claps · 1.7 min read
#ewptx #osee #osce3
Open on Medium ↗
Wiki topics: 🌐 · Web Development

Lab: Reflected XSS into attribute with angle brackets HTML-encoded

Hello Friends,

I’m Rem01x And I’m Currently Preparing For The eWPTX Exam So I Will Be Walking Through All PortSwigger Labs And Make Sure To Make Writeups For All Of Them.

Let’s Start Now.

Assume that we have this website.

Notice the search functionality.

Let’s Try to search for anything.

Okay I searched for Uchiha rem01x and it reflected on the page.

Let’s inspect the source code.

notice that my name reflected in the value of the input.

But What will happen if i entered “ before my name !?

now let’s inspect the source code.

Notice that the “ broke the syntax of the HTML tag.

that give us a space to break out the syntax and enter a code to the webpage.

now let’s enter a code.

"onmouseover="alert(1)

Now, search.

Great we got the pop out.

Alright Let’s Go We Did It And Solve The Lab.

Uchiha_Rem01x #Uchiha-Rem01x #1337


메타데이터
post_id
c5dc34e73daa
slug
lab-reflected-xss-into-attribute-with-angle-brackets-html-encoded-c5dc34e73daa
url
https://medium.com/@uchiha-rem01x/lab-reflected-xss-into-attribute-with-angle-brackets-html-encoded-c5dc34e73daa
canonical_url
https://medium.com/@uchiha-rem01x/lab-reflected-xss-into-attribute-with-angle-brackets-html-encoded-c5dc34e73daa
author_url
https://medium.com/@uchiha-rem01x
status
ok
fetched_at
2026-06-28 10:39:35