69ff07c2bf368ebc0d6f0700a9735451ed851999,w3af/plugins/audit/global_redirect.py,global_redirect,_javascript_redirect,#global_redirect#Any#,173
Before Change
window.location.href="http://www.w3af.com/";
location.replace("http://www.w3af.com/");
res = self._script_re.search(response.get_body())
if res:
url_group_re = "(%s)" % "|".join(self.TEST_URLS)
After Change
window.navigate("http://www.w3af.org");
for statement in self._extract_script_code(response):
if self.TEST_DOMAIN not in statement:
continue
for redir_to_test_domain_re in self.REDIR_TO_TEST_DOMAIN_JS_RE:
if redir_to_test_domain_re.search(statement):
return True
return False
def get_long_desc(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: andresriancho/w3af
Commit Name: 69ff07c2bf368ebc0d6f0700a9735451ed851999
Time: 2018-01-02
Author: andres.riancho@gmail.com
File Name: w3af/plugins/audit/global_redirect.py
Class Name: global_redirect
Method Name: _javascript_redirect
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9121332c18e024d417d1aeb189ec98f295ffc694
Time: 2020-07-28
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_packages/epel_release.py
Class Name:
Method Name: YumInstall
Project Name: andresriancho/w3af
Commit Name: 8ef70a7d25cb06d84d591fc68ca8ea38be2f8f05
Time: 2018-07-18
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/motw.py
Class Name: motw
Method Name: grep