Fix case-insensitive HTTP scheme bypass in isSecure() - #3465
Conversation
Lowercase the URL before checking for insecure HTTP schemes, preventing mixed-case variants like Http:// or HTTP:// from bypassing the transport security check. Ref: https://issues.redhat.com/browse/EC-2014
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe downloader now performs case-insensitive insecure URL checks. Tests cover mixed- and uppercase HTTP schemes, including nested ChangesSecure URL validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix mixed-case HTTP scheme bypass in downloader isSecure()
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
|
🤖 Finished Review · ✅ Success · Started 11:40 AM UTC · Completed 11:48 AM UTC |
Code Review by Qodo
1.
|
|
Looks good to me Labels: PR fixes a case-insensitive HTTP scheme bypass — a security-related bug in transport security checks |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Lowercase the URL before checking for insecure HTTP schemes, preventing mixed-case variants like Http:// or HTTP:// from bypassing the transport security check.
Ref: https://issues.redhat.com/browse/EC-2014