Description
Directory traversal vulnerability in am.pl in (1) SQL-Ledger 2.6.27 and earlier, and (2) LedgerSMB before 1.2.0, allows remote attackers to run arbitrary executables and bypass authentication via a .. (dot dot) sequence and trailing NULL (%00) in the login parameter. NOTE: this issue was reportedly addressed in SQL-Ledger 2.6.27, however third-party researchers claim that the file is still executed even though an error is generated.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sql-ledger | 2.8.14-1 | — |
| Debian 13 | sql-ledger | 2.8.14-1 | — |
| Debian 12 | sql-ledger | 2.8.14-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- LedgerSMB1.0/1.1 / SQL-Ledger 2.6.x - 'Login' Local File Inclusion / Authentication Bypass EDB-29761 · webapps · Mar 19, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 24560 third-party-advisory
- http://sql-ledger.com/cgi-bin/nav.pl?page=news.html&title=What%27s%20New
- http://sourceforge.net/project/shownotes.php?release_id=494462&group_id=175965
- 33624 vdb-entry
- ADV-2007-1024 vdb-entry
- ADV-2007-1025 vdb-entry
- 24585 third-party-advisory
- 20070318 Full Disclosure: Arbitrary execution vulnerability in SQL-Ledger and LedgerSMB mailing-list
- 23034 vdb-entry