Skip to content

Commit 4803a1c

Browse files
committed
Fix bugged signature.
1 parent e49999b commit 4803a1c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/module_extras.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
$LCNrURI = str_replace('\\', '/', strtolower($CIDRAM['BlockInfo']['rURI']));
5353

5454
/** Directory traversal protection. */
55-
// (Bugged) if (!$Trigger(preg_match('~%5[cf]\.{2,}%5[cf]~', $LCNrURI), 'Traversal attack')) {
55+
if (!$Trigger(preg_match('~%5[cf]\.{2,}%5[cf]~', $LCNrURI), 'Traversal attack')) {
5656
/** Detect bad/dangerous/malformed requests. */
57-
// $Trigger(preg_match('~%5[cf]\.%5[cf]|%5[cf]{3,}|[\x00-\x1f\x7f]~', $LCNrURI), 'Bad request'); // 2017.01.13 mod 2024.02.08
58-
// } // 2017.01.13 mod 2024.02.08
57+
$Trigger(preg_match('~%5[cf]\.%5[cf]|%5[cf]{3,}|[\x00-\x1f\x7f]~', $LCNrURI), 'Bad request'); // 2017.01.13 mod 2024.02.08
58+
} // 2017.01.13 mod 2024.02.08
5959

6060
/** WordPress user enumeration (modified 2025.03.03). */
6161
if ($Trigger(preg_match('~\?author=\d+~', $LCNrURI), 'WordPress user enumeration not allowed')) {

modules/modules.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ module_cookies.php:
220220
module_extras.php:
221221
Name: "Optional security extras module"
222222
False Positive Risk: "Medium"
223-
Version: "2025.247.1"
223+
Version: "2025.247.2"
224224
Dependencies:
225225
PHP: "^5.4|^7|^8"
226226
CIDRAM Core: "^1.13.1|^2.0.1"
@@ -235,7 +235,7 @@ module_extras.php:
235235
- "module_extras.php"
236236
- "module_extras.yaml"
237237
Checksum:
238-
- "1174300b3c50c343355994c9135301949274460bdae03bf7516a986f80a56046:52516"
238+
- "7227b98793b48af4ad761f2b3cb858d1f1812f232fc30720fe366c2526c60350:52498"
239239
- "7b891d1fa4b1c52c410220bc758e8cb7064bd6040430fb149a5b60e9ae2e0838:890"
240240
Used with: "modules"
241241
Reannotate: "modules.dat"

0 commit comments

Comments
 (0)