加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Null Byte Injection

发布时间:2020-12-15 20:54:37 所属栏目:大数据 来源:网络整理
导读:以前不知道,记下来。 Perl PHP Null Byte Injection rain.forest.puppy outlined in Phrack issue 55 the uses of NUL Byte Injection within Perl,and how these could be exploited. The results were very similar in PHP. An example of a NULL byte vu
以前不知道,记下来。
Perl PHP Null Byte Injection

rain.forest.puppy outlined in Phrack issue 55 the uses of NUL Byte Injection within Perl,and how these could be exploited. The results were very similar in PHP.

An example of a NULL byte vulnerable PHP script is as follows:

$file = $_GET['file'];
require_once("/var/www/$file.php");

While the above script appears to be secured by forcing the ".php" file extension,it could be exploited as follows: http://www.example.com/index.php?file=../../etc/passwd%00

The above NULL byte injection would result in the mandatory appended file extension (.php) to be dropped,and the /etc/passwd file to be loaded.

Perl PHP Null Byte Injection

rain.forest.puppy outlined in Phrack issue 55 the uses of NUL Byte Injection within Perl,and the /etc/passwd file to be loaded.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读