Multiple xss in *.skype.com
A stored cross-site scripting flaw existed in the group name field on manager.skype.com, where the input was reflected unsanitised in an admin option. An attacker could execute arbitrary JavaScript in the context of a victim's browser, potentially leading to cookie theft, account takeover, or redirection to malicious sites.
Published on medium.com
{{media:0}}
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.
Context
Skype is one of the services Microsoft provides, and this write-up covers a cross-site scripting issue found on a Skype subdomain. The target was manager.skype.com. On a first visit the site presents a pop-up asking for the name of a group, and the group name is then used throughout the interface, including in a member administration option.
The report describes the finding as a self-stored XSS in this first part, with a follow-up promised on escalating it to other users.
Setup
No special tooling, accounts or versions are described. The work started with ordinary reconnaissance of Microsoft services, looking at what Skype exposes. The researcher tested Skype itself without finding anything, then after some usual recon found manager.skype.com.
Finding it
On the first visit to manager.skype.com, the site asks for a group name in a pop-up.

That input field is the entry point: the group name is user-controlled and is stored by the application.
Exploitation
Step 1: submit the payload as the group name
The researcher entered the following payload into the group name field and clicked continue:
"><svg/onload=confirm(document.domain)>
If the handler runs, a dialog box shows the domain of the page, which proves script execution in the site's origin.
After clicking continue, nothing appeared to happen.
Step 2: visit the profile section
The payload did not fire at the point of entry, but when the researcher visited the My profile section, the payload executed.

The report describes this as a self-stored XSS.
Step 3: locate the unsanitised reflection
To understand why the payload fired, the researcher opened the source code of the profile page. The group name itself had been sanitised, but the same value was reflected in an option labelled along the lines of "make this member admin of group_name". That reflection did not sanitise the input, and it was the cause of the XSS.

Root cause
The application sanitised the group name in some output contexts but reused the same stored value in another context, the member administration option, without sanitising it. Because the value is stored and rendered on later page views, the result is a stored XSS. The report does not describe the sanitisation routine or the exact markup of the vulnerable option, so the precise reason the existing defence failed there is not stated;
Impact
The researcher sent the report with a list of impacts to show what XSS can do beyond stealing a user's cookies:
- The stored XSS is reflected in many places, wherever the same input is passed without sanitising it. If an administrator of the website visits the profile for inspection, the administrator can be exploited.
- XSS attacks can be used to steal cookies and log in as the user.
- It can be used to control the browser by using a JavaScript shell, as explained by brutelogic at https://brutelogic.com.br/blog/using-xss-to-control-a-browser/.
- It can be used to redirect the user to malicious sites.
- There is a possibility of account takeover and user data leak.
As described in this part, the issue is self-stored: the payload fires in the context of the user who entered it. The researcher notes the website was secure from CSRF, which uses Skype verification tokens. A way to escalate the XSS to other users with zero user interaction is promised for a follow-up post and is not covered here.
Fix
The report does not state what Microsoft changed in response. Based on the root cause, the fix would be to sanitise or encode the group name consistently at every output location where it is rendered, including the member administration option, rather than only in the places where it was already handled.
Variants to test
- Submit the same
"><svg/onload=confirm(document.domain)>payload as a group or team name on other collaboration and group management products, then browse every page that displays the name, especially member and permission screens. A positive result is the dialog showing the site's domain on a page other than the one where the value was entered. - Look for secondary reflections of a stored name in labels such as "make this member admin of X", dropdown options, confirmation dialogs and administrative views. A positive result is the payload executing in any of those contexts while the main display of the name stays clean.
- Test whether the stored value is sanitised per output context by entering a benign marker and searching the page source for every place it appears. A positive result is finding the marker inside an attribute or script context that the main sanitisation did not cover.
- Check whether CSRF tokens protect the actions that would let an attacker plant the value in another user's context. A positive result is a state-changing request that succeeds without a valid token, which would widen the stored XSS beyond self-exploitation.
What happened, in plain words
Skype is one of the services Microsoft provides. This write-up is about a security flaw found on a Skype subdomain called manager.skype.com, which is a Skype subdomain. When you visit the site for the first time, it shows a pop-up asking you to type the name of a group. That name is then used all over the interface, including in an option for administering members.
The flaw is a cross-site scripting issue, usually shortened to XSS. In plain terms, XSS means that a website takes something a user typed and later shows it back on a page without cleaning it up properly, so the browser treats part of that text as a small program and runs it. The report calls this first finding a self-stored XSS: the value is saved by the site (stored) and it fires in the browser of the person who entered it (self). A follow-up post was promised about making it affect other users.
Setup
The report does not describe any special tools, accounts or software versions. The work started with ordinary reconnaissance of Microsoft services, meaning a look at what Skype exposes to the public. The researcher tested Skype itself without finding anything, then after some usual recon found manager.skype.com.
A subdomain is a name that sits in front of the main domain, like a department inside a large building: skype.com is the building, and manager.skype.com is one office in it. Different subdomains often run different applications, so a flaw in one office does not necessarily exist in another.
Finding it
On the first visit to manager.skype.com, the site asks for a group name in a pop-up.

That input field is the entry point. The group name is controlled by the user and saved by the application. Whenever a website takes text from a user and later displays it, there is a chance that the text is not cleaned before display, and that is exactly the kind of place where XSS lives.
Exploitation
Step 1: submit the payload as the group name
The researcher entered the following payload into the group name field and clicked continue:
"><svg/onload=confirm(document.domain)>
A payload here simply means the text you type on purpose to see whether the site treats it as code instead of as plain text. Going through it piece by piece:
">closes whatever quotation mark and angle bracket the page had opened around the group name. If the site had written the name inside an HTML attribute such asvalue="...", these two characters end that attribute early, so everything after them is no longer inside the attribute.<svgstarts an SVG element. SVG is a way to draw graphics in a web page, and like many HTML elements it can carry event handlers./onload=confirm(document.domain)attaches an event handler calledonloadto that element. An event handler is a piece of script that the browser runs when something happens;onloadmeans "when this element has finished loading".confirm(document.domain)is the script that runs.document.domainis the address of the page the browser is currently on, andconfirmshows a small dialog box with that text and an OK button.
So if the handler runs, a dialog box appears showing the domain of the page. That is the proof: only script running inside the site can read the site's own address and show it, so the dialog proves that the typed text was executed as code in the site's origin. Origin is the combination of scheme, host and port that the browser uses to decide which site a page belongs to.
After clicking continue, nothing appeared to happen. This is common: the place where you type a value is often not the place where it is displayed again.
Step 2: visit the profile section
The payload did not fire at the point of entry, but when the researcher visited the My profile section, the payload executed.

This makes the issue stored rather than reflected. A reflected XSS is echoed back in a response rather than saved by the application. A stored XSS is saved by the application and shown again later, on a different page, to whoever views that page. The fact that the dialog appeared on the profile page, not on the group creation pop-up, is what tells us the value was saved and rendered again elsewhere.
Step 3: locate the unsanitised reflection
To understand why the payload fired, the researcher opened the source code of the profile page. Source code here means the HTML the browser received, which you can view in any browser. The group name itself had been sanitised, but the same value was reflected in an option labelled along the lines of "make this member admin of group_name". That reflection did not sanitise the input, and it was the cause of the XSS.

Sanitising means cleaning text before putting it into a page, for example by turning the special characters <, > and " into harmless codes so the browser shows them as text instead of treating them as markup. A reflection is simply a place where the stored value is written into the page again. The lesson is that a value can be cleaned in one place and left raw in another: the main display of the group name was safe, but the member administration option was not.
Root cause
The application sanitised the group name in some output contexts but reused the same stored value in another context, the member administration option, without sanitising it. Because the value is stored and rendered on later page views, the result is a stored XSS. The report does not describe the sanitisation routine or the exact markup of the vulnerable option, so the precise reason the existing defence failed there is not stated. A likely explanation is that the sanitisation was applied per output location rather than to the stored value or at every sink. A sink is any place in the code where data is placed into the page; if one sink is missed, the cleaning done at the others does not help.
Impact
The researcher sent the report with a list of impacts to show what XSS can do beyond stealing a user's cookies:
- The stored XSS is reflected in many places, wherever the same input is passed without sanitising it. If an administrator of the website visits the profile for inspection, the administrator can be exploited.
- XSS attacks can be used to steal cookies and log in as the user.
- It can be used to control the browser by using a JavaScript shell, as explained by brutelogic at https://brutelogic.com.br/blog/using-xss-to-control-a-browser/.
- It can be used to redirect the user to malicious sites.
- There is a possibility of account takeover and user data leak.
A cookie is a small piece of data that a website asks the browser to keep and send back with later requests, and it is often what keeps you logged in. If script runs inside the site, it can read those cookies, which is why cookie theft is the classic XSS impact. A JavaScript shell is an interactive console inside the victim's browser, letting an attacker run commands there one after another. Account takeover means someone else ends up in control of your account.
As described in this part, the issue is self-stored: the payload fires in the context of the user who entered it. The researcher notes the website was secure from CSRF, which uses Skype verification tokens. CSRF, cross-site request forgery, is a different trick: it makes your browser send a request you did not intend, and a token is a random value the site checks to make sure the request really came from its own pages. A way to escalate the XSS to other users with zero user interaction is promised for a follow-up post and is not covered here.
Fix
Based on the root cause, the fix would be to sanitise or encode the group name consistently at every output location where it is rendered, including the member administration option, rather than only in the places where it was already handled.
Variants to test
- Submit the same
"><svg/onload=confirm(document.domain)>payload as a group or team name on other collaboration and group management products, then browse every page that displays the name, especially member and permission screens. A positive result is the dialog showing the site's domain on a page other than the one where the value was entered. - Look for secondary reflections of a stored name in labels such as "make this member admin of X", dropdown options, confirmation dialogs and administrative views. A positive result is the payload executing in any of those contexts while the main display of the name stays clean.
- Test whether the stored value is sanitised per output context by entering a benign marker and searching the page source for every place it appears. A positive result is finding the marker inside an attribute or script context that the main sanitisation did not cover.
- Check whether CSRF tokens protect the actions that would let an attacker plant the value in another user's context. A positive result is a state-changing request that succeeds without a valid token, which would widen the stored XSS beyond self-exploitation.
Glossary
- Stored XSS: XSS where the malicious value is saved by the site and shown again later, on other pages or to other visitors.
- Reflected XSS: XSS where the value is echoed back immediately in the response and is not saved.
- Self-stored XSS: stored XSS that fires only in the browser of the person who entered the value.
- Subdomain: a name in front of the main domain, such as
manager.skype.comunderskype.com, often running a separate application. - Reconnaissance: the early phase of looking around a target to see what it exposes.
- Payload: the text you deliberately type to test whether a site treats it as code.
- HTML attribute: a setting written inside a tag, such as
value="...", which holds data for that element. - SVG: a format for drawing graphics in a web page; SVG elements can carry event handlers.
- Event handler: a piece of script attached to an element that runs when something happens, such as
onload. document.domain: the address of the page the browser is currently showing, readable by script running in that page.confirm: a browser function that shows a small dialog box with a message and an OK button.- Origin: the scheme, host and port of a page, used by the browser to decide which site it belongs to.
- Sanitising: cleaning text before placing it in a page so special characters are shown as text, not treated as markup.
- Reflection: a place where a stored or supplied value is written into the page again.
- Sink: a place in the code where data is placed into the page; a missed sink can undo cleaning done elsewhere.
- Source code (page source): the HTML the browser received, viewable in any browser.
- Cookie: a small piece of data a site asks the browser to keep and send back with later requests, often used to stay logged in.
- JavaScript shell: an interactive console inside a victim's browser that lets an attacker run commands there.
- Account takeover: a situation where someone else gains control of a user's account.
- CSRF (cross-site request forgery): a trick that makes your browser send a request you did not intend.
- Token: a random value a site checks to confirm a request came from its own pages.