SecurityReason.com - Our Reason is

Security

Register | Forget Password | Login
SecurityReason
WLB
Services
RSS
Corporate
Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Home arrow SecurityAlert Database

Arrow  Topic :

Directory Transversal and Arbitrary Code Execution Vulnerability in SQL-Ledger and LedgerSMB


Arrow  SecurityAlert : 2381
Arrow  CVE : CVE-2007-1329
Arrow  SecurityRisk : High  Security Risk High  (About)
Arrow  Remote Exploit : Yes
Arrow  Local Exploit : No
Arrow  Exploit Available : Yes
Arrow  Credit : Chris Travers
Arrow  Published : 09.03.2007

Arrow  Affected Software : LedgerSMB < 1.1.5



Arrow  Advisory Content :  

Hi all;

Another security issue has been found in LedgerSMB < 1.1.5 and all
versions of SQL-Ledger which allows an attacker to engage in directory
transversal, retrieval of sensitive information, user account
fabrication, or even arbitrary code execution. This was fixed in
LedgerSMB 1.1.5 and despite ample warning, the maintainer of SQL-Ledger
has not corrected the problem.

The problem occurs because the blacklisting functions for the text
editor strip out potentially dangerous targets rather than denying
access when a problem is detected. The stripping of such "dangerous"
elements involves first stripping the $userpath (usually users) and then
the $memberfile (by default users/members) and then opening the file
that remains.

So, to go up two levels and open foo.txt, you could pass a url
containing the argument of file=.users./users/members./foo.txt to the
url for editing the template. After these are stripped out, you are
left with ../../foo.txt. You can also retrieve the memberfile by using
the path of file=useuserusers/memberssrs/members. Then by crafting a
similar URL or by altering the web page to post custom variables, you
can cause the application to overwrite this file, possibly deleting or
changing passwords, or adding user accounts.

This can also be used to cause arbitrary code to be executed as well.
SQL-Ledger and LedgerSMB < 1.2 rely on server-writable and executable
Perl scripts to store user preferences. These scripts are run at every
page load, are created on login, and destroyed at logout. Using the
same method, you can add arbitrary Perl code to the end of these files
causing that to be loaded the next time the target user loads a page.

Best Wishes,
Chris Travers
begin:vcard
fn:Chris Travers
n:Travers;Chris
email;internet:chris (at) metatrontech (dot) com [email concealed]
tel;work:509-888-0220
tel;cell:509-630-7794
x-mozilla-html:FALSE
version:2.1
end:vcard





Arrow  Feedback :

If you have additional information or notice any errors regarding this security advisory, please use contact form or email us at info()securityreason()com.
Alert

libc:fts_*() Multiple Denial of Service

Security Risk Medium- 2009-10-02

The fts functions are provided for traversing UNIX file hierarchies...

Apache RSS Apache Alert

» Apache 1.3.41 mod_proxy
   Integer overflow (code
   execution)

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion in work
   directory

» Apache Tomcat 6.0.20 and
   5.5.28 insecure partial
   deploy after failed
   undeploy

» Apache Tomcat 6.0.20 and
   5.5.28 unexpected file
   deletion and/or
   alteration

PHP RSS PHP Alert

» PHP 5.2.12/5.3.1 Multiple
   Vulnerabilities

» PHP 5.2.11 libgd multiple
   vulnerabilities

» PHP 5.2.11 tempnam()
   safe_mode bypass

» PHP 5.3.0 5.2.11
   posix_mkfifo()
   open_basedir bypass

Copyright © SecurityReason.com. All Rights Reserved.