Skip to content
XSS Disclosed report Beginner

Html injection

The `show` parameter reflects unsanitised input into the HTML page, allowing an attacker to inject HTML elements. An attacker could craft a link that displays a malicious link to deceive users into visiting an attacker-controlled site.

ped_baq Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in 11 hours
  • Fixed in 8 days
  • Disclosed after 51 days

Issue Description

Hypertext Markup Language (HTML) injection is a technique used to take advantage of non-validated input to modify a web page presented by a web application to its users. Attackers take advantage of the fact that the content of a web page is often related to a previous interaction with users. When applications fail to validate user data, an attacker can send HTML-fomatted text to modify site content that gets presented to other users. A specifically crafted query can lead to inclusion in the web page of attacker-controlled HTML elements which change the way the application content gets exposed to the web.

Issue Identified

The consultant identified that the show parameter can reflect into the html page, the outline below demonstrates the steps taken to exploit and reproduce.

Risk Breakdown

  • Risk: Medium

  • Difficulty to Exploit: Medium

  • CVSS:3.1 Score: 5.4 (/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N)

Affected URLs

  • █████

Exploit Link

HTML
██████████

Steps to Reproduce

The following steps indicate a proof of concept outlined in three(2) steps to reproduce and execute the issue.

Step 1: Open the Exploit Link and you will see the special offer with malicious link as shown in the image below

Step 2: When the user clicks on the link, redirected to the attacker's site

References

  • [1] snyk
  • [2] OWASP

Impact

Fraud and deceiving site users

The original report as published on HackerOne, by ped_baq. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 fails to validate or encode user input in the `show` parameter before including it in the HTML page.

Impact

An attacker could deceive users and commit fraud by redirecting them to a malicious site.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the exploit link and observe the special offer with a malicious link.
  2. Click the link and get redirected to the attacker's site.

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.

When a website takes something you type or put in a link and puts it directly onto the page without cleaning it first, an attacker can add their own HTML code. Here, the `show` parameter is reflected, meaning whatever is in that parameter appears on the page. The attacker can make a fake link appear, and if a user clicks it, they are sent to the attacker's website.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Mars

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.