(CVE-2023-1717) Bitrix24 Cross-Site Scripting (XSS) via Client-side Prototype Pollution
A prototype pollution vulnerability in Bitrix24's left vertical menu script allows remote attackers to execute arbitrary JavaScript in a victim's browser, and possibly arbitrary PHP code on the server if the victim is an administrator.
starlabs.sg
Published on starlabs.sg
This report presents information on a client-side prototype pollution vulnerability present in the core.js JavaScript file that is included in almost every Bitrix24 page. On certain pages, prototype pollution gadgets are available, allowing an attacker to execute arbitrary JavaScript code on the browser of any victim…
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 left vertical menu script merges user-controlled input into an object without filtering special keys like __proto__, allowing pollution of Object.prototype and subsequent DOM-based XSS.
Impact
An attacker could execute arbitrary JavaScript in the victim's browser and possibly execute arbitrary PHP code on the server if the victim has administrator privilege.
What the attacker needed
Victim visits a crafted page or link; victim uses Bitrix24 22.0.300
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.
Prototype pollution is a bug where an attacker can add or change properties on a basic JavaScript object that many other objects inherit from. In this case, the polluted properties are used to build part of the page's menu, so the attacker's values end up as HTML and script that runs in the victim's browser. If the victim is an administrator, the attacker might also run code on the server.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.