APP下载

Web网站敏感目录自动检测工具设计

2018-06-29李晨阳陈吟樊云王镜琅雷敏

网络空间安全 2018年1期

李晨阳 陈吟 樊云 王镜琅 雷敏

摘 要:敏感目录是指目标服务器上存在含有敏感名称的目录,这些目录中可能包含了大量的敏感文件和信息。利用该漏洞,攻击者可全面了解目标服务器的网站架构,甚至获取敏感文件中的敏感信息,从而得到目标服务器的控制权,实施进一步攻击。论文介绍了敏感目录漏洞及其危害,对HTTP协议及URL进行分析,设计并实现了以字典为检测标准的自动化检测脚本,判断指定主机是否存在该漏洞,并在实际测试中被成功应用。

关键词:网站扫描;敏感目录;自动化检测

中图分类号:TP312 文献标识码:A

Design of automated detection tool for sensitive path of websites

Abstract: Sensitive paths are paths on the target server that contain sensitive names, which may contain a large number of sensitive files and information. Using this vulnerability, attackers can fully understand the target server's site architecture, and even access sensitive information in sensitive files to gain control of the target server for further attacks. This paper introduces the sensitive paths vulnerability and its effects, analyzes the HTTP protocol and URL, designs and implements the automated detection script based on the dictionary which is successfully applied in the actual test to judge whether the server exists the vulnerability.

Key words: web scan; sensitive path; automated detection

1 引言

Web应用的易于开发性、开放性使得Web应用快速发展,与此同时安全问题也日益突出,Web应用已成为攻击者攻击的主要对象。2015年史考特证券遭遇攻击,同年Web托管公司000Webhost也遭遇黑客攻击,数百万名用户敏感信息被泄露。此外,缓冲区溢出、跨站点脚本、目录遍历等各种安全问题也不断涌现。

敏感目录漏洞是一种常见的Web漏洞,它是指目标服务器上存在含有敏感名称的目录,例如/upload、/database、/bak等。攻击者可通过目标服务器的目录信息全面了解网站架构,从而对网站进行入侵攻击,获取服务器后端数据库信息,使得用户敏感信息泄露。目前,中国国家信息安全漏洞共享平台(CNVD)对该漏洞的评级为“低危”。

鉴于敏感目录漏洞的危害和影响,方便网站运维人员和管理人员及时发现并解决问题,本文提出了编写Python脚本来实现对网站敏感目录漏洞的自动扫描与检测。……

登录APP查看全文