Administrator Posted May 26, 2014 Posted May 26, 2014 TSR-2014-0004 Full Disclosure Case 78301 Summary Correct patch for CVE-2002-1575 in cgiemail. Security Rating cPanel has assigned a Security Level of Important to this vulnerability. Description cPanel & WHM includes a copy of Bruce Lewis’ cgiemail version 1.6. This version of cgiemail was vulnerable to CVE-2002-1575, allowing remote unauthenticated attackers to send email using the cgiemail script to destination addresses of the attackers’ choosing. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 92733 Summary Session file name disclosure via SafeFile command line rewriting. Security Rating cPanel has assigned a Security Level of Moderate to this vulnerability. Description The SafeFile functionality of cPanel provides for safe file locking and opening. When attempting to obtain a lock on a file, the executable name ($0) was set to include the target file name for debugging purposes. This exposed potentially sensitive session information. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 92745 Summary Private SSH key passwords disclosed during key generation and import. Security Rating cPanel has assigned a Security Level of Minor to this vulnerability. Description The cPanel & WHM API1 and API2 calls that imported, generated, and converted SSH keys using the ssh-keygen binary supplied the password for the private key using command line arguments. This revealed the private password to other accounts on the system while ssh-keygen was executing. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 93017 Summary Arbitrary Code Execution via WHM Thirdparty Service Calls. Security Rating cPanel has assigned a Security Level of Moderate to this vulnerability. Description The WHM /scripts2/showservice and /scripts2/saveservice URLs took a module name from the user and attempted to load it via an unsafe string eval. Using a carefully crafted module name, a malicious authenticated reseller could execute arbitrary code as root. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 93021 Summary Arbitrary code execution via Cpanel::Thirdparty::serviceinfo API call. Security Rating cPanel has assigned a Security Level of Minor to this vulnerability. Description The Cpanel::Thirdparty::serviceinfo API1 call took a module name from the user and attempted to load it via an unsafe string eval. Using a carefully crafted module name, an authenticated cPanel user could execute arbitrary code, potentially bypassing other restrictions placed on the account. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 93269 Summary Transfer CGI scripts allow downloads of a cPanel account. Security Rating cPanel has assigned a Security Level of Important to this vulnerability. Description The WHM ‘Copy an Account From Another Server With an Account Password’ functionality will first attempt to use XML-API calls to generate and download a backup of the remote account. Should this call fail, a fallback method using FTP and HTTP will be attempted. Under some circumstances, the CGI scripts utilized by this fallback method would remain installed on the account after the transfer was complete, potentially allowing remote attackers to download a copy of the transferred account. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.42.1.1611.40.1.14 Case 94077 Summary Denial of service via Boxtrapper cgi-sys script. Security Rating cPanel has assigned a Security Level of Moderate to this vulnerability. Description The Boxtrapper bxd.cgi script used to confirm an email for delivery did not properly validate the account parameter passed to it by the user. By injecting null values into this parameter, an unauthenticated attacker could trigger an infinite loop in the script, potentially exhausting server resources. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 95617 Summary Arbitrary database access via cpmysqladmin ADDDBPRIVS command. Security Rating cPanel has assigned a Security Level of Important to this vulnerability. Description The cpmysqladmin ‘ADDDBPRIVS’ command allowed cPanel users to add read and write privileges to a database. Ownership of the specified database was not properly validated during this process, allowing the user to read and write any database on the system. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.42.1.1611.40.1.14 Case 96301 Summary Arbitrary permissions change via fixsuexeccgiscripts script. Security Rating cPanel has assigned a Security Level of Important to this vulnerability. Description The fixsuexeccgiscripts script run during the nightly UPCP process on cPanel & WHM systems scanned Apache’s suexec_log for indications of misconfigured CGI scripts. Scripts that generated errors were automatically set to 0755 permissions. The functionality that changed permissions on defective scripts performed insufficient validation of the targets, allowing a local attacker to set any file on the system to 0755 permissions. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 96381 Summary Arbitrary file ownership change via chownpublichtmls script. Security Rating cPanel has assigned a Security Level of Moderate to this vulnerability. Description The chownpublichtmls script is intended to correct the ownership on users’ public_html directories. This script used an obsolete version of the safe_recchmod() function that was vulnerable to a race condition attack. This could allow a local attacker change the ownership of arbitrary files. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 96541 Summary Arbitrary code execution as root via WHM “Check and Repair a Perl Script”. Security Rating cPanel has assigned a Security Level of Important to this vulnerability. Description The Check and Repair Perl Script functionality of WHM was vulnerable to a Time-of-check/Time-of-use attack. The UID this functionality would execute under was determined by a simple stat of the target file, followed by the execution of the script using “perl -c”. A local attacker could leverage this flaw to execute arbitrary code as root when this interface was used on a script under the attacker’s control. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 96697 Summary Arbitrary permissions change via multiple scripts. Security Rating cPanel has assigned a Security Level of Moderate to this vulnerability. Description Obsolete versions of several functions provided by the Cpanel::SafetyBits module were duplicated inside the safetybits.pl script and used in several command line scripts provided with cPanel & WHM. The obsolete versions of these functions allowed a local attacker to change the permissions on arbitrary files under some circumstances. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 97289 Summary Bypass of local zone ownership restrictions via DNS clustering commands. Security Rating cPanel has assigned a Security Level of Minor to this vulnerability. Description The DNS clustering commands allow for DNS zones to be synced across a cluster. When a zone is owned by a local user, these commands restrict modification of the zone to the reseller account that owns the zone and reseller accounts with the “All” ACL. This functionality was subject to several flaws that allowed an authenticated attacker with the “Clustering” ACL to modify zones belonging to other resellers on the system. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 97293 Summary Miscategorization of DNS Clustering ACL. Security Rating cPanel has assigned a Security Level of Minor to this vulnerability. Description The “Clustering” ACL in the WHM Edit Reseller Nameservers and Privileges interface was miscategorized under the “Standard Privileges” grouping. This ACL should be listed under the “Super Privileges” grouping since the ACL is intended for sensitive DNS clustering configuration and synchronization operations that bypass many restrictions on DNS zone modifications. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 97737 Summary Arbitrary YAML file read via Configure Customer Contact. Security Rating cPanel has assigned a Security Level of Important to this vulnerability. Description The WHM Configure Customer Contact interface allows a reseller to set contact information visible by their users. The YAML file containing this information is inside the reseller’s home directory and was read with the effective UID of root. By manipulating this file, an authenticated reseller could read the contents of arbitrary YAML files on the system. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 97841 Summary Mailman list password disclosed to local users during password change. Security Rating cPanel has assigned a Security Level of Moderate to this vulnerability. Description Mailman’s change_pw script takes the password as a command line argument. When changing a mailing list’s password, the new password was leaked to other users logged into the system via command line arguments. Credits This issue was discovered by Rack911. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Case 98121 Summary Miscategorization of Locales ACL. Security Rating cPanel has assigned a Security Level of Minor to this vulnerability. Description The “local-edit” ACL listed in the WHM Edit Reseller Nameservers and Privileges interface was miscategorized under the “Global Privileges” grouping. This ACL should be listed under the “Super Privileges” grouping since the ACL allows the reseller to control the display of translations, including embedded HTML, in all cPanel & WHM interfaces. Credits This issue was discovered by the cPanel Security Team. Solution This issue is resolved in the following builds:11.43.0.1211.42.1.1611.40.1.14 Multiple Cases (35) Summary Multiple XSS vulnerabilities in various interfaces. Description Output filtering errors in several different interfaces allowed JavaScript inputs to be returned to the browser without proper filtering. The affected interfaces are listed below. Case: 90761Security Rating: MinorXSS Type: Self-storedInterface: cPanelURLs: /frontend/x3/ftp/accounts.html, /frontend/paper_lantern/ftp/accounts.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: Mateusz Goik Case: 93117Security Rating: ModerateXSS Type: ReflectedInterface: cPanelURLs: /cgi-sys/guestbook.cgiAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 93141Security Rating: ModerateXSS Type: ReflectedInterface: Entropy ChatURLs: /Affected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 93641Security Rating: MinorXSS Type: Self-storedInterface: cPanelURLs: /frontend/paper_lantern/mail/auto_responder.tt, /frontend/x3/mail/auto_responder.ttAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 93965Security Rating: MinorXSS Type: Self-storedInterface: cPanelURLs: /frontend/x3/filemanager/index.html, /frontend/paper_lantern/filemanager/index.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 93985Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/addoncgi/cpaddons.html, /frontend/paper_lantern/addoncgi/cpaddons.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 94081Security Rating: ModerateXSS Type: StoredInterface: WHMURLs: /scripts4/listacctsAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: Rack911 Case: 94741Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/mail/spam/addspamfilter.html, /frontend/paper_lantern/mail/spam/addspamfilter.htmlAffected Releases: 11.43.0, 11.42.1Reporter: cPanel Security Team Case: 94745Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/paper_lantern/mail/filters/delfilter.html, /frontend/x3/mail/filters/delfilter.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 94773Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/addon/index.html, /frontend/x3/denyip/index.html, /frontend/x3/ftp/accounts.html, /frontend/x3/mail/archive.html, /frontend/x3/mail/autores.html, /frontend/x3/mail/boxtrapper.html, /frontend/x3/mail/filters/managefilters.html, /frontend/x3/mail/fwds.html, /frontend/x3/mail/lists.html, /frontend/x3/park/index.html, /frontend/x3/psql/index.html, /frontend/x3/sql/index.html, /frontend/x3/subdomain/index.html, /frontend/paper_lantern/addon/index.html, /frontend/paper_lantern/denyip/index.html, /frontend/paper_lantern/ftp/accounts.html, /frontend/paper_lantern/mail/archive.html, /frontend/paper_lantern/mail/autores.html, /frontend/paper_lantern/mail/boxtrapper.html, /frontend/paper_lantern/mail/filters/managefilters.html, /frontend/paper_lantern/mail/fwds.html, /frontend/paper_lantern/mail/lists.html, /frontend/paper_lantern/park/index.html, /frontend/paper_lantern/psql/index.html, /frontend/paper_lantern/sql/index.html, /frontend/paper_lantern/subdomain/index.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 94793Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/mail/conf.html, /frontend/paper_lantern/mail/conf.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 94825Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/mail/dodelpop.html, /frontend/paper_lantern/mail/dodelpop.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 94929Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/paper_lantern/mime/addredirect.htmlAffected Releases: 11.43.0, 11.42.1Reporter: cPanel Security Team Case: 94937Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/paper_lantern/sql/wizard4.html, /frontend/x3/sql/wizard4.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 95577Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/denyip/delconfirm.html, /frontend/paper_lantern/denyip/delconfirm.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 95805Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/paper_lantern/ftp/dologoutftpconfirm.html, /frontend/x3/ftp/dologoutftpconfirm.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96017Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/paper_lantern/mime/delredirect.html, /frontend/x3/mime/delredirect.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96021Security Rating: ModerateXSS Type: StoredInterface: cPanelURLs: /frontend/x3/clamavconnector/scanner.html, /frontend/x3/clamavconnector/live_disinfect.html, /frontend/x3/clamavconnector/disinfect.html, /frontend/paper_lantern/clamavconnector/scanner.html, /frontend/paper_lantern/clamavconnector/live_disinfect.html, /frontend/paper_lantern/clamavconnector/disinfect.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96201Security Rating: MinorXSS Type: SelfInterface: WHMURLs: /scripts/doresetresellersAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96209Security Rating: MinorXSS Type: SelfInterface: WHMURLs: /scripts/domultikillAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96245Security Rating: MinorXSS Type: Self-storedInterface: WHMURLs: /cgi/statmanager.cgiAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: Rack911 Case: 96385Security Rating: ImportantXSS Type: StoredInterface: cPanelURLs: /frontend/x3/ftp/session.html, /frontend/paper_lantern/ftp/session.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: Rack911 Case: 96485Security Rating: ModerateXSS Type: StoredInterface: WHMURLs: /scripts5/showacctcopylogAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: Rack911 Case: 96505Security Rating: ImportantXSS Type: StoredInterface: WHMURLs: /scripts/rescartAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96509Security Rating: ModerateXSS Type: StoredInterface: WHMURLs: /scripts/repairmysqlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96521Security Rating: MinorXSS Type: SelfInterface: WHMURLs: /scripts/doresmailmanAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96525Security Rating: ModerateXSS Type: StoredInterface: WHMURLs: /scripts2/convertmaildirAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96545Security Rating: MinorXSS Type: SelfInterface: WHMURLs: /scripts2/doeditzonetemplateAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 96637Security Rating: ModerateXSS Type: StoredInterface: WHMURLs: /cgi/trustclustermaster.cgiAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: Rack911 Case: 96801Security Rating: ImportantXSS Type: StoredInterface: WHMURLs: /scripts/doconfiguremailserverAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 99213Security Rating: MinorXSS Type: StoredInterface: WHMURLs: /scripts5/setupremotemysqlhostAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 99309Security Rating: ModerateXSS Type: StoredInterface: WHMURLs: /scripts2/editzonetemplateAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 99365Security Rating: MinorXSS Type: Self-storedInterface: WHMURLs: /scripts5/copy_account_inputAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 99377Security Rating: MinorXSS Type: Self-storedInterface: WHMURLs: /scripts5/remotemysqlhostAffected Releases: 11.42.1, 11.40.1Reporter: cPanel Security Team Case: 99957Security Rating: MinorXSS Type: SelfInterface: cPanelURLs: /frontend/x3/cgi/modify.htmlAffected Releases: 11.43.0, 11.42.1, 11.40.1Reporter: cPanel Security Team cPanel includes a comprehensive protection mechanism against XSS and XSRF attacks called Security Tokens. Security Tokens protection is enabled by default in all installs of cPanel & WHM. When Security Tokens protection is enabled, an attacker intending to utilize any self-XSS vulnerabilities must convince the victim to navigate their browser to the appropriate cPanel or WHM interface and manually input the JavaScript payload. Credits These issues were discovered by the respective reporters listed above. Solution These issues are resolved in the following builds: 11.43.0.1211.42.1.1611.40.1.14 For the PGP-signed message, see http://cpanel.net/wp-content/uploads/2014/05/TSR-2014-0004-FullDisclosure.txt View the full article
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now