1b7de91e8aaf08ec9b06a37d8c7120773b7ef107,w3af/plugins/grep/strange_headers.py,strange_headers,_content_location_not_300,#strange_headers#Any#Any#,89
Before Change
headers = response.get_headers()
header_value, header_name = headers.iget("content-location")
if header_value is not None and 300 < response.get_code() < 310:
desc = "The URL: "%s" sent the HTTP header: "content-location""\
" with value: "%s" in an HTTP response with code %s which"\
" is a violation to the RFC."
desc = desc % (response.get_url(),
header_value,
response.get_code())
i = Info("Content-Location HTTP header anomaly", desc,
response.id, self.get_name())
i.set_url(response.get_url())
i.add_to_highlight("content-location")
kb.kb.append(self, "anomaly", i)
def get_long_desc(self):
:return: A DETAILED description of the plugin functions and features.
After Change
headers = response.get_headers()
header_value, header_name = headers.iget("content-location")
if header_value is None:
return
if not 300 < response.get_code() < 310:
return
desc = ("The URL: "%s" sent the HTTP header: "content-location""
" with value: "%s" in an HTTP response with code %s which"
" is a violation to the RFC.")
desc %= (response.get_url(),
header_value,
response.get_code())
i = Info("Content-Location HTTP header anomaly", desc,
response.id, self.get_name())
i.set_url(response.get_url())
i.add_to_highlight("content-location")
kb.kb.append(self, "anomaly", i)
def get_long_desc(self):
:return: A DETAILED description of the plugin functions and features.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: andresriancho/w3af
Commit Name: 1b7de91e8aaf08ec9b06a37d8c7120773b7ef107
Time: 2018-05-11
Author: self@andresriancho.com
File Name: w3af/plugins/grep/strange_headers.py
Class Name: strange_headers
Method Name: _content_location_not_300
Project Name: andresriancho/w3af
Commit Name: 0c20b05179619d3dce5f4efe342ee2a553b9c1e8
Time: 2018-02-10
Author: andres.riancho@gmail.com
File Name: w3af/plugins/crawl/urllist_txt.py
Class Name: urllist_txt
Method Name: crawl
Project Name: andresriancho/w3af
Commit Name: 0c20b05179619d3dce5f4efe342ee2a553b9c1e8
Time: 2018-02-10
Author: andres.riancho@gmail.com
File Name: w3af/plugins/crawl/robots_txt.py
Class Name: robots_txt
Method Name: crawl