doushi9474 2011-12-22 13:20
浏览 122
已采纳

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

I got a lot of suhosin errors in my /var/log/messages

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')

Here is my suhosin configuration in php.ini file

[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

So how can I fix that issue? I tried to raise all the values above but it didn't work also.

  • 写回答

2条回答 默认 最新

  • duandie0884 2012-02-22 17:12
    关注

    I got the same error. To fix it i edited /etc/php.d/suhosin.ini. First I changed

    suhosin.request.max_varname_length = 64
    

    to

    suhosin.request.max_varname_length = 128
    

    But this didn't fix it, it just changed the error message subtly (Note the complaint about the GET instead of the request):

    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>') 
    

    So then I changed:

    suhosin.get.max_name_length = 64
    

    to

    suhosin.get.max_name_length = 128
    

    Then my problem was fixed. I chosse 128 because I noticed the URL that was causing the issue was about 70 characters long.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应