Please complete the following information:
- OS: Windows 10
- Browser and version: Google Chrome 138.0.7204.184
- Extension version: 1.0.10
Describe the bug
DLPP breaks when hooking the RegExp.prototype.exec function. At one point, it would throw a stack recursion exception and the page would load, but now trying to reproduce this later, I just am seeing pages hang instead. It appeared to be calling this under the hood as part of some internal logic and getting fooled by its hooked version. I'm not sure if this is a known or intended limitation.
To Reproduce
- Set the following configuration for DLPP
{
"config": {},
"hooks": {
"ReDoS": {
"function": [
"RegExp.prototype.exec"
]
}
}
}
- Enable DLPP for a domain
- Load a page that has JavaScript on it
- Observe that the page hangs and no longer loads
Please complete the following information:
Describe the bug
DLPP breaks when hooking the
RegExp.prototype.execfunction. At one point, it would throw a stack recursion exception and the page would load, but now trying to reproduce this later, I just am seeing pages hang instead. It appeared to be calling this under the hood as part of some internal logic and getting fooled by its hooked version. I'm not sure if this is a known or intended limitation.To Reproduce
{ "config": {}, "hooks": { "ReDoS": { "function": [ "RegExp.prototype.exec" ] } } }