Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. admidio/admidio
  4. ›
  5. CVE-2024-37906

CVE-2024-37906: Admidio has Blind SQL Injection in ecard_send.php

July 29, 2024

Description:

An SQL Injection has been identified in the /adm_program/modules/ecards/ecard_send.php source file of the Admidio Application. The SQL Injection results in a compromise of the application’s database. The value of ecard_recipients POST parameter is being directly concatenated with the SQL query in the source code causing the SQL Injection.

The SQL Injection can be exploited by a member user, using blind condition-based, time-based, and Out of band interaction SQL Injection payloads. I successfully exploited SQL Injections by causing Time Delays. Advancing the payload, I was able to exfiltrate data from the database based on trial and error conditions and step-wise enumerating the characters of the database name. This was done as a POC of SQL Injection. An attacker could simply drop the database by providing a single payload, steal data, and potentially update the database according to their will.

Impact:

SQL injection (SQLi) vulnerabilities can have serious consequences for the security of a web application and its underlying database. Attackers can use SQLi to access sensitive data, and modify, delete, or add data to the database. SQLi can also be potentially used to perform RCE.

Remediation:

Use parameterized queries or prepared statements instead of concatenating user input directly into SQL queries. Parameterized queries ensure that user input is treated as data and not executable queries. OR Sanitize the input before including it in the SQL Query.

Steps to Reproduce:

  • Intercept the POST request to /adm_program/modules/ecards/ecard_send.php, which is used to send photo as greeting card.
  • Change the value of ecard_recipients%5B%5D POST parameter to 2%2bsleep(10).
  • Sending the request will cause a time delay.

Proof Of Concept:

Click to open external image
Figure 1: Code Vulnerable to SQL Injection

Click to open external image
Figure 2: Code Vulnerable to SQL Injection

Click to open external image
Figure 3: SQLi to trigger time delay

Click to open external image
Figure 4: Data Exfiltration via Condition-based Time Delays

References

  • github.com/Admidio/admidio
  • github.com/Admidio/admidio/commit/3ff02b0c64a6911ab3e81cd61077f392c0b25248
  • github.com/Admidio/admidio/security/advisories/GHSA-69wx-xc6j-28v3
  • github.com/advisories/GHSA-69wx-xc6j-28v3
  • nvd.nist.gov/vuln/detail/CVE-2024-37906

Code Behaviors & Features

Detect and mitigate CVE-2024-37906 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.3.9

Fixed versions

  • 4.3.9

Solution

Upgrade to version 4.3.9 or above.

Impact 9.9 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/admidio/admidio/CVE-2024-37906.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.