bugtraq
[Top] [All Lists]

Full Disclosure: Arbitrary Code Execution in LedgerSMB CVE-2006-5872

To: bugtraq@securityfocus.com
Subject: Full Disclosure: Arbitrary Code Execution in LedgerSMB CVE-2006-5872
From: Chris Travers <chris@metatrontech.com>
Date: Fri, 26 Jan 2007 21:46:50 -0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: bugtraq-list@securepoint.com
Delivered-to: mailing list bugtraq@securityfocus.com
Delivered-to: moderator for bugtraq@securityfocus.com
List-help: <mailto:bugtraq-help@securityfocus.com>
List-id: <bugtraq.list-id.securityfocus.com>
List-post: <mailto:bugtraq@securityfocus.com>
List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
Mailing-list: contact bugtraq-help@securityfocus.com; run by ezmlm
User-agent: Thunderbird 1.5.0.9 (X11/20070102)
CVE-2006-5872 (filed against SQL-Ledger) also affects LedgerSMB. This was first fixed in LedgerSMB 1.1.5 but due to a number of unrelated bugs, we recommend upgrading to 1.1.7. SQL-Ledger fixed the problem in 2.6.21.

This occurs due to the improper handling of input handling in the redirect function which also allows the user to specify a file with arguments to be run via Perl. However, since one can specify -e as the script (making the command line perl -e ....) one can specify whatever code to execute one would like.

The following link demonstrates the vulnerability.

http://127.0.0.1/sql-ledger/login.pl?login=demo&script=-e%3fprint%20STDERR%20%27hello%20world%27%3b&action=logout <http://127.0.0.1/sql-ledger/login.pl?login=demo&script=-e%3fprint%20STDERR%20%27hello%20world%27%3b&action=logout>

Best Wishes,
Chris Travers
Metatron Technology Consulting

Attachment: chris.vcf
Description: Vcard

<Prev in Thread] Current Thread [Next in Thread>
  • Full Disclosure: Arbitrary Code Execution in LedgerSMB CVE-2006-5872, Chris Travers <=