• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

How to find Stored XSS errors simply

AnonyViet by AnonyViet
August 26, 2023
in Security
0

This is how I found a Stored XSS (“Cross Site Scripting”) vulnerability in a program bug bounty and I will guide you in detail on how I found this error.

Join the channel Telegram belong to AnonyViet ???? Link ????

How to find Stored XSS errors simply

What is XSS?

XSS or Cross Site Scripting is a vulnerability in which a user could use a provided input field to insert an XSS payload. This leaves the user able to execute javascript on the site vulnerable, which can become very dangerous.

Here is an example of the XSS payload:

"><img src=x onload=alert(document.cookie)>

In the above example, we break out of the code structure with double quotes and a greater than sign at the beginning. Then we have full ability to execute our javascript since we have gone beyond the input field. For this example, we inserted an image with a random source of x and told the page to execute a warning containing the user’s cookie when the image was loaded.

Attackers will primarily use this method to steal other users’ cookies, thus allowing them to perform actions as if they were that user. They can also be used in many other types of attacks to affect companies or users.

Detect

For the privacy of the company, I will not disclose the name of the bug bounty program I am testing, but I will provide details on the path I took to find this vulnerability, this relatively easy in this case.

I started by scouring the target site and looking for potentially hacked input fields. While doing this, I found a function where you can upload images to post on your account page. This makes me think of a recent XSS bug report through image file content. But it failed.

I continue to experiment with the upload function and other inputs in the web application. While doing this, I looked up at the top menu of the input form and one thing that immediately caught my eye was a button that looked like <>. It usually means that you can edit the code used to show up in your post, I didn’t hesitate to open it up and see the code used for the photo I uploaded earlier. This shows that it is just plain html code consisting of an “img src=” as shown below.

How to find a simple Stored XSS error 6

I immediately knew what payload I wanted to test = “alert (1)”. We will have to put this command after the URL value and save it with the newly added payload. Below you will see the final code that looks like this.

How to find a simple Stored XSS error 7

These payloads are processed with the input and reflected into the HTML of the page. Although when I look at the payload, I can see it has been added to the “data-sanitized” value. Here is the page code:

How to find a simple Stored XSS error 8

When the page reloads, the JavaScript code is executed and a warning is displayed at the top of the screen, so I found the Stored XSS error.

How to find a simple Stored XSS error 9

Javascript will execute every time the page is opened, confirming that this is a Stored XSS error in the image code editor function.

Conclude

This has taught me how important it is to dig deep into each and every function of an app and not give up prematurely. If I had given up after the XSS failed to upload the image, I would never have been able to get around the image asset restrictions to find this vulnerability. This is a reason for you to keep digging into the app if you have a feeling that it might be buggy.

Rate this post

Tags: errorsFindsimplystoredXSS
Previous Post

How to Find Vulnerable Vulnerabilities Using Google Dorks

Next Post

Best Questions for ChatGPT, ask!

AnonyViet

AnonyViet

Related Posts

How to use hackers use Splitfus to execute PowerShell malicious code
Security

How to use hackers use Splitfus to execute PowerShell malicious code

July 20, 2025
How to implement Shellcode Injection attack technique with Autoit
Security

How to implement Shellcode Injection attack technique with Autoit

March 14, 2025
How to exploit the holy hole of Hijacking on Windows
Security

How to exploit the holy hole of Hijacking on Windows

March 8, 2025
Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery
Security

Hamamal: Shellcode execution technique from afar to overcome Antivirus's discovery

February 10, 2025
Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile
Security

Snov.io Email Finder: Search emails with only company name/domain name/LinkedIn profile

December 14, 2024
Capsolver: Automatic solution solution for business
Security

Capsolver: Automatic solution solution for business

December 12, 2024
Next Post
Best Questions for ChatGPT, ask!

Best Questions for ChatGPT, ask!

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

Instructions for downloading Anh Hai’s Pho Shop game on Android

Instructions for downloading Anh Hai’s Pho Shop game on Android

November 8, 2025
Download training materials on Applying AI in teaching and learning in 2025

Download training materials on Applying AI in teaching and learning in 2025

November 8, 2025
How to pay health insurance on Momo online right at home

How to pay health insurance on Momo online right at home

November 8, 2025
How to create Flycam videos from photos to sell real estate

How to create Flycam videos from photos to sell real estate

November 8, 2025
Instructions for downloading Anh Hai’s Pho Shop game on Android

Instructions for downloading Anh Hai’s Pho Shop game on Android

November 8, 2025
Download training materials on Applying AI in teaching and learning in 2025

Download training materials on Applying AI in teaching and learning in 2025

November 8, 2025
How to pay health insurance on Momo online right at home

How to pay health insurance on Momo online right at home

November 8, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for downloading Anh Hai’s Pho Shop game on Android

Instructions for downloading Anh Hai’s Pho Shop game on Android

November 8, 2025
Download training materials on Applying AI in teaching and learning in 2025

Download training materials on Applying AI in teaching and learning in 2025

November 8, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

new88 trang chủ shbet trang chủ f168 trang chủ qq88 nhà cái 78win

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

new88 trang chủ shbet trang chủ f168 trang chủ qq88 nhà cái 78win

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply