Skip to content
XSS Write-up Advanced

(CVE-2023-1719) Bitrix24 Insecure Global Variable Extraction

Bitrix24 22.0.300 has a global variable extraction flaw in tools.php that lets unauthenticated attackers overwrite uninitialised variables. This allows enumeration of server attachments and execution of arbitrary JavaScript in a victim's browser, and possibly PHP code if the victim is an administrator.

starlabs.sg

Published on starlabs.sg

This report presents information on an insecure direct object reference (IDOR) vulnerability caused by global variable extraction in Bitrix24 that allows an unauthenticated attacker to read attachment files.

The author, on starlabs.sg

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 code extracts request parameters into global variables without proper initialisation, allowing attackers to overwrite uninitialised variables.

Impact

An unauthenticated attacker could enumerate attachments and execute arbitrary JavaScript in a victim's browser, and possibly execute PHP code if the victim is an administrator.

What the attacker needed

No authentication required; victim must visit a crafted link or page

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.

This is a bug where a program accidentally lets outside users set internal variables that should be private. Because those variables are not properly initialised, an attacker can change them to make the server reveal files or run harmful code in someone else's browser. No login is needed to start 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.