⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osticket_setup_php_accessible.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by George A. Theall, <theall@tifaware.com>.## See the Nessus Scripts License for details.#if (description) {  script_id(13647);  script_version ("$Revision: 38 $");   name["english"] = "osTicket setup.php Accessibility";  script_name(english:name["english"]);   desc["english"] = "The target is running at least one instance of an improperly securedinstallation of osTicket and allows access to setup.php.  Since thatscript does not require authenticated access, it is possible for anattacker to modify osTicket's configuration using a specially craftedcall to setup.php to perform the INSTALL actions. For example, if config.php is writable, an attacker could change thedatabase used to store ticket information, even redirecting it toanother site.  Alternatively, regardless of whether config.php iswritable, an attacker could cause the loss of all ticket information byreinitializing the database given knowledge of its existingconfiguration (gained, say, from reading config.php). Solution : Remove both setup.php and gpcvar.php and ensure permissionson config.php are 644. Risk factor : Medium";  script_description(english:desc["english"]);   summary["english"] = "Checks Accessibility of osTicket's setup.php";  script_summary(english:summary["english"]);   script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 2004 George A. Theall");  family["english"] = "CGI abuses";  script_family(english:family["english"]);  script_dependencie("global_settings.nasl", "http_version.nasl", "osticket_detect.nasl");  script_require_ports("Services/www", 80);  exit(0);}include("global_settings.inc");include("http_func.inc");include("http_keepalive.inc");host = get_host_name();port = get_http_port(default:80);if (debug_level) display("debug: searching for setup.php Accessibility vulnerability in osTicket on ", host, ":", port, ".\n");if (!get_port_state(port)) exit(0);# Check each installed instance, stopping if we find a vulnerability.installs = get_kb_list(string("www/", port, "/osticket"));if (isnull(installs)) exit(0);foreach install (installs) {  matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");  if (!isnull(matches)) {    ver = matches[1];    dir = matches[2];    if (debug_level) display("debug: checking version ", ver, " under ", dir, ".\n");    # Get osTicket's setup.php.    url = string(dir, "/setup.php");    if (debug_level) display("debug: checking ", url, ".\n");    req = http_get(item:url, port:port);    res = http_keepalive_send_recv(port:port, data:req);    if (res == NULL) exit(0);           # can't connect    if (debug_level) display("debug: res =>>", res, "<<\n");    # If successful, there's a problem.    if (egrep(pattern:"title>osTicket Install", string:res, icase:TRUE)) {      security_warning(port:port);      exit(0);    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -