LedgerSMB / SQL-Ledger login.pl script Parameter Arbitrary Perl Code Execution

high Nessus Plugin ID 24262

Synopsis

The remote web server contains a Perl application that allows arbitrary command execution.

Description

The remote host is running LedgerSMB or SQL-Ledger, a web-based, double-entry accounting system.

The version of LedgerSMB or SQL-Ledger on the remote host fails to sanitize user-supplied input to the 'script' parameter of the 'login.pl' script before using it to execute Perl code. An unauthenticated attacker could leverage this issue to execute arbitrary code on the remote host subject to the privileges of the web server user id.

Solution

Upgrade to LedgerSMB 1.1.5 / SQL-Ledger 2.6.21 or later as those versions reportedly address the issue.

See Also

https://www.securityfocus.com/archive/1/458300/30/0/threaded

Plugin Details

Severity: High

ID: 24262

File Name: ledgersmb_script_code_exec.nasl

Version: 1.15

Type: remote

Family: CGI abuses

Published: 1/30/2007

Updated: 4/7/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.8

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:dws_systems_inc.:sql-ledger

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 9/11/2006

Reference Information

CVE: CVE-2006-5872

BID: 21634