Seeddms 5.1.22 Exploit — !full!
Attackers can exploit SQL injection vulnerabilities in parameter handling to bypass authentication or dump database content, including hashed user passwords. Attack Scenario: Step-by-Step
The most dangerous systemic flaw in the SeedDMS codebase involves . When an application allows users to upload documents without strictly enforcing extension whitelisting, an attacker with basic author or write access can upload malicious scripts (such as a PHP web shell).
: Ensure the physical storage directories used for document management reside outside the public web root ( /var/www/html/ ). This prevents any direct HTTP routing to uploaded execution scripts.
: Implement comprehensive logging of authentication attempts, file uploads, and administrative actions. Monitor logs for suspicious activities such as failed login attempts or unusual file upload patterns. seeddms 5.1.22 exploit
The CVSS score for this vulnerability is .
Versions (including 5.1.22) allow remote authenticated attackers to upload PHP scripts without proper validation. The file upload functionality fails to check file extensions adequately, enabling direct PHP code upload.
Once the shell's URL is confirmed:
The most dangerous vulnerability in SeedDMS 5.1.22 is a found in the op/op.RemoveDocument.php and op/op.RemoveFolder.php endpoints. The issue arises because user-supplied input via the documentid or folderid parameter is directly concatenated into SQL queries without sanitization or parameterized queries.
: This script allows the attacker to execute OS-level commands, such as cat /etc/passwd , or to spawn a reverse shell for persistent access. Other Notable Vulnerabilities
curl -X POST http://192.168.1.100/seeddms51/op/op.AddFile.php \ -F "userfile=@evil.php" \ -F "name=evil.php" \ -F "comment=test" \ -F "sequence=1" \ -F "documentid=1" \ -F "folderid=1" : Ensure the physical storage directories used for
Reported XSS vulnerabilities include stored XSS in the , stored XSS in the "Role Management" menu , and stored XSS in the document name field allowing JavaScript injection via document names.
By the time version was active, security researchers had shifted focus toward more advanced vectors. While the direct PHP upload was largely patched in later minor versions, new "stories" emerged:
Attackers may inject malicious scripts into document metadata (like titles or descriptions). When an admin views the document, the script executes in their browser, potentially stealing session cookies. Monitor logs for suspicious activities such as failed
As detailed by Bryan Leong on Medium , an attacker can create a PHP script, upload it as a new document version, and then directly access the uploaded file in the /data/ directory to execute commands. 2. SQL Injection