what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ledger-multi.txt

ledger-multi.txt
Posted Mar 6, 2007
Authored by Chris Travers

Another security issue has been found in LedgerSMB versions 1.1.5 and below 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.

tags | advisory, arbitrary, code execution
SHA-256 | 92c29f7115d1ad3119189f3c9d9a8812b23ba13320ea31a997a5207f3c9403f2

ledger-multi.txt

Change Mirror Download
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
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close