Skip to content
XSS Disclosed report Beginner

content spoofing

The login failure page reflected the message parameter from the URL into the error text without sanitising it. An attacker could craft a link that made the page display arbitrary text of their choosing, which could be used to mislead a victim.

Ashish Kunwar Follow

Originally disclosed on HackerOne

  • Disclosed after 8 months
  1. go to 'Sign in to Legal Robot Ideas Portal' this link 'https://legalrobot.ideas.aha.io/portal_session/new'

2.and enters invalid login credential , the user will the redirected to this link: 'https://legalrobot.ideas.aha.io/auth/failure?message=invalid_credentials&strategy=password_portal_user&email=<email address>'

#note : view 1.png file in the attachment.

3.now remove 'password_portal_user'from the redirected link.

#note: view 2.png file in the attachment.

4.now remove 'invalid_credentials' from the redirected link

#note:view 3.png file in the attachment.

5.also remove email address showing in the url :'https://legalrobot.ideas.aha.io/auth/failure?message=invalid_credentials&strategy=password_portal_user&email=<email address>'

6.after all the changes ur will look like this: 'https://legalrobot.ideas.aha.io/auth/failure?message=&strategy=r&email='

7.now type 'you are Hacked!' without quotes and now ur will look like this: 'https://legalrobot.ideas.aha.io/auth/failure?message=you are Hacked!&strategy=r&email='

  1. and you will the error massage content is changed from 'Login failed. If you are an Aha! User log in to Aha! first.' to 'Single sign on failure:you are Hacked!' .

#now view 4.png file in the attachment

thankyou!

Attachments

1.png
1.png From the original on HackerOne
2.png
2.png
3.png
3.png
4.png
4.png

The original report as published on HackerOne, by d0rkerdevil. 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 reflected the message query parameter into the error page without encoding or validating it.

Impact

An attacker could make the trusted site display arbitrary text in its error message, which could be used to mislead or phish a victim; the text does not show script execution.

What the attacker needed

Victim opens a crafted link

How it was found

  1. Open the portal sign-in page.
  2. Enter invalid login credentials and submit.
  3. Observe the redirect to the auth failure URL containing message, strategy and email parameters.
  4. Remove the strategy and message values and the email address from the URL.
  5. Replace the message value with arbitrary text and load the URL.
  6. See the error message text replaced by the injected text.

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 you fail to log in, the site shows an error message. This site took part of the web address and put it straight into that message. By editing the address, someone could make the page say anything they wanted, which could trick a person into trusting fake text on a real site.

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 Ashish Kunwar

View all

4 more disclosed reports, best first.

More from Legal Robot

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.