Skip to content

Commit d80f71d

Browse files
committed
Extras module update.
1 parent 7d7d5f6 commit d80f71d

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

modules/module_extras.php

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Optional security extras module (last modified: 2025.07.31).
11+
* This file: Optional security extras module (last modified: 2025.08.02).
1212
*
1313
* False positive risk (an approximate, rough estimate only): « [ ]Low [x]Medium [ ]High »
1414
*/
@@ -273,15 +273,25 @@
273273
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for vulnerable webapps.'], $CIDRAM['BlockInfo']['IPAddr']);
274274
} // 2022.06.05 mod 2025.07.17
275275

276-
/** Probing for sendgrid env file. */
277-
if ($Trigger(preg_match('~(?:^|[/?])sendgrid\.env(?:$|[/?])~', $LCNrURI), 'Probing for sendgrid env file')) {
278-
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for sendgrid env file.'], $CIDRAM['BlockInfo']['IPAddr']);
279-
} // 2024.05.02 mod 2025.03.18
276+
/** Probing for SendGrid env file. */
277+
if ($Trigger(preg_match('~(?:^|[/?])sendgrid\.env(?:$|[/?])~', $LCNrURI), 'Probing for SendGrid env file')) {
278+
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for SendGrid env file.'], $CIDRAM['BlockInfo']['IPAddr']);
279+
} // 2024.05.02 mod 2025.08.02
280+
281+
/** Probing for Twilio env file. */
282+
if ($Trigger(preg_match('~(?:^|[/?])twilio\.env(?:$|[/?])~', $LCNrURI), 'Probing for Twilio env file')) {
283+
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for Twilio env file.'], $CIDRAM['BlockInfo']['IPAddr']);
284+
} // 2025.08.02
280285

281286
/** Probing for env file. */
282-
if ($Trigger(preg_match('~(?:^|[/?=])(?:config)?\.env(?:\.[\da-z]+)?(?:$|[/?])~', $LCNrURI), 'Probing for env file')) {
287+
if ($Trigger(preg_match('~(?:^|[/?=])(?:config|secrets?)?\.env(?:\.[\da-z]+)?(?:$|[/?])~', $LCNrURI), 'Probing for env file')) {
283288
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for env file.'], $CIDRAM['BlockInfo']['IPAddr']);
284-
} // 2025.03.18 mod 2025.07.27
289+
} // 2025.03.18 mod 2025.08.02
290+
291+
/** Probing for unsecured configuration file. */
292+
if ($Trigger(preg_match('~(?:^|/)\.?config.ya?ml(?:$|[/?])~', $LCNrURI), 'Probing for unsecured configuration file')) {
293+
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for unsecured configuration file.'], $CIDRAM['BlockInfo']['IPAddr']);
294+
} // 2025.08.02
285295

286296
/** Attempts by broken bot to incorrectly access ReCaptcha files (treating reference to remote resource as local). */
287297
$Trigger(preg_match('~/www\.google\.com/recaptcha/api\.js(?:$|[/?])~', $LCNrURI), 'Bad request'); // 2025.03.03

modules/modules.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ module_cookies.php:
239239
module_extras.php:
240240
Name: "Optional security extras module"
241241
False Positive Risk: "Medium"
242-
Version: "2025.211.0"
242+
Version: "2025.213.0"
243243
Dependencies:
244244
PHP: "^5.4|^7|^8"
245245
CIDRAM Core: "^1.13.1|^2.0.1"
@@ -254,7 +254,7 @@ module_extras.php:
254254
- "module_extras.php"
255255
- "module_extras.yaml"
256256
Checksum:
257-
- "a6f44b14b43039ce2fe6f8eae2a48dabad59c7ae5db87717298fd229a444eb0c:38917"
257+
- "c4cfc84c3c21bce81ebe9657bcc4c395673977a102fd7ef81a83e58ca723a894:39580"
258258
- "7b891d1fa4b1c52c410220bc758e8cb7064bd6040430fb149a5b60e9ae2e0838:890"
259259
Used with: "modules"
260260
Reannotate: "modules.dat"

0 commit comments

Comments
 (0)