• 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
Home Security

How to find Stored XSS errors simply

AnonyViet by AnonyViet
August 26, 2023
in Security
0
0
SHARES
Share on FacebookShare on Twitter

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

SQL Injection Payload List
Security

SQL Injection Payload List

September 9, 2023
Exploiting XSS with Javascript/JPEG Polyglot
Security

Exploiting XSS with Javascript/JPEG Polyglot

September 8, 2023
AnvRS – Reverse Shell Bypass Antivirus Tool
Security

AnvRS – Reverse Shell Bypass Antivirus Tool

August 29, 2023
How to Find Vulnerable Vulnerabilities Using Google Dorks
Security

How to Find Vulnerable Vulnerabilities Using Google Dorks

August 26, 2023
BigBountyRecon: Google Dork Spying Tool
Security

BigBountyRecon: Google Dork Spying Tool

August 12, 2023
Phishing method by attaching malicious files on Office 365
Security

Phishing method by attaching malicious files on Office 365

August 11, 2023
Next Post
Best Questions for ChatGPT, ask!

Best Questions for ChatGPT, ask!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent News

How to Comment on a smiley face with a long mouth on Facebook

How to Comment on a smiley face with a long mouth on Facebook

September 23, 2023
How to use StandBy mode of iPhone iOS 17

How to use StandBy mode of iPhone iOS 17

September 22, 2023

Use Aquarium on the browser to check if the computer configuration is strong

September 22, 2023
Download Panel TMV: Free photo editing panel for Photoshop

Download Panel TMV: Free photo editing panel for Photoshop

September 21, 2023
How to Comment on a smiley face with a long mouth on Facebook

How to Comment on a smiley face with a long mouth on Facebook

September 23, 2023
How to use StandBy mode of iPhone iOS 17

How to use StandBy mode of iPhone iOS 17

September 22, 2023

Use Aquarium on the browser to check if the computer configuration is strong

September 22, 2023
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

How to Comment on a smiley face with a long mouth on Facebook

How to Comment on a smiley face with a long mouth on Facebook

September 23, 2023
How to use StandBy mode of iPhone iOS 17

How to use StandBy mode of iPhone iOS 17

September 22, 2023
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.