Skip to content
XSS Write-up Intermediate

Curious case of Yammer XSS

Yammer allowed users to set a javascript: URI as an app's redirect URI. In Chrome and Firefox, the server returned a 200 response with that URI in the body instead of a 302 redirect, so the browser executed the JavaScript, enabling stored XSS that could steal cookies from admin users.

Unknown Follow

Published on betterhacker.com

(�/�X5���v�2�D��6.�j�QO:��("$��W|ό��mC��#1��8~ P�hB��x1� �@,=O'g� X���UG��%�<�)b]��i0���;| �p���A �&�#b�����I;σU���C�$�X���š#b}Q��9�9��/�ր#VS8b��\�˜���u]��M��J�lU�ˋ �>Pe3��t=$|v��A�� ��:� �$��y����kc�S� m�Y�lt�~T�s�Y���%�Y"��!�^���O�?�0�D&��ռfJ�ue�e��� �(�YZU�@�W�u�>�� ]�h3t�ϙ…

Unknown, on betterhacker.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

A non-admin user could run script in an admin's session and steal cookies, though Internet Explorer blocked it by performing a proper 302 redirect.

What the attacker needed

A Yammer account; victim uses Chrome or Firefox; victim opens the malicious app

The fix

Microsoft fixed the issue quickly, likely by validating the redirect URI scheme and ensuring a proper redirect response.

How it was found

  1. Log in to Yammer and go to the client applications page.
  2. Create an app and set the redirect URI to a javascript: URI.
  3. Open the app in Chrome or Firefox so the server returns a 200 response containing the URI.
  4. The browser loads the URI and the JavaScript executes.

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 write-up has not been written yet. The Original tab links to the source.

A redirect URI is a web address an app sends you to after you link it to your account. Normally browsers block redirects to javascript: links because they can run code. Here, the site returned the link in a normal page instead of a redirect, so the browser ran the code, letting an attacker run script in a victim's session.

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 Unknown

View all

32 more disclosed reports, best first.

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.