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.
(�/�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�ϙ…
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
- Log in to Yammer and go to the client applications page.
- Create an app and set the redirect URI to a javascript: URI.
- Open the app in Chrome or Firefox so the server returns a 200 response containing the URI.
- 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.