Skip to content

Commit

Permalink
Update signatures for aliyundun firewall (EnableSecurity#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xInfection authored Jan 8, 2023
1 parent 66bfb1e commit 28ec94a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wafw00f/plugins/aliyundun.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def is_waf(self):
if not self.matchContent(r'error(s)?\.aliyun(dun)?\.(com|net)?'):
return False

if not self.matchCookie(r'^aliyungf_tc='):
if not self.matchContent(r'alicdn\.com\/sd\-base\/static\/\d{1,2}\.\d{1,2}\.\d{1,2}\/image\/405\.png'):
return False

if not self.matchContent(r'cdn\.aliyun(cs)?\.com'):
if not self.matchContent(r'Sorry, your request has been blocked as it may cause potential threats to the server\'s security.'):
return False

if not self.matchStatus(405):
Expand Down

0 comments on commit 28ec94a

Please sign in to comment.