Git Product home page Git Product logo

bug-xmlrpc-wordpress's Introduction

English version

bug-xmlrpc-wordpress

A new and maybe old bug for hacking the site by sending stations inside the url as a post and how to prevent it

Location File : public_html > xmlrpc.php

Now how do we stop this problem?

There are 3 methods
  1. Plugin Wordpress : disable-xml-rpc
  2. Disable XML-RPC Pingbacks with a Plugin : disable-xml-rpc-pingback
  3. Configure XML-RPC and REST API Activation with a Plugin : rest-xmlrpc-data-checker

How to Disable xmlrpc.php Without a Plugin

There are 3 methods
  1. Disable xmlrpc.php via a Filter : add_filter( 'xmlrpc_enabled', '__return_false' ); An option here is to use the xmlrpc_enabled filter to disable xmlrpc.php. Add this function to a plugin and activate it on your site:

2. Disable xmlrpc.php via the .htacess File : ` Order Allow,Deny Deny from all ` **In your .htaccess file, add this code**
3. Have Your Hosting Provider Disable xmlrpc.php : `location ~* ^/xmlrpc.php$ { return 403; }` **snippet of code is automatically added to the Nginx.config file**
In the shell folder, I will put a bunch of files that the hacker injected into our server for you to see what she did.

I made a default .htaccess security file for you if you want to replace it in your host to increase your security

Author: Amirreza Heydari

Persian version

bug-xmlrpc-wordpress

یک باگ جدید و شاید قدیمی برای هک سایت با ارسال ایستگاه های داخل url به عنوان پست و نحوه جلوگیری از آن

محل فایل: public_html > xmlrpc.php

حالا چگونه جلوی این مشکل را بگیریم؟

3 روش وجود دارد
  1. افزونه وردپرس: disable-xml-rpc
  2. Pingback های XML-RPC را با یک افزونه غیرفعال کنید: disable-xml-rpc-pingback
  3. فعال‌سازی XML-RPC و REST API را با یک افزونه پیکربندی کنید: rest-xmlrpc-data-checker

چگونه xmlrpc.php را بدون پلاگین غیرفعال کنیم

3 روش وجود دارد
  1. xmlrpc.php را از طریق فیلتر غیرفعال کنید: add_filter('xmlrpc_enabled', '__return_false' ); یک گزینه در اینجا استفاده از فیلتر xmlrpc_enabled برای غیرفعال کردن xmlrpc.php است. این تابع را به یک افزونه اضافه کنید و آن را در سایت خود فعال کنید:

  1. xmlrpc.php را از طریق فایل .htacess غیرفعال کنید: <Files xmlrpc.php> سفارش اجازه، انکار انکار از همه </Files> در فایل htaccess خود، این کد را اضافه کنید

  1. از ارائه دهنده هاست خود بخواهید xmlrpc.php را غیرفعال کند : location ~* ^/xmlrpc.php$ { بازگشت 403; } قطعه کد به طور خودکار به فایل Nginx.config اضافه می شود
در پوشه shell یکسری از فایل هایی که هکر در سرور ما تزریق کرده بود را برای شما قرار میدم تا ببینید چه کار کرده است

یک فایل پیشفرض امنیتی .htaccess برای شما درست کردم اگر دوست داشتید در هاست خود جایگزین کنید تا امنیت شما بالا برود

نویسنده : امیررضا حیدری

bug-xmlrpc-wordpress's People

Contributors

amirrezaheydari81 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.