mirror of
https://github.com/bunkerity/bunkerweb-plugins.git
synced 2026-04-25 20:25:57 +03:00
[PR #147] fix: multipart parsing for HTTP/2 support in ClamAV plugin #145
Labels
No labels
bug
bug
clamav
crowdsec
documentation
enhancement
enhancement
enhancement
pull-request
question
virustotal
virustotal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bunkerweb-plugins#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bunkerity/bunkerweb-plugins/pull/147
Author: @rayshoo
Created: 6/23/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
f2ef5e4fix: multipart parsing for HTTP/2 support in ClamAV plugin📊 Changes
1 file changed (+262 additions, -283 deletions)
View changed files
📝
clamav/clamav.lua(+262 -283)📄 Description
Description
This PR improves the ClamAV plugin's multipart form-data parsing to properly support HTTP/2 requests. The original implementation had issues parsing multipart data in HTTP/2 environments, causing file uploads to bypass ClamAV scanning.
Changes Made
Technical Details
I modified the code to support HTTP/2 because the original multipart parsing wasn't working properly. Since I'm not very familiar with Lua code, I got help from ChatGPT and Claude AI to implement these improvements. The updated code has been thoroughly tested and works excellently.
Testing
Impact
This fix ensures that file uploads via HTTP/2 are properly scanned by ClamAV, closing a potential security gap where malicious files could bypass antivirus scanning in HTTP/2 environments.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.