phlyMail Lite "go" Redirection Weakness and Multiple Script Insertion Vulnerabilities


Description   Gjoko Krstic has discovered a weakness and multiple vulnerabilities in phlyMail Lite, which can be exploited by malicious users to conduct script insertion attacks and by malicious people to conduct spoofing attacks.
1) Input passed via the "go" parameter to frontend/derefer.php is not properly verified before being used to redirect users. This can be exploited to redirect a user to an arbitrary website e.g. when a user clicks a specially crafted link to the affected script hosted on a trusted domain.
2) Input passed via the "name" and "url" POST parameters to config.php (when "screen" and "module" is set to "bookmarks") is not properly sanitised before being used. This can be exploited to insert arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site if malicious data is viewed.
Successful exploitation of this vulnerability requires administrative access.
3) Input passed via multiple POST parameters to config.php (when "action" is set to "users" and "whattodo" is set to "savenewuser") is not properly sanitised before being used. This can be exploited to insert arbitrary HTML and script code, which will be executed in a user's browser session in context of an affected site if malicious data is viewed.
List of affected scripts and parameters:
<a href="http://[host]/config.php?PHM[cellular]&PHM[customer_number]&PHM[email]
" target="_blank">http://[host]/config.php?PHM[cel...mer_number]&PHM[email]
</a>
<a href="http://[host]/config.php?PHM[externalemail]&PHM[fax]&PHM[firstname]&PHM[www]
" target="_blank">http://[host]/config.php?PHM[ext...HM[firstname]&PHM[www]
</a>
<a href="http://[host]/config.php?PHM[lastname]&PHM[tel_business]&PHM[tel_private]
" target="_blank">http://[host]/config.php?PHM[las...ness]&PHM[tel_private]
</a>
Successful exploitation of this vulnerability requires administrative access and "Write" permissions to the "User management" module.
The weakness and vulnerabilities are confirmed in phlyMail Lite 4.03.04. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
phlyMail Lite 4.x
     
Solution   Update to version 4.4.0, which fixes vulnerabilities #1 and #3 and the "url" parameter of vulnerability #2. No official solution is currently available for the "name" parameter of vulnerability #2.
     
CVE  
     
References   phlyMail:
http://freecode.com/projects/phlymail/releases/351757
Zero Science:
http://www.zeroscience.mk/en/vulnerabilities/ZSL-2013-5122.php
http://www.zeroscience.mk/en/vulnerabilities/ZSL-2013-5123.php
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - POST : suspicious tag with event found in data
3.2.0
XSS - Prevention - POST : suspicious 'meta' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'object' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'applet' tag found in data
3.2.0
XSS - Prevention - POST : 'location' javascript object found in data
3.2.0
XSS - Prevention - POST : javascript code found in data
3.2.0
XSS - Prevention - POST : suspicious 'iframe' tag found in data
3.2.0
XSS - Prevention - POST : code allowing cookie access found in data
3.2.0
XSS - Prevention - POST : suspicious 'img' attribute found in data
3.2.0
XSS - Prevention - POST : suspicious 'embed' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'div' tag found in data
3.2.0
XSS - Prevention - POST : 'script' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' attribute found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' tag found in data
5.0.0
XSS - Prevention - POST : javascript code found in data
5.0.0
XSS - Prevention - POST : suspicious tag with event found in data
5.0.0
XSS - Prevention - POST : suspicious 'embed' tag found in data
5.0.0
XSS - Prevention - POST : 'location' javascript object found in data
5.0.0
XSS - Prevention - POST : code allowing cookie access found in data
5.0.0
XSS - Prevention - POST : 'script' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'style' attribute found in data
5.0.0
XSS - Prevention - POST : suspicious 'applet' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'div' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'img' attribute found in data
5.0.0
XSS - Prevention - POST : suspicious 'meta' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'object' tag found in data
5.0.0
XSS - Prevention - POST : suspicious 'iframe' tag found in data
5.0.0
     


 
 
 
 
 Risk level 
Low 

 Vulnerability First Public Report Date 
2013-01-18 

 Target Type 
Server 

 Possible exploit 
Remote