-
Notifications
You must be signed in to change notification settings - Fork 14k
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 mixin needs to be updated for 5.x #12918
Comments
@wvu-r7 I assume this still needs to be done? |
It does. We can't write exploits using this library functionality for newer WordPress versions. If plugin uploading doesn't work for 5.x, then post-auth RCE against WordPress would be "broken," as this is the most common way we shell a target. There are other ways, but we haven't implemented them in the library. |
Gotcha, you know who's probably gonna be assigned to this 🥇 |
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Nm, I'm an idiot, this is not resolved at all, ignore the opening and closing of this issue, we had an internal ticket tracking this which suggested that this was resolved by another PR. However closer inspection shows this is not the case and the issues still exist. |
of not, the library will need to be updated. however the modules that reference it directly most likely wont need to be since they're only applicable for older versions. |
Not sure if I understood it right, but if the lib changes the below modules won't works in older WordPress versions, right?
|
Seems
Plugin uploading seems to work fine. Tested on latest WordPress version 5.9.3
|
I'm wondering if wp_admin_shell_upload is not working ( |
You can skip the WordPress check using
If metasploit-framework/modules/exploits/unix/webapp/wp_admin_shell_upload.rb Lines 77 to 81 in ffbaf3b
|
I believe the original issue was resolved by #14882 I just ran through creating a fresh wordpress 6.4.2 build with # docker-compose.yml
services:
db:
# We use a mariadb image which supports both amd64 & arm64 architecture
image: mariadb:10.6.4-focal
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: '--default-authentication-plugin=mysql_native_password'
restart: always
environment:
- MYSQL_ROOT_PASSWORD=somewordpress
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=wordpress
expose:
- 3306
- 33060
wordpress:
image: wordpress:latest
ports:
- 8000:80
restart: always
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=wordpress
- WORDPRESS_DB_NAME=wordpress Confirming
We could make it configurable as a datastore option We've also got the ability to log all Http requests and responses with
From the docs: https://docs.metasploit.com/docs/pentesting/metasploit-guide-http.html#http-debugging Then it'd be super easy to just |
Yeah that's it, because of rename-wp-login (not uncommon to have wp-login renamed has hardening), so |
The following changes are known:
_wpnonce
has been renamed tononce
The following files will need changes:
All these files are suspect:
#12853
The text was updated successfully, but these errors were encountered: