#
# Copyright 2000 by Hendrik Scholz <hendrik@scholz.net>
#

if(description)
{
 script_id(10415);
 script_version ("$Revision: 7540 $");
 script_tag(name:"risk_factor", value:"High");
 
 name = "Sambar sendmail /session/sendmail";
 script_name(name);
 
 desc = "The Sambar webserver is running. It provides a web interface for sending emails.
You may simply pass a POST request to /session/sendmail and by this send mails to anyone you want.
Due to the fact that Sambar does not check HTTP referrers you do not need direct access to the server!

Solution : Try to disable this module. There might be a patch in the future. 

Risk factor : High";


 script_description(desc);
 
 summary = "Sambar /session/sendmail mailer installed ?";
 
 script_summary(summary);
 
 script_category(ACT_ATTACK);
 
 
 script_copyright("This script is Copyright (C) 2000 Hendrik Scholz");

 family = "Web application abuses";
 script_family(family);

 script_dependencie("find_service.nes", "http_version.nasl");
 script_require_ports("Services/www", 80);
 script_require_keys("www/sambar");
 exit(0);
}

#
# The script code starts here

include("http_func.inc");
include("http_keepalive.inc");

port = get_http_port(default:80);

if( is_cgi_installed_ka(port:port, item:"/session/sendmail") ) security_warning(port);
