-
Notifications
You must be signed in to change notification settings - Fork 732
Add uploaded file name check; refresh LFI / filename checks #1095
Conversation
|
for drupal 8 settings.local.php is missing |
|
@emphazer Awesome, added this. Also added it to |
|
@lifeforms and for restricted files |
|
@lifeforms are you planning to implement some of the stuff from #961 too? |
|
@emphazer Thanks for the suggestions. I've added them, and also added some new stuff myself. I've also synced up the dotfiles in |
|
@lifeforms sure |
|
Wow. I really like this PR. |
|
There is now a conflict with As decided yesterday in the chat, @lifeforms will resolve the conflict, I will run the PR and merge afterwards. |
|
Resolved the conflict. |
|
I tested the PR and triggered 932180 via The PR works as intended. Thank you for submitting. Merging now. |
If a web application allows unrestricted file uploads, and the web root/application source tree is writable, uploading configuration files might cause remote code execution.
The case for adding this rule was to block uploads of files named
.htaccess, but I have also included some other common configuration files. More file names can be added in the future.The rule cannot reuse the existing
restricted-files.datafile, since some of its entries contain file paths (to lower false positives), while this rule only checks bare file names.Since this rule is not language specific, I've put it in the RCE conf file.
Some of the entries would also trigger 933110 (PHP Injection Attack: PHP Script File Upload Found).
Resolves #817.