Skip to content

Instantly share code, notes, and snippets.

@suin
Created May 10, 2012 03:06
Show Gist options
  • Save suin/2650772 to your computer and use it in GitHub Desktop.
Save suin/2650772 to your computer and use it in GitHub Desktop.
URLに?-sをつけると隠しページが見れるプリロード
<?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