📄 owa-anonymous.nasl
字号:
## This script was written by Javier Fern醤dez-Sanguino Pe馻 <jfs@computer.org># based on scripts made by Renaud Deraison <deraison@cvs.nessus.org>## Slightly modified by rd to to do pattern matching.## See the Nessus Scripts License for details#if(description){ script_id(10781); script_bugtraq_id(3301); script_cve_id("CVE-2001-0660"); script_version ("$Revision: 38 $"); name["english"] = "Outlook Web anonymous access"; script_name(english:name["english"]); desc["english"] = "It is possible to browse the information of the OWA server by accessing as ananonymous user with the following URL:http://www.example.com/exchange/root.asp?acs=anonAfter this access, the anonymous user can search for valid users in the OWA server and can enumerate all users by accessing the following URL:http://www.example.com/exchange/finduser/details.asp?obj=XXX(where XXX is a string of 65 hexadecimal numbers)Data that can be accessed by an anonymous usermay include: usernames, server names, email name accounts,phone numbers, departments, office, management relationships...This information will help an attacker to make socialengineering attacks with the knowledge gained. This attackcan be easily automated since, even if direct access to searchis not possible, you only need the cookie given on the anonymouslogin access.Administrators might be interested in consultingthe following URL:http://support.microsoft.com/support/exchange/content/whitepapers/owaguide.docSolution: Disable anonymous access to OWA. Follow these steps: 1. In Microsoft Exchange Administrator open the Configuration container. 2. Choose Protocols, and then double-click HTTP (Web) Site Settings 3. Unselect the 'Allow anonymous users to access the anonymous public folders' check box. 4. Select the Folder Shortcuts tab. 5. Remove all folders which are allowed anonymous viewing. 6. Choose OK. 7. Remove the anonymous access from the login web pages. Risk factor : Medium"; script_description(english:desc["english"]); summary["english"] = "Outlook Web anonymous access"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2001 Javier Fern醤dez-Sanguino Pe馻"); family["english"] = "CGI abuses"; script_family(english:family["english"]); script_dependencie("find_service.nes", "http_version.nasl", "www_fingerprinting_hmap.nasl"); script_require_ports("Services/www", 80); exit(0);}## The script code starts here#include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);if ( ! can_host_asp(port:port) ) exit(0); cgi = "/exchange/root.asp?acs=anon"; if(is_cgi_installed_ka(item:cgi, port:port)) { soc = http_open_socket(port); req = http_get(item:"/exchange/root.asp?acs=anon", port:port); send(socket:soc, data:req); r = http_recv(socket:soc); http_close_socket(soc); if ("/exchange/logonfrm.asp" >< r) { soc = http_open_socket(port); req = http_get(item:"/exchange/logonfrm.asp", port:port); send(socket:soc, data:req); r = http_recv(socket:soc); http_close_socket(soc); if (!("This page has been disabled" >< r)) { security_warning(port); } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -