|
8 | 8 | * License: GNU/GPLv2 |
9 | 9 | * @see LICENSE.txt |
10 | 10 | * |
11 | | - * This file: Optional security extras module (last modified: 2025.07.31). |
| 11 | + * This file: Optional security extras module (last modified: 2025.08.02). |
12 | 12 | * |
13 | 13 | * False positive risk (an approximate, rough estimate only): « [ ]Low [x]Medium [ ]High » |
14 | 14 | */ |
|
273 | 273 | $CIDRAM['Reporter']->report([15, 21], ['Caught probing for vulnerable webapps.'], $CIDRAM['BlockInfo']['IPAddr']); |
274 | 274 | } // 2022.06.05 mod 2025.07.17 |
275 | 275 |
|
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 |
280 | 285 |
|
281 | 286 | /** 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')) { |
283 | 288 | $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 |
285 | 295 |
|
286 | 296 | /** Attempts by broken bot to incorrectly access ReCaptcha files (treating reference to remote resource as local). */ |
287 | 297 | $Trigger(preg_match('~/www\.google\.com/recaptcha/api\.js(?:$|[/?])~', $LCNrURI), 'Bad request'); // 2025.03.03 |
|
0 commit comments