Skip to content
XSS Write-up Beginner

XSS in dynamics 365

The 'Personal Document Template: Information' page in Dynamics 365 reflected the user's first and last name without proper encoding, allowing a stored cross-site scripting attack. An attacker could inject a JavaScript payload into these fields and direct a victim to the template information page, where the payload would execute in the victim's browser.

Tim Kent Follow

Published on medium.com

I recently tested an application hosted within Microsoft’s Dynamics 365 online services platform. During the test I discovered a Cross-Site Scripting (XSS) vulnerability.

Tim Kent, on medium.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

Root cause

The application failed to encode user-controlled input (the first and last name fields) when reflecting it on the 'Personal Document Template: Information' page.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser when the victim visits the template information page, potentially leading to actions such as session hijacking or data theft.

What the attacker needed

Access to modify Application User names; ability to create or update a template; victim visits the template information page

The fix

The vulnerability was fixed by Microsoft as of 18th October 2018.

How it was found

  1. Change the First Name and Last Name values for the 'Application User' to contain a JavaScript payload.
  2. Create or update a template that the attacker has access to.
  3. Direct a victim to the template information page.
  4. When the owner and last modified fields are loaded into the victim's browser, the payload fires.

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.

Cross-site scripting (XSS) is a flaw where a website shows user-supplied text without making it safe, so a malicious script can run in another person's browser. Here, the user's name was displayed on a page without being properly encoded, so an attacker could put a script in their name and it would run when someone viewed that page. This could let the attacker do things like steal session cookies or perform actions as the victim.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Microsoft

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.