CVE-2007-1540

LedgerSMB < 1.2.0 and SQL-Ledger < 2.6.27 - Directory Traversal and Authentication Bypass via Login Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-1540. PoCs published by Chris Travers.

AI-analyzed exploit summary The code describes a local file inclusion (LFI) vulnerability in LedgerSMB/SQL-Ledger due to insufficient input sanitization, allowing attackers to include arbitrary local files or execute scripts. It also mentions an authentication bypass issue specific to SQL-Ledger.

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.

Exploits (1)

exploitdb WRITEUP VERIFIED
by Chris Travers · textwebappscgi
https://www.exploit-db.com/exploits/29761

The code describes a local file inclusion (LFI) vulnerability in LedgerSMB/SQL-Ledger due to insufficient input sanitization, allowing attackers to include arbitrary local files or execute scripts. It also mentions an authentication bypass issue specific to SQL-Ledger.

Classification
Writeup 90%
Attack Type
Info Leak | Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: LedgerSMB prior to 1.1.10, SQL-Ledger prior to 2.6.27
No auth needed
Prerequisites: Access to the target web application
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24560
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/33624
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1024
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/1025
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24585
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/463175/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23034

Scores

EPSS 0.0494
EPSS Percentile 91.2%

Details

Status published
Products (2)
ledgersmb/ledgersmb < 1.1.8
sql-ledger/sql-ledger < 2.6.27
Published Mar 20, 2007
Tracked Since Feb 18, 2026