CVE-2011-2944
Description
SQL injection vulnerability in login.php in MegaLab The Uploader before 2.0.5 allows remote attackers to execute arbitrary SQL commands via the username parameter.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
2- Range: <2.0.5
Patches
Vulnerability mechanics
Root cause
"Missing input sanitization in the username parameter of login.php allows SQL injection."
Attack vector
An unauthenticated remote attacker sends a POST request to `login.php` with a crafted `username` parameter containing SQL injection syntax, such as `' OR activated=1-- a` [ref_id=1]. The application fails to neutralize special SQL characters in the input, allowing the attacker to bypass authentication and log in as the first valid admin user [CWE-89]. The attacker then receives a session cookie, which can be used to access administrative functions including file upload, extension whitelisting, and CAPTCHA disabling [ref_id=1].
Affected code
The vulnerability exists in `login.php` of MegaLab The Uploader versions before 2.0.5. The `username` parameter is passed directly into an SQL query without sanitization, as demonstrated by the Metasploit module's injection string `' OR activated=1-- a` [ref_id=1].
What the fix does
The advisory does not include a patch diff, but the fix is described as upgrading to version 2.0.5 [ref_id=1]. The remediation would involve properly escaping or parameterizing the `username` input in the SQL query within `login.php` to prevent injection of arbitrary SQL commands [CWE-89]. No patch code is available in the provided bundle.
Preconditions
- configThe target must be running The Uploader version 2.0.4 or earlier
- authNo authentication required; the attacker sends a single HTTP POST request to login.php
- networkAttacker must have network access to the web server hosting the application
- inputThe username parameter is accepted without sanitization
Reproduction
1. Send a POST request to `login.php` with body: `username=' OR activated=1-- a&password=a&login=Log-IN` [ref_id=1]. 2. If the response contains "Log-In has been done successfully" (English) or "stato effettuato con successo" (Italian), the SQL injection succeeded [ref_id=1]. 3. Extract the `Set-Cookie` header from the response to obtain an authenticated admin session [ref_id=1].
Generated on May 25, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- sourceforge.net/p/theuploader/news/2011/07/the-uploader-205-releasednvdPatchVendor Advisory
- packetstormsecurity.org/files/110166/The-Uploader-2.0.4-Eng-Ita-Remote-File-Upload.htmlnvdExploit
- www.exploit-db.com/exploits/18518nvdExploit
- www.securityfocus.com/bid/52156nvdExploit
- osvdb.org/79508nvd
- secunia.com/advisories/48141nvd
- exchange.xforce.ibmcloud.com/vulnerabilities/73471nvd
News mentions
0No linked articles in our index yet.