Aerosol Posted February 1, 2015 Report Posted February 1, 2015 Vantage Point Security Advisory 2014-007========================================Title: Symantec Encryption Management Server - Remote Command InjectionID: VP-2014-007Vendor: SymantecAffected Product: Symantec Encryption GatewayAffected Versions: < 3.2.0 MP6Product Website: http://www.symantec.com/en/sg/gateway-email-encryption/Author: Paul Craig <paul[at]vantagepoint[dot]sgSummary:---------Symantec Gateway Email Encryption provides centrally managed email encryptionto secure email communications with customers and partners regardless of whetheror not recipients have their own email encryption software.With Gateway Email Encryption, organizations can minimize the risk ofa data breach while complying with regulatory mandates for informationsecurity and privacy.Details:---------Remote Command Injection vulnerabilities occur when user suppliedinput is used directly as a command line argument to a fork(), execv()or a CreateProcessA() function.It was found that the binary /usr/bin/pgpsysconf calls the binary/usr/bin/pgpbackup with unfiltered user supplied input when restoringa Database Backup from the Symantec Encryption Management WebInterface .The user supplied 'filename' value is used directly as a commandargument, and can be concatenated to include additional commands withthe use of the pipe character.This can allow a lower privileged Administrator to compromise theEncryption Management Server.This is demonstrated below in a snippet from pgpsysconf;.text:08058FEA mov dword ptr [ebx], offsetaUsrBinPgpbacku ; "/usr/bin/pgpbackup".text:08058FF0 cmp [ebp+var_1D], 0.text:08058FF4 jnz short loc_8059049.text:08058FF6 mov ecx, 4.text:08058FFB mov edx, 8.text:08059000 mov eax, 0Ch.text:08059005 mov dword ptr [ebx+ecx], offset unk_807AE50.text:0805900C mov [ebx+edx], esi.text:0805900F mov dword ptr [ebx+eax], 0.text:08059016 call _fork ; Bingo..An example to exploit this vulnerability and run the ping command canbe seen below.POST /omc/uploadBackup.event ........Content-Disposition: form-data; name="file";filename="test123|`ping`|-whatever.tar.gz.pgp"This vulnerability can be further exploited to gain local root accessby calling the setuid binary pgpsysconf to install a local packagefile.Fix Information:---------Upgrade to Symantec Encryption Management Server 3.3.2 MP7.See http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory&pvid=security_advisory&year=&suid=20150129_00for more informationTimeline:---------2014/11/26: Issue Reported.2015/01/30: Patch Released.About Vantage Point Security:---------Vantage Point Security is the leading provider for penetration testingand security advisory services in Singapore. Clients in the Financial,Banking and Telecommunications industries select Vantage PointSecurity based on technical competency and a proven track record todeliver significant and measurable improvements in their securityposture.Web: https://www.vantagepoint.sg/Contact: office[at]vantagepoint[dot]sgSource Quote