Skip to content
XSS Disclosed report Beginner

XSS On meta tags in profile page

The GitLab profile page failed to sanitise quotation marks in user-supplied bio content, allowing an attacker to inject attributes into meta tags. This enabled redirection to a phishing site by injecting a refresh meta tag.

Dylan Katz Follow

Originally disclosed on HackerOne

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

The profile page (https://gitlab.com/u/<user>) does not properly sanitize quotation marks, allowing for injection of attributes into the meta tags. This allows for redirection to phishing sites and other various nefarious things. I've managed to get my profile page to redirect to Bing by setting my bio to 0;url=http://www.bing.com" http-equiv="refresh

The original report as published on HackerOne, by plazmaz. 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

Impact

An attacker could redirect visitors of a profile page to a phishing site or other malicious destination.

What the attacker needed

A GitLab account; victim visits the attacker's profile page

How it was found

  1. Set the profile bio to a value containing a double quote and a refresh meta tag directive.
  2. Visit the profile page to observe the redirect.

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 profile page shows information you enter, like a bio. The site put that bio into a hidden instruction (a meta tag) without cleaning it properly. By including a quote character, an attacker could add their own instruction that sends visitors to another website, such as a fake login page.

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 Dylan Katz

View all

2 more disclosed reports, best first.

More from GitLab

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.