Skip to content
XSS Disclosed report Beginner

Reflective Xss Vulnerability

A reflected cross-site scripting flaw existed on the site's definition page, where the search term was placed inside a script block without proper escaping. An attacker could break out of the script tag and inject their own HTML, causing script to run in a victim's browser.

alyssa_herrera Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 7 hours
  • Disclosed after 42 days

The is located in here http://www.urbandictionary.com/define.php?term= in the snippet of code from your site

<script> //<![CDATA[ (function() { window.Page = {}; Page.globals = { "sfg_flag": true, "rails_env": "production", "locale": "en-US", "api_path": "http://api.urbandictionary.com/v0", "api_key": "ab71d33b15d36506acf1e379b0ed07ee", "dfp_test": null, "normalized": "lol" You can escape by closing it with </script> effectively breaking out and allowing you to add your own html code to the site

Proof of concept link: http://www.urbandictionary.com/define.php?term=Lol%3C/script%3E%3Csvg%20onload=confirm%28document.domain%29%3E

Attachments

Urbandictionary.com_Reflective_XSS.mp4 From the original on HackerOne
Screenshot_2015-08-05_03-15-10.png
Screenshot_2015-08-05_03-15-10.png

The original report as published on HackerOne, by alyssa_herrera. 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 search term was inserted into an inline script block without escaping, so a closing script tag could break out of the script context.

Impact

An attacker could run script in a victim's browser on the site's domain, though the report only demonstrates a confirmation dialog.

What the attacker needed

Victim clicks a crafted link

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.

A web page sometimes puts what you typed into the page's code. Here the site put the search term inside a script block without cleaning it. By typing a closing script tag and some extra markup, a person could make the page run their own code, which is called cross-site scripting.

What is XSS?

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

More by alyssa_herrera

View all

28 more disclosed reports, best first.

More from Urban Dictionary

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.