| Source | Link |
|---|---|
| punbb | www.punbb.org/ |
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(15936);
script_version("1.18");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/06/01");
script_name(english:"PunBB Detection");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains an electronic forum application written
in PHP.");
script_set_attribute(attribute:"description", value:
"The remote host is running PunBB, an open source discussion board written in PHP.");
script_set_attribute(attribute:"see_also", value:"http://www.punbb.org/");
script_set_attribute(attribute:"solution", value:
"n/a");
script_set_attribute(attribute:"risk_factor", value:"None");
script_set_attribute(attribute:"plugin_publication_date", value:"2004/12/13");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_set_attribute(attribute:"cpe", value:"cpe:/a:punbb:punbb");
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) 2004-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("http_version.nasl");
script_require_keys("www/PHP");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www");
exit(0);
}
include("global_settings.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");
port = get_http_port(default:80, embedded:TRUE);
if (!get_port_state(port)) exit(0);
if (!can_host_php(port:port)) exit(0);
# Search for punBB.
if (thorough_tests) dirs = list_uniq(make_list("/punbb", "/forum", "/forums", cgi_dirs()));
else dirs = make_list(cgi_dirs());
foreach dir (dirs) {
r = http_get_cache_ka(item:string(dir, "/index.php"), port:port);
if ( r == NULL ) exit(0);
pat = "Powered by .*http://www\\.punbb\\.org/.>PunBB";
if ( egrep(pattern:pat, string:r) ) {
if ( ! dir ) dir = "/";
version=eregmatch(pattern:string(".*", pat, "</a><br>.+Version: (.+)<br>.*"),string:r);
# nb: starting with 1.2, version display is optional and off by default
# but it's still useful to know that it's installed.
if ( version == NULL ) {
version = "unknown";
report = string("An unknown version of PunBB is installed under ", dir, " on the remote host.");
}
else {
version = version[1];
report = string("PunBB version ", version, " is installed under ", dir, " on the remote host.");
}
security_note(port:port, extra:'\n'+report);
set_kb_item(name:"www/" + port + "/punBB", value:version + " under " + dir);
set_kb_item(name:"www/punBB", value:TRUE);
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