Skip to content
SQL injection Write-up Intermediate

Docebo <= 3.5.0.3 (doceboCore/lib/lib.regset.php) SQL Injection Vulnerability

The autoDetectRegion() function in Docebo [redacted] and earlier fails to sanitise the Accept-Language HTTP header before using it in a SQL query. A remote attacker can inject SQL commands through that header, and the text notes this can be leveraged to execute arbitrary PHP code using the INTO DUMPFILE command.

karmainsecurity.com

Published on karmainsecurity.com

SQL injection vulnerability in the autoDetectRegion() function in doceboCore/lib/lib.regset.php in Docebo 3.5.0.3 and earlier allows remote attackers to execute arbitrary SQL commands via the Accept-Language HTTP header. NOTE: this can be leveraged to execute arbitrary PHP code using the INTO DUMPFILE command.

The author, on karmainsecurity.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 Accept-Language header value is concatenated into a SQL query without parameterisation or validation.

Impact

A remote attacker could execute arbitrary SQL commands, and the text notes this can be leveraged to execute arbitrary PHP code using the INTO DUMPFILE command.

What the attacker needed

No authentication required; attacker can send a crafted Accept-Language header

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.

A SQL injection is when user input is placed into a database query without being cleaned, so the input can change the query's meaning. Here the input is the Accept-Language header, which a browser normally sends to say which language the user prefers. Because the application trusts that header, an attacker can send a crafted value and make the database run extra commands.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.