-
Notifications
You must be signed in to change notification settings - Fork 111
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
Remote command execution vulnerability in 3.3.16 #1352
Comments
PicklerBox
changed the title
Remote command execution vulnerability in 3.3.17
Remote command execution vulnerability in 3.3.16
Sep 24, 2022
`if((isset($_POST['submitsave']))){
}` |
Thanks, looks like this was not completely back-patched from 3.4 |
Is there a fix/patch for this that can be applied? |
This looks easy, just check the same code in 3.4 and backport it # save edited template file
$SavedFile = $_POST['edited_file'];
if(!filepath_is_safe($themepath.$SavedFile,GSTHEMESPATH,true)) die(); // mitigation check
$FileContents = get_magic_quotes_gpc() ? stripslashes($_POST['content']) : $_POST['content']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go to the edit-theme. PHP file, click the sava Changes button below, and grab the package.
Use.. / to change the edited_file parameter in the request package
Then we access index.php
The text was updated successfully, but these errors were encountered: