Skip to content
RCE Disclosed report Beginner

HTML injection in review content

A review body field accepted raw HTML, so a link element was rendered on the product page instead of being shown as text. An attacker could insert HTML into the page through a review.

0xteles Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 13 months

Summary by the researcher

a html injection on review parameter

The report

Hi Judge Security Team,

I found a HTML Injection in review parameter at the https://judgeme-pentest.myshopify.com/products/pentest and at the judge.me

###Steps

  1. Go to https://judgeme-pentest.myshopify.com/products/pentest
  2. Click on "Write Review"
  3. fill in the fields normally.
poc1.png
poc1.png From the original on HackerOne
  1. Now, go to your profile review in the judge.me
  2. Edit your Review
  3. In Review body, enter this payload: <a href=https://google.com/>CLICK HERE</a>
  4. Save and go to https://judgeme-pentest.myshopify.com/products/pentest
poc2.png
poc2.png From the original on HackerOne
  1. Boyaah.
poc3.png
poc3.png From the original on HackerOne

Impact

the attacker can insert HTML codes on the page

The original report as published on HackerOne, by 0xteles. 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 review body was rendered without encoding the HTML characters, so markup typed by the user was interpreted by the browser.

Impact

An attacker could insert HTML, such as links, into the page shown to other visitors; the report does not show script execution.

What the attacker needed

A user account able to post a review; victim views the product page

How it was found

  1. Open the product page on the test store.
  2. Click the button to write a review.
  3. Fill in the review fields normally.
  4. Open your own review in the profile area and choose to edit it.
  5. Put a link tag in the review body and save.
  6. Return to the product page and the link is rendered.

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 shows text that users typed, it should treat that text as plain text, not as instructions for the browser. Here the review field was treated as instructions, so a typed link tag became a real clickable link on the page. That lets someone put their own content, such as links, onto a page other people view.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Judge.me

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.