Forma LMS 2.2.1 /appLms/ajax.server.php filter_cat and filter_status parameters SQL injections
Two parameters in an authenticated endpoint of Forma LMS 2.2.1 were not sanitised before being placed into SQL queries, so a logged-in attacker could inject SQL through them. This could let the attacker read database contents such as usernames and password hashes, and in some setups reach the underlying operating system.
Originally disclosed on Cisco Talos
Exploitable SQL injection vulnerabilities exist in the authenticated portion of Forma LMS 2.2.1. Specially crafted web requests can cause SQL injections.
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 filter_cat and filter_status request parameters were concatenated into SQL queries without proper parameterisation or escaping.
Impact
An attacker could exfiltrate the database, including user credentials, and in certain configurations gain access to the underlying operating system.
What the attacker needed
An authenticated account
The fix
The vendor patched the issue, though the text does not describe the code change.
How it was found
- Log in to the application so the request is authenticated.
- Send a request to the elearning listing endpoint with a crafted value in the filter_cat parameter.
- Repeat with a crafted value in the filter_status parameter instead.
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 is the language a website uses to talk to its database. When a site pastes user input straight into a database query without cleaning it, an attacker can add extra database instructions of their own. Here a logged-in user could do that through two filter fields, potentially reading stored account details.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.