-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
fix: XSS vulnerability due to polyglot file type upload #7149
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9c91fae
to
ef31255
Compare
ef31255
to
2de1568
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7149 +/- ##
============================================
+ Coverage 56.99% 57.17% +0.17%
- Complexity 3999 4047 +48
============================================
Files 714 719 +5
Lines 24110 24369 +259
Branches 1585 1600 +15
============================================
+ Hits 13742 13932 +190
- Misses 9756 9820 +64
- Partials 612 617 +5 ☔ View full report in Codecov by Sentry. |
2de1568
to
59b51eb
Compare
Quality Gate passedIssues Measures |
/ping @halo-dev/sig-halo |
What type of PR is this?
/kind bug
/area core
/milestone 2.20.x
What this PR does / why we need it:
修复文件类型限制能通过混合文件类型绕过检测的问题
参考:https://github.com/halo-dev/halo/security/advisories/GHSA-99mc-ch53-pqh9
Does this PR introduce a user-facing change?