Compromised by Endpoint Protection: Legacy Edition
Symantec Endpoint Protection 11.x contains an unauthenticated SQL injection in the AgentServlet's HardwareKey attribute, allowing arbitrary SQL execution. This can be chained with a command injection and a binary planting flaw to achieve remote code execution as SYSTEM on the manager and local privilege escalation on clients.
Published on codewhitesec.blogspot.com
The previous disclosure of the vulnerabilities in Symantec Endpoint Protection (SEP) 12.x showed that a compromise of both the SEP Manager as well as the managed clients is possible and can have a severe impact on a whole corporate environment.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An unauthenticated attacker could execute arbitrary SQL, potentially leading to remote code execution as SYSTEM on the SEP Manager, and local users could escalate to SYSTEM on SEP clients; the product is out of support and will not be patched.
What the attacker needed
Network access to SEP Manager; valid DomainID from a client; local user on SEP client for binary planting
The fix
Upgrade to Symantec Endpoint Protection 12.1, as version 11.x is out of support and will not receive a patch.
How it was found
- Retrieve a valid DomainID from a SEP client installation's SyLink.xml file.
- Send a request to the AgentRegister operation with a malicious HardwareKey value to perform SQL injection.
- Use the SQL injection to modify the SemConfigRoot XML document and change an administrator's PasswordHash.
- Log into the SEPM with the new password and exploit CVE-2015-1490 to upload files and execute code as SYSTEM.
- Alternatively, use the SQL injection to insert a notification with a batch file and a virus name containing command injection, then trigger the notification to run arbitrary commands.
- For local privilege escalation on a client, copy the genuine SyKnAppS.dll to the Updates directory, trigger version collection once, then replace it with a malicious DLL and trigger again.
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 write-up has not been written yet. The Original tab links to the source.
This report describes several security holes in an old antivirus management product. An attacker who can reach the management server can send a crafted request that tricks the database into running attacker-controlled commands, and from there take over the server and the computers it manages. The product is no longer supported, so no patch will be made.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.