| Source | Link |
|---|---|
| tools | www.tools.ietf.org/html/rfc2660 |
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if(description)
{
script_id(11720);
script_version ("1.20");
script_name(english:"Secure HyperText Transfer Protocol (S-HTTP) Detection");
script_summary(english:"Checks if the web server accepts the Secure method");
script_set_attribute(
attribute:"synopsis",
value:"The remote web server encrypts traffic using an obsolete protocol."
);
script_set_attribute(attribute:"description", value:
"The remote web server accepts connections encrypted using Secure
HyperText Transfer Protocol (S-HTTP), a cryptographic layer that was
defined in 1999 by RFC 2660 and never widely implemented." );
script_set_attribute(
attribute:"see_also",
value:"https://tools.ietf.org/html/rfc2660"
);
script_set_attribute(attribute:"solution", value:
"Rare or obsolete code is often poorly tested. Thus, it would be
safer to disable support for S-HTTP and use HTTPS instead." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_set_attribute(attribute:"plugin_publication_date", value: "2003/06/11");
script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2003-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_family(english:"Service detection");
script_dependencie("find_service1.nasl", "httpver.nasl", "broken_web_server.nasl");
script_require_ports("Services/www", 80);
exit(0);
}
#
# Keep the old API. The new API does not support S-HTTP
include("http_func.inc");
port = get_http_port(default:80, embedded:TRUE);
if (!get_port_state(port)) exit(0, "Port "+port+" is closed.");
soc = http_open_socket(port);
if (!soc) exit(1, "TCP connection failed to "+port+".");
req = string("Secure * Secure-HTTP/1.4\r\n",
"Host: ", get_host_name(), ":", port, "\r\n",
"Connection: close\r\n",
"\r\n");
send(socket: soc, data: req);
r = recv_line(socket: soc, length: 256);
http_close_socket(soc);
if (ereg(pattern:"Secure-HTTP/[0-9]\.[0-9] 200 ", string:r)) security_warning(port);
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