Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement size limits on HTTP header number, header size and body size #3392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dennis-zheng
Copy link

新增配置:http.maxReqHeaderNumber, http.maxReqHeaderSize, http.maxReqBodySize;
可根据需要配置,预防缓慢的HTTP拒绝服务攻击,例如Slow headers攻击

@CLAassistant
Copy link

CLAassistant commented Mar 20, 2024

CLA assistant check
All committers have signed the CLA.

@xia-chu
Copy link
Member

xia-chu commented Mar 20, 2024

感谢您的pr!

现在HttpRequestSplitter对http请求长度有最大kMaxCacheSize(4MB, 配置文件默认40KB)的限制,
应该是无法实现内存溢出攻击的。

另外,zlm也对http连接是有超时端口的,您说的攻击貌似无法实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants