We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426f3b5 commit 5ffc14dCopy full SHA for 5ffc14d
lib/utils/queryparams.js
@@ -32,8 +32,11 @@ module.exports = (req, url) => {
32
const searchParams = new URLSearchParams(search.replace(/\[\]=/g, '='))
33
34
for (const [name, value] of searchParams.entries()) {
35
- // Use Set for O(1) dangerous property lookup instead of multiple string comparisons
36
- if (DANGEROUS_PROPERTIES.has(name)) {
+ // Split parameter name into segments by dot or bracket notation
+ const segments = name.split(/[\.\[\]]+/).filter(Boolean)
37
+
38
+ // Check each segment against the dangerous properties set
39
+ if (segments.some(segment => DANGEROUS_PROPERTIES.has(segment))) {
40
continue // Skip dangerous property names
41
}
42
0 commit comments