fix: add xmlrpc.php blocking snippet - #11
Open
ai-anant wants to merge 1 commit into
Open
Conversation
Blocks xmlrpc.php at the webserver level to mitigate pingback DDoS reflection/amplification and XML-RPC based brute-force attacks. Adds a standalone snippet (htaccess/block_xmlrpc.htaccess) and merges it into htaccess_full, consistent with the repo conventions. Closes anantshri#4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds server-level blocking of
xmlrpc.phpto mitigate the two well-known XML-RPC abuse vectors in WordPress:system.multicallagainstwp-login.phpChanges:
htaccess/block_xmlrpc.htaccess(follows the 4-point convention fromhtaccess/README.md: purpose / vulnerability patched / requirement / conflicts).htaccess/htaccess_full, consistent with how the other standalone snippets (block_access,username_attachment_enumeration, etc.) are included there.This is consistent with the repo's existing posture:
theme_functions/xmlrpc.functions.phpdisables XML-RPC in PHP andngnix-config/blocking_wpfiles.nginxalready blocksxmlrpc.php— the Apache.htaccesslevel was the missing piece.Verification
apache2 -t: Syntax OK.GET /xmlrpc.phpwith standalone snippet → HTTP 403 (AH01797 client denied by server configuration), normal files still 200.htaccess_full:xmlrpc.phpdenied (deny logged), no.htaccessparse errors in error log..htaccesscontent).Notes
Closes #4