SimpleBBS topics.php name Parameter Arbitrary Command Execution

high Nessus Plugin ID 20303

Synopsis

The remote web server contains a PHP application that is prone to an arbitrary command execution vulnerability.

Description

The remote host appears to be running SimpleBBS, an open source bulletin board system written in PHP.

The version of SimpleBBS installed on the remote host fails to sanitize user-supplied input to the 'name' parameter of the 'index.php' script when creating a new topic and adds that input to several PHP files. An attacker can leverage this flaw to inject arbitrary PHP code into the application and then call one of those files directly to cause that code to be executed on the remote host subject to the privileges of the web server user id.

Solution

Limit the ability to create new topics to trusted users.

See Also

https://www.securityfocus.com/archive/1/418838

Plugin Details

Severity: High

ID: 20303

File Name: simplebbs_name_cmd_exec.nasl

Version: 1.27

Type: remote

Family: CGI abuses

Published: 12/14/2005

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:simplemedia:simplebbs

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Vulnerability Publication Date: 12/7/2005

Reference Information

CVE: CVE-2005-4135

BID: 15764