exploit the possibilities

WordPress WPML Missing Authentication

WordPress WPML Missing Authentication
Posted Mar 14, 2015
Authored by Jouko Pynnonen | Site klikki.fi

WordPress WPML plugin versions prior to 3.1.9 have unauthenticated administrative functions.

tags | exploit
MD5 | e49a6281930bce4df887f454ca5a5504

WordPress WPML Missing Authentication

Change Mirror Download
One more vulnerability reported on March 02 and fixed in version 3.1.9:

*4. Unauthenticated administrative functions*

An unauthenticated attacker may under certain conditions bypass WPML's
nonce check and perform administrative functions.

The administrative ajax functions are protected with nonces to prevent
unauthorised use. Login state is not checked. If the nonce check fails with
the $_REQUEST values, there is a secondary check that also has to fail
before the request is denied:

if (!( isset( $_GET[ 'icl_ajx_action' ] ) && $_GET[ 'nonce' ] ==
wp_create_nonce( $_GET[ 'icl_ajx_action' ] ) )) {
die('Invalid nonce');

The problem is the mixed use of $_REQUEST and $_GET. If the above check
succeeds, subsequent code again uses $_REQUEST instead of $_GET to
determine the ajax action to perform.

If the attacker has a valid nonce generated by the target WordPress site -
from any plug-in or the core system - then they can pass the above check.
They can then define a different ajax action in POST parameters to perform
administrative functions without authentication.

An unauthenticated attacker could then execute any of the about 50 WPML
ajax actions intended for administrators only. There is a lot of choice for
manipulating or destroying data. For instance, it's possible to define a
root html file which is evaluated as

include $html_file;

This would allow reading server-side files or evaluating PHP code hosted on
remote sites (if allowed by PHP settings).

A default WordPress installation with only WPML installed apparently
doesn't generate nonces for unauthenticated users, so this is probably not
exploitable unless there are other plug-ins installed. For example bbpress
generates nonces for unauthenticated users.

Proof of concept:

<form method=POST action="
<input type=hidden name="icl_ajx_action"
<input type=hidden name="_icl_nonce" value="(ignored)">
<input type=hidden name="icl_language_negotiation_type" value="1">
<input type=hidden name="use_directory" value="1">
<input type=hidden name="show_on_root" value="html_file">
<input type=hidden name="root_html_file_path" value="/etc/passwd">
<input type=submit>

In the above example, a toggle-subscription nonce generated by bbpress is
used. It can be retrieved by unauthenticated users (go to a forum page,
view source). On submitting the form, WPML will pass the ajax action
because the bbpress nonce is valid.

> The ajax action is determined from the POST parameters. In this example,
WPML settings would be changed so that contents of /etc/passwd is shown as
the default page on the website.

This PoC was successfully tested with WPML

Jouko Pynnönen <jouko@iki.fi>
Klikki Oy - http://klikki.fi - Twitter: @klikkioy

Login or Register to add favorites

File Archive:

November 2020

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    2 Files
  • 2
    Nov 2nd
    9 Files
  • 3
    Nov 3rd
    15 Files
  • 4
    Nov 4th
    90 Files
  • 5
    Nov 5th
    22 Files
  • 6
    Nov 6th
    16 Files
  • 7
    Nov 7th
    1 Files
  • 8
    Nov 8th
    1 Files
  • 9
    Nov 9th
    40 Files
  • 10
    Nov 10th
    27 Files
  • 11
    Nov 11th
    28 Files
  • 12
    Nov 12th
    13 Files
  • 13
    Nov 13th
    18 Files
  • 14
    Nov 14th
    2 Files
  • 15
    Nov 15th
    2 Files
  • 16
    Nov 16th
    29 Files
  • 17
    Nov 17th
    15 Files
  • 18
    Nov 18th
    15 Files
  • 19
    Nov 19th
    21 Files
  • 20
    Nov 20th
    16 Files
  • 21
    Nov 21st
    1 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    19 Files
  • 24
    Nov 24th
    32 Files
  • 25
    Nov 25th
    9 Files
  • 26
    Nov 26th
    11 Files
  • 27
    Nov 27th
    15 Files
  • 28
    Nov 28th
    9 Files
  • 29
    Nov 29th
    2 Files
  • 30
    Nov 30th
    17 Files

Top Authors In Last 30 Days

File Tags


packet storm

© 2020 Packet Storm. All rights reserved.

Security Services
Hosting By