Skip to content
XSS Write-up Intermediate

Google, me and XSS :)

A stored cross-site scripting vulnerability existed in Google Apps Calendar's resource feature, where a resource name containing HTML was not properly sanitised. An attacker could inject script that executed when a victim viewed an appointment slot or shared calendar containing the malicious resource.

Sasi Follow

Published on sasi2103.blogspot.com

The original lives on sasi2103.blogspot.com

We do not hold its text, 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

Likely the resource name field was not sanitised when rendered in appointment slots, allowing HTML injection.

Impact

An attacker could execute arbitrary script in the context of a victim's calendar session, potentially leading to account compromise or data theft, and could share the malicious calendar with users outside their domain.

What the attacker needed

Google Apps for Domains account; Ability to create resources; Victim views appointment or shared calendar

How it was found

  1. Create a resource with a name containing HTML in the admin console.
  2. Set up an appointment slot using that resource in Google Apps Calendar.
  3. View the appointment to trigger the XSS.
  4. Share the calendar with an external email address to spread the attack.

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 when a website lets an attacker sneak in their own code, which then runs in other people's browsers. Here, a calendar feature that lets you name a meeting room did not clean up the name properly, so a crafted room name could run code when someone looked at an appointment. The attacker could then share that calendar with others to spread the attack.

What is XSS?

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

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.