PHP漏洞函数

1. is_numeric函数

bool is_numeric ( mixed $var )

此函数用于判断变量是否数字或者数字字符串,不仅能接受十进制,还能接受十六进制,这样就有了绕过的方法

<?php
echo is_numeric(123);       # 1
echo is_numeric('123');    # 1
echo is_numeric(0x123);    # 1
echo is_numeric('0x123');   # 1
echo is_numeric('123abc');  # 0
?>

后期根据学习更新....

原文地址:https://www.cnblogs.com/alummox/p/9484519.html