Lucene search
K

Ultimate PHP Board admin_iplog.php Arbitrary Code Execution

🗓️ 29 May 2003 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 17 Views

Remote PHP script may allow arbitrary code execution via malformed user-agent in logs.

Related
Refs
Code
ReporterTitlePublishedViews
Family
Check Point Advisories
Ultimate PHP Board User-Agent HTTP Header Code Execution - Ver2 (CVE-2003-0395)
7 Jan 201400:00
checkpoint_advisories
CVE
CVE-2003-0395
10 Jun 200304:00
cve
Cvelist
CVE-2003-0395
10 Jun 200304:00
cvelist
NVD
CVE-2003-0395
2 Jul 200304:00
nvd
Positive Technologies
PT-2003-1586 · Upb · Ultimate Php Board
10 Jun 200300:00
ptsecurity
#%NASL_MIN_LEVEL 70300
# 
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(11671);
  script_version("1.18");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2003-0395");
  script_bugtraq_id(7678);

  script_name(english:"Ultimate PHP Board admin_iplog.php Arbitrary Code Execution");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has a PHP script that may allow arbitrary code
execution on the remote system.");
  script_set_attribute(attribute:"description", value:
"The remote host is running Ultimate PHP Board (UPB).

There is a flaw in this version which may allow an attacker
to execute arbitrary code on this host, by sending a malformed
user-agent which contains PHP commands.  Once the user-agent
has been sent, it is stored in the logs. When the administrator
of this website will read the logs through admin_ip.php,
the code will be executed.");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the latest version of this CGI.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2003/05/23");
  script_set_attribute(attribute:"plugin_publication_date", value:"2003/05/29");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2003-2022 Tenable Network Security, Inc.");

  script_dependencies("find_service1.nasl", "http_version.nasl");
  script_require_keys("www/PHP");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}

# The script code starts here

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80);
if(!can_host_php(port:port))exit(0, "The remote web server does not support PHP.");

# Loop through directories.
if (thorough_tests) dirs = list_uniq(make_list( "/upb", "/board", cgi_dirs()));
else dirs = make_list(cgi_dirs());

foreach d (dirs)
{
 res = http_send_recv3(method:"GET", item:string(d, "/index.php"), port:port);
 if(isnull(res) ) exit(1,"Null response to index.php request.");
 if(egrep(pattern:"Powered by<br>UPB Version :.* 1\.(0[^0-9]|[0-9])", string:res[2]))
  {
    security_hole(port);
    exit(0);
  }
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Apr 2022 00:00Current
6.1Medium risk
Vulners AI Score6.1
CVSS 27.5
EPSS0.07477
17