8657 : YaPiG add_comment.php Arbitrary Command Execution
Printer | http://osvdb.org/8657 | Email This | Edit Vulnerability

Views This Week

1

Views All Time

95

Info

Last Modified

10 months ago

Percent Complete

100%

Disclosure

Aug 11, 2004

Discovery

Unknown

Dates

Exploit

Aug 11, 2004

Solution

Unknown

Description

YaPiG contains a flaw that allows a remote attacker to execute arbitrary commands. The issue is due to the add_comment.php script not properly sanitizing user input allowing a remote attacker to upload malicious files to the server with a '.php' extension. When the uploaded script is accessed it will be executed with the same privileges as the webserver.

Classification

Location: Remote/Network Access Required
Attack Type: Input Manipulation
Impact: Loss of Integrity
Exploit: Exploit Available
Disclosure: OSVDB Verified
OSVDB: Web Related

Solution

Currently, there are no known upgrades or patches to correct this issue. It is possible to correct the flaw by implementing the following workaround(s): 'add_comment.php', line 105:
Replace:
$comments_file= $gid_dir . $gid . "_" . $phid;

With:
$comments_file= $gid_dir . $gid . "_" . intval($phid);

'functions.php', lines 699-700:
Replace:
$linea=$linea . $data_array['mail'] . $SEPARATOR;
$linea=$linea . $data_array['web'] . $SEPARATOR;

With:
$linea=$linea . htmlspecialchars($data_array['mail']) . $SEPARATOR;
$linea=$linea . htmlspecialchars($data_array['web']) . $SEPARATOR;

Products

NaTaSaB
Watch-list
YaPiG
Watch-list
0.92b

References

Tools & Filters

Nessus

14269

Credit

  • aCiDBiTS - acidbitsBrand New Doo Doohotmail.com -

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use