OrangeHRM login.php txtUserName Parameter SQL Injection

high Nessus Plugin ID 24743

Synopsis

The remote web server contains a PHP script that is affected by a SQL injection vulnerability.

Description

The remote host is running OrangeHRM, a human resource management system written in PHP.

The version of OrangeHRM installed on the remote host fails to sanitize input to the 'txtUserName' parameter of the 'login.php' script before using it in a database query. An unauthenticated, remote attacker may be able to leverage this flaw to manipulate SQL queries and, for example, bypass authentication, uncover sensitive information, modify data, or even launch attacks against the underlying database.

Note that successful exploitation of this issue requires that PHP's 'magic_quotes_gpc' be disabled.

Solution

Upgrade to OrangeHRM 2.1 alpha 5 or later.

See Also

http://www.nessus.org/u?3e41c792

Plugin Details

Severity: High

ID: 24743

File Name: orangehrm_txtusername_sql_injection.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 3/1/2007

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 8.1

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

Vulnerability Information

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Reference Information

CVE: CVE-2007-1193

BID: 22756