suhosin中有很多请求变量名长度错误

iLi*_*x85 8 php vbulletin suhosin

我的/ var/log/messages中出现了很多suhosin错误

Dec 22 06:28:12 server suhosin[4637]: ALERT - configured request variable name length limit exceeded - dropped variable '66583-((-....-..................-....-__-......-................-......-............-........-......-\\__-))' (attacker '127.0.0.1', file '/home/user/public_html/vb/showthread.php')
Dec 22 06:28:14 server suhosin[4620]: ALERT - configured request variable name length limit exceeded - dropped variable '125055-........-..............-............-Zombie-Driftwood-2010-DVDrip-..........-............-......-18-............-......-........-............' (attacker '127.0.0.1', file '/home/user/public_html/vb/showthread.php')
Run Code Online (Sandbox Code Playgroud)

这是我的php.ini文件中的suhosin配置

[suhosin]
suhosin.cookie.encrypt = Off
suhosin.request.max_vars = 10000
suhosin.request.max_value_length = 65000
suhosin.post.max_vars = 10000
suhosin.post.max_value_length = 5000
suhosin.get.max_vars = 10000
suhosin.get.max_value_length = 10000
suhosin.memory_limit = 128M
Run Code Online (Sandbox Code Playgroud)

那么我该如何解决这个问题呢?我试图提高上面的所有值,但它也不起作用.

Tom*_*Tom 17

我得到了同样的错误.修复它我编辑/etc/php.d/suhosin.ini.首先,我改变了

suhosin.request.max_varname_length = 64
Run Code Online (Sandbox Code Playgroud)

suhosin.request.max_varname_length = 128
Run Code Online (Sandbox Code Playgroud)

但这并没有解决它,它只是巧妙地改变了错误信息(注意关于GET而不是请求的投诉):

Feb 22 17:07:04 <servern name> suhosin[23389]: ALERT - configured GET variable name length limit exceeded - dropped variable '/mehul_bakrania/feedback/personal_coach_and_peak_performance_trai/159296' (attacker '<ip address>', file <file path>') 
Run Code Online (Sandbox Code Playgroud)

所以我改变了:

suhosin.get.max_name_length = 64
Run Code Online (Sandbox Code Playgroud)

suhosin.get.max_name_length = 128
Run Code Online (Sandbox Code Playgroud)

然后我的问题得到解决.我选择128因为我注意到导致问题的URL长约70个字符.