【问题标题】:wapiti crashes my ASP.NET project. Why? How do i fix it?wapiti 使我的 ASP.NET 项目崩溃。为什么?我如何解决它?
【发布时间】:2010-02-12 03:39:43
【问题描述】:

这是马鹿的一张扫描图。我注意到当我上传图片(用户可以上传)时,我在Launching module crlf 之前遇到了崩溃。因此,只需使用我网站的一个新实例,我就运行了它并得到了下面的结果。

我的问题是 1.如何修复崩溃 2. 我怎样才能找出导致崩溃的原因。我使用 -v 2 找出 url 并将它们记录到我的应用程序中。在这两种情况下,我都没有看到任何问题,并且项目在我的代码之外崩溃 3. 我如何解决下面的 unicode 警告?

 Wapiti-2.2.1 (wapiti.sourceforge.net)
..............................
 Notice
========
This scan has been saved in the file C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src/s
cans/localhost:17357.xml
You can use it to perform attacks without scanning again the web site with the "
-k" parameter
[*] Loading modules :
        mod_crlf, mod_exec, mod_file, mod_sql, mod_xss, mod_backup, mod_htaccess
, mod_blindsql, mod_permanentxss, mod_nikto

[+] Launching module crlf

[+] Launching module exec

[+] Launching module file

[+] Launching module sql
C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\attack\mod_sql.py:185: UnicodeWarning:
 Unicode equal comparison failed to convert both arguments to Unicode - interpre
ting them as being unequal
  if (page, tmp) not in self.attackedPOST:

[+] Launching module xss
Traceback (most recent call last):
  File "wapiti.py", line 449, in <module>
    wap.attack()
  File "wapiti.py", line 266, in attack
    x.attack(self.urls, self.forms)
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\attack\attack.py", line 121, i
n attack
    self.attackGET(page, dictio, headers)
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\attack\mod_xss.py", line 71, i
n attackGET
    self.findXSS(page, {}, "", code, "", payloads, headers["link_encoding"])
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\attack\mod_xss.py", line 306,
in findXSS
    dat = self.HTTP.send(url).getPage()
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\net\HTTP.py", line 94, in send

    info, data = self.h.request(target, headers = _headers)
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\net\httplib2\__init__.py", lin
e 1084, in request
    (response, content) = self._request(conn, authority, uri, request_uri, metho
d, body, headers, redirections, cachekey)
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\net\httplib2\__init__.py", lin
e 888, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, he
aders)
  File "C:\unzipped\wapiti-2.2.1\wapiti-2.2.1\src\net\httplib2\__init__.py", lin
e 853, in _conn_request
    response = conn.getresponse()
  File "C:\dev\bin\Python26\lib\httplib.py", line 974, in getresponse
    response.begin()
  File "C:\dev\bin\Python26\lib\httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "C:\dev\bin\Python26\lib\httplib.py", line 349, in _read_status
    line = self.fp.readline()
  File "C:\dev\bin\Python26\lib\socket.py", line 397, in readline
    data = recv(1)
socket.error: [Errno 10054] An existing connection was forcibly closed by the re
mote host

【问题讨论】:

    标签: asp.net security crash fuzzer wapiti


    【解决方案1】:

    Wapiti 可能会导致应用程序崩溃,因为它占用了您的大量应用程序。进行 XSS 测试时跟踪的 Wapiti 堆栈,我认为 xss 测试不会使应用程序崩溃。但是,通过提交大量 1 类型的请求,这可能会导致 DoS 条件。您需要追踪 Wapiti 发出的最后一个请求。 Wapiti 有一个详细模式,我认为它的 -v 会打印出它发出的每个请求。获得崩溃的文件后,您应该手动查看它。

    Wapiti 的盲目 sql 注入攻击模块使用 mysql 的 benchmark() 函数,该函数 WILL DoS 你的 mysql 服务器,如果你在扫描整个站点时遇到问题,我建议关闭这个。

    【讨论】:

    • >>使用 -v 2 找出 url 并将它们记录到我的应用程序中。在这两种情况下,我都没有看到任何问题,并且项目在我的代码之外崩溃>一旦您拥有崩溃的文件,您应该手动查看它。我尝试插入我收到的 url 请求,但什么也没发生。有时 Wapiti 会写一个不在我的日志中的 url protected void Application_BeginRequest(object sender, EventArgs e) { filewr.WriteLine(Context.Request.RawUrl); 它会导致 inn WebDev dll 崩溃。哪个不是我或我使用的库(elmah,sqlite)。当它访问我的一个图片网址 (/blah.[png|jpg]) 时,我还注意到崩溃
    • 很抱歉,我不太了解asp.net。我喜欢用马鹿。也许您可以附加一个调试器或分析器来查看您的应用程序崩溃的位置。
    猜你喜欢
    • 2016-08-06
    • 2018-08-06
    • 2015-11-05
    • 2015-05-03
    • 2016-09-26
    • 2022-06-11
    • 1970-01-01
    • 1970-01-01
    • 2022-07-24
    相关资源
    最近更新 更多