Skip to content
SQL injection Advisory Intermediate CVE-2019-5109

Forma LMS 2.2.1 ajax.adm_server.php dir parameter SQL injections

An authenticated SQL injection vulnerability exists in the `dir` parameter of the `/appCore/ajax.adm_server.php` endpoint in Forma LMS 2.2.1. An attacker could exploit this to exfiltrate database contents, including usernames and password hashes, and potentially access the underlying operating system.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

High 7.4 View original

Exploitable SQL injection vulnerabilities exists in the authenticated portion of Forma LMS 2.2.1. Specially crafted web requests can cause SQL injections.

Yuri Kramarz, on Cisco Talos

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the application fails to sanitise or parameterise the `dir` parameter before using it in an SQL query.

Impact

An attacker could exfiltrate the database, user credentials, and in certain configurations access the underlying operating system.

What the attacker needed

Authenticated user account

The fix

The vendor patched the vulnerability.

How it was found

  1. Authenticate to the application to obtain a session.
  2. Send a POST request to `/appCore/ajax.adm_server.php?r=alms/enrollrules/get` with a crafted `dir` parameter containing SQL injection.
  3. Observe the database response to extract information.

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 report has not been written yet. The Original tab links to the source.

SQL injection is a flaw where user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. Here, a logged-in user can send a crafted value in the 'dir' parameter to make the database return extra information, such as user credentials. This could lead to full database theft and, in some setups, control of the server.

What is SQL injection?

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

More by Yuri Kramarz

View all

57 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.