Created
May 10, 2012 03:06
-
-
Save suin/2650772 to your computer and use it in GitHub Desktop.
URLに?-sをつけると隠しページが見れるプリロード
This file contains hidden or 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
<?php | |
class CVE_2012_1823 extends XCube_ActionFilter | |
{ | |
public function preFilter() | |
{ | |
if ( $_SERVER['QUERY_STRING'] === '-s' ) | |
{ | |
header('Content-type: text/html; charset=utf-8'); | |
$sourceCode = $this->_getSourceCode(); | |
highlight_string($sourceCode); | |
die; | |
} | |
} | |
protected function _getSourceCode() | |
{ | |
return '<?php | |
require_once("http://example.com/セキュリティエンジニア求人"); | |
'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment