Skip to content
SQL injection Write-up Intermediate

Concrete5 <= 5.7.4 (Access.php) SQL Injection Vulnerability

The permission access code builds a SQL filter by joining access entity IDs into a query string without parameterisation. An attacker who can influence those IDs could inject SQL into the permission query.

karmainsecurity.com

Published on karmainsecurity.com

The vulnerable code is located in /concrete/src/Permission/Access/Access.php:

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 access entity IDs are concatenated directly into the SQL string rather than passed as bound parameters.

What the attacker needed

Ability to influence access entity IDs

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 database query is built by gluing pieces of text together instead of using safe placeholders. If a value that goes into that text comes from a user, the user can add their own database commands. The report shows the code but does not demonstrate an actual attack.

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.