Skip to content
XSS Write-up Intermediate

CVE-2024–54139 (High)— iTop Ticketing.

A POST request parameter in iTop Ticketing contained a self-XSS, and the application also lacked CSRF protection, so an attacker could force a victim to submit the XSS payload and steal the victim's session cookie. With the stolen cookie, the attacker could take over the victim's account.

medium.com

Published on medium.com

สวัสดีค๊าบบบ ผมคิม Kyokito. ค๊าบบบ,, วันนี้ก็จะเขียนตัว PoC CVE ที่พบเจอและได้ Publish จากต้นทางเป็นที่เรียบร้อย ซึ่งก็ได้ Severity Score อยู่ที่ 7.9 ระดับ High ครับ เป็นเป้าหมายระดับ Enterprise แรกที่เจอช่องโหว่แล้วก็รุนแรงถึง High จากวิธีโจมตีที่ไม่น่าหลุด 55555.. อ่ะเรามาดูกันว่าเจอได้อย่างไร.…

歔欷と, 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

Likely the application reflected user input from the _table_id POST parameter without sanitisation and did not require a CSRF token for that request.

What the attacker needed

Victim is logged in to iTop; victim visits attacker-controlled page; attacker knows the target endpoint

How it was found

  1. Go to the 'Search For Emergency Change' dropdown section.
  2. Observe that a POST request contains a self-XSS in the _table_id parameter.
  3. Use Burp to build a CSRF proof of concept that submits the XSS payload.
  4. Replace the alert payload with a cookie-stealing payload.
  5. Deliver the CSRF page to the victim so their browser sends the POST request.
  6. Use the stolen cookie to take over the victim's account.

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.

Self-XSS is a script injection that only runs when you yourself paste or submit the malicious code, so on its own it is not very useful. CSRF is when a malicious website makes your browser send a request to another site where you are already logged in. By combining the two, the attacker makes the victim's browser send the XSS payload, which then runs and steals the victim's session cookie, the token that keeps them logged in.

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.