Skip to content

Commit 9dfa5fc

Browse files
committed
Fix #453 - ReDoS vulnerability in MachSpeed tablets detection as reported by @migueldemoura
1 parent e72371c commit 9dfa5fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ua-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@
650650
/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i // Le Pan Tablets
651651
], [VENDOR, MODEL, [TYPE, TABLET]], [
652652

653-
/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i // MachSpeed Tablets
653+
/android.+[;\/]\s*(Trio[\s\w\-\.]+)\s+build/i // MachSpeed Tablets
654654
], [MODEL, [VENDOR, 'MachSpeed'], [TYPE, TABLET]], [
655655

656656
/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i // Trinity Tablets

0 commit comments

Comments
 (0)