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 42
42
"x_api_key" ,
43
43
"x_forwarded_for" ,
44
44
"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
45
58
]
46
59
47
60
48
61
class EventScrubber (object ):
49
62
def __init__ (self , denylist = None ):
50
63
# type: (Optional[List[str]]) -> None
51
64
self .denylist = DEFAULT_DENYLIST if denylist is None else denylist
65
+ self .denylist = [x .lower () for x in self .denylist ]
52
66
53
67
def scrub_dict (self , d ):
54
68
# type: (Dict[str, Any]) -> None
You can’t perform that action at this time.
0 commit comments