Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0970eac

Browse files
bcallermattrobenolt
authored andcommitted
[Security] Bump uap-core to 0.8.0 to avoid DoS
A security advisory for uap-core was published at GHSA-cmcx-xhr8-3w9p Denial of Service in uap-core <=0.7.2 when processing crafted User-Agent strings This fixes the 4 regular expressions vulnerable to Regular Expression Denial of Service (REDoS).
1 parent 29f506c commit 0970eac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ua_parser/user_agent_parser_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def testPGTSStrings(self):
8585
def testParseAll(self):
8686
user_agent_string = "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; fr; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe)"
8787
expected = {
88-
"device": {"family": "Other", "brand": None, "model": None},
88+
"device": {"family": "Mac", "brand": "Apple", "model": "Mac"},
8989
"os": {
9090
"family": "Mac OS X",
9191
"major": "10",

0 commit comments

Comments
 (0)