浏览代码

more advanced anti false-positives check

epsylon 5 年之前
父节点
当前提交
c8e77231c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/main.py

+ 1 - 1
core/main.py

@@ -1425,7 +1425,7 @@ class xsser(EncoderDecoder, XSSerReporter):
             if str('/>' + hashing) in c_body or str('href=' + dest_url + hashing) in c_body or str('content=' + dest_url + hashing) in c_body:
                 self.report("[Info] Reply looks like a 'false positive' -> [DISCARDING!]\n")
                 self.add_failure(dest_url, payload, hashing, query_string, orig_url, method) # failed!
-            elif str(hashing+","):
+            elif str(hashing+",") in c_body or str(hashing+'","') in c_body:
                 self.report("[Info] Reply looks like a 'false positive' -> [DISCARDING!]\n")
                 self.add_failure(dest_url, payload, hashing, query_string, orig_url, method) # failed!
             else: