File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 4242 "x_api_key" ,
4343 "x_forwarded_for" ,
4444 "x_real_ip" ,
45+ # other common names used in the wild
46+ "aiohttp_session" , # aiohttp
47+ "connect.sid" , # Express
48+ "csrf_token" , # Pyramid
49+ "csrf" , # (this is a cookie name used in accepted answers on stack overflow)
50+ "_csrf" , # Express
51+ "_csrf_token" , # Bottle
52+ "PHPSESSID" , # PHP
53+ "_session" , # Sanic
54+ "symfony" , # Symfony
55+ "user_session" , # Vue
56+ "_xsrf" , # Tornado
57+ "XSRF-TOKEN" , # Angular, Laravel
4558]
4659
4760
4861class EventScrubber (object ):
4962 def __init__ (self , denylist = None ):
5063 # type: (Optional[List[str]]) -> None
5164 self .denylist = DEFAULT_DENYLIST if denylist is None else denylist
65+ self .denylist = [x .lower () for x in self .denylist ]
5266
5367 def scrub_dict (self , d ):
5468 # type: (Dict[str, Any]) -> None
You can’t perform that action at this time.
0 commit comments