Title: Secure XML-RPC
Author: Eric Mann
Published: <strong>2014-يىلى 1-يانۋار</strong>
Last modified: 2014-يىلى 30-ئاۋغۇست

---

قىستۇرما ئىزدە

![](https://ps.w.org/secure-xml-rpc/assets/banner-772x250.png?rev=975920)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/secure-xml-rpc/assets/icon-256x256.png?rev=975920)

# Secure XML-RPC

 يازغۇچى [Eric Mann](https://profiles.wordpress.org/ericmann/)

[چۈشۈر](https://downloads.wordpress.org/plugin/secure-xml-rpc.1.0.0.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/secure-xml-rpc/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/secure-xml-rpc/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/secure-xml-rpc/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/secure-xml-rpc/#developers)

 [قوللاش](https://wordpress.org/support/plugin/secure-xml-rpc/)

## چۈشەندۈرۈش

Rather than sending usernames and passwords in plain text with every request, we’re
going to use a set of public/secret keys to hash data and authenticate instead.

On your WordPress profile, you will see a new «Remote Publishing Permissions» section
listing out the applications that have permission to publish, along with their public
and secret keys.

New applications can be added whenever you want. You can also change the names of
applications, or revoke publishing permission by deleting them.

### Additional Information

Lock graphic designed by Scott Lewis from the thenounproject.com

## ئېكران كەسمىسى

[⌊The new Remote Publishing Permissions area of the user profile.⌉⌊The new Remote
Publishing Permissions area of the user profile.⌉[

The new Remote Publishing Permissions area of the user profile.

## ئورنىتىش

#### Manual Installation

 1. Upload the entire `/secure-xml-rpc` directory to the `/wp-content/plugins/` directory.
 2. Activate Secure XML-RPC through the ›Plugins‹ menu in WordPress.

## FAQ

  How do I use the new authorization?

The old username/password paradigm can still be used, but will result in a `X-Deprecated`
header being returned by the server.

From now on, you will send an `Authorization` header. This header will be the publishing
application’s public key, two pipe (`|`) characters, and a hash of the application’s
secret key concatenated with the body of the request.

  How do I generate the message hash?

Say your application has the following information:
 * Public Key: b730db0864b0d4453ba6a26ad6613cd4*
Secret Key: 7647a19f5bf3e9fd001419900ad48a54

And you want to make the following request (whitespace/indentation added for readability,
but is removed when calculating hashes):

    ```
    <?xml version="1.0"?>
    <methodCall>
      <methodName>wp.getPosts</methodName>
      <params>
        <param>
          <value><i4>1</i4></value>
        </param>
        <param>
          <value><string></string></value>
        </param>
        <param>
          <value><string></string></value>
        </param>
      </params>
    </methodCall>
    ```

Note that the second and third parameters (traditionally `username` and `password`)
are empty. Usernames and passwords can still be specified, but will result in the
server returning an `X-Deprecated` header.

Your Authorization header would thus become:

    ```
    b730db0864b0d4453ba6a26ad6613cd4||3fac15f99f7a178f922bcc4942e62dc9001b2a45118fc3a6f3aebd77d25f4d58
    ```

The second part of the header is generated in PHP by calculating:

    ```
    hash( 'sha256', '7647a19f5bf3e9fd001419900ad48a54' . hash( 'sha256', '7647a19f5bf3e9fd001419900ad48a54' . {request_body} ) )
    ```

WordPress will read the header and log you in as usual, but you never need to send
your password across the wire.

In this paradigm, application secret keys should _also_ be treated as passwords –
they are sensitive information!

  Why are we using the secret key twice?

Some developers raised concerns about [length extension attacks](https://blog.whitehatsec.com/hash-length-extension-attacks/)
in previous editions of the plugin. While length extension isn’t strictly necessary
when dealing with XML-based messaging, a double hash helps end the discussion around
potentially-related vulnerabilities.

The double-hash is similar to but simpler than HMAC and is fairly easy to implement
in any programming language. Just note, PHP’s `hash()` function returns a base64-
encoded string, not a raw hash of the data passed in.

  Do I have to copy/paste my application keys into remote systems?

Not necessarily.

The latest version of the plugin adds a new XML-RPC method to the system that allows
for the generation of user-specific application keys remotely. _Please only ever
call this method over a secure/trusted network connection_ when setting up an application
for the first time.

## باھالاشلار

![](https://secure.gravatar.com/avatar/06288c97f5f235cc2685c817994161456093c02621eaa5ce0856b8ee3fab3299?
s=60&d=retro&r=g)

### 󠀁[Secure fail ?](https://wordpress.org/support/topic/secure-fail/)󠁿

 [Anonymous User 13245058](https://profiles.wordpress.org/anonymized-13245058/) 
2016-يىلى 3-سېنتەبىر

This plugin has been hacked on a client website…

![](https://secure.gravatar.com/avatar/c0c5b4ff7ab8a4de9e2651d48d0fd7d2ebd77c5ba1bc9bf67f58b2d9ea0c2341?
s=60&d=retro&r=g)

### 󠀁[Very useful plugin](https://wordpress.org/support/topic/very-useful-plugin-440/)󠁿

 [benjib0t](https://profiles.wordpress.org/benjib0t/) 2017-يىلى 7-فېۋرال

 [ 3 باھالاشنىڭ ھەممىنى ئوقۇش ](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/)

## تۆھپىكار ۋە ئىجادكار

«Secure XML-RPC» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە 
قوشقان.

تۆھپىكار

 *   [ Eric Mann ](https://profiles.wordpress.org/ericmann/)

[«Secure XML-RPC» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/secure-xml-rpc)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/secure-xml-rpc/)،
[SVN خەزىنە](https://plugins.svn.wordpress.org/secure-xml-rpc/) تەكشۈرۈپ ياكى [RSS](https://plugins.trac.wordpress.org/log/secure-xml-rpc/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/secure-xml-rpc/)
گە مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

#### 1.0.0

 * New: Add a custom RPC method for generating application keys remotely.
 * Dev change: Move all functional implementations inside our pseudo-namespace.
 * Dev change: Use a constant-time string comparison method for better security 
   and less data leakage during authentication.
 * Dev change: Use a double-hash to prevent any potential length-extension attacks.

#### 0.1.0

 * First release

## Meta

 *  Version **1.0.0**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **12 يىل بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **50+**
 *  WordPress نەشرى ** 3.8 ياكى يۇقىرى **
 *  **4.0.38** دا سىنالغان
 *  تىل
 * [English (US)](https://wordpress.org/plugins/secure-xml-rpc/)
 * بەلگە
 * [authentication](https://ug.wordpress.org/plugins/tags/authentication/)[oauth](https://ug.wordpress.org/plugins/tags/oauth/)
   [security](https://ug.wordpress.org/plugins/tags/security/)[xmlrpc](https://ug.wordpress.org/plugins/tags/xmlrpc/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/secure-xml-rpc/advanced/)

## دەرىجە

 3.7/5 يۇلتۇز

 *  [  2 5-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/?filter=5)
 *  [  0 4-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/?filter=4)
 *  [  0 3-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/?filter=3)
 *  [  0 2-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/?filter=2)
 *  [  1 1-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/#new-post)

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/secure-xml-rpc/reviews/)

## تۆھپىكار

 *   [ Eric Mann ](https://profiles.wordpress.org/ericmann/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/secure-xml-rpc/)

## ئىئانە

بۇ قىستۇرمىنىڭ ياخشىلىنىشىنى قوللامسىز؟

 [ بۇ قىستۇرمىغا ئىئانە قىلىش ](http://wordpress.org/plugins/secure-xmlrpc)