English
The Internet threat alert status is currently normal. At present, no major epidemics or other serious incidents have been recorded by Kaspersky Lab’s monitoring service. Internet threat level: 1

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


Secunia ID

SA51828

Release Date

18 Jan 2013

Last Change

30 Jan 2013

Criticality

Less Critical

Solution Status

Partial Fix

Software

phlyMail Lite 4.x

Where

From remote

Impact
Cross-Site Scripting

Cross-Site Scripting vulnerabilities allow a third party to manipulate the content or behaviour of a web application in a user's browser, without compromising the underlying system.

Different Cross-Site Scripting related vulnerabilities are also classified under this category, including "script insertion" and "cross-site request forgery".

Cross-Site Scripting vulnerabilities are often used against specific users of a website to steal their credentials or to conduct spoofing attacks.

Spoofing

This covers various vulnerabilities where it is possible for malicious users or people to impersonate other users or systems.

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:
http://[host]/config.php?PHM[cellular]&PHM[customer_number]&PHM[email]
http://[host]/config.php?PHM[externalemail]&PHM[fax]&PHM[firstname]&PHM[www]
http://[host]/config.php?PHM[lastname]&PHM[tel_business]&PHM[tel_private]

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.

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.

Reported by

Gjoko Krstic (LiquidWorm).

Original Advisory

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