feat (http) : expose TLS key exchange metadata - #7680
Conversation
Neo - PR Security ReviewNo exploitable security vulnerabilities — this change reads a uint16 from an already-established TLS connection and stores its constrained string form in the DSL event map, introducing no new attack surface. What Neo reviewed
Comment |
|
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 (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe HTTP protocol now exposes the negotiated TLS key exchange group as ChangesHTTP TLS metadata
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change exposes negotiated TLS key-exchange metadata without changing TLS configuration or request handling. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The PR implements issue Full details: Docstring CoverageExplanation Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Proposed changes
Closes #7665
Expose the negotiated TLS key exchange group in HTTP DSL metadata as
key_exchange.The value is populated from
tls.ConnectionState.CurveIDusingCurveID.String().When no key exchange group is available (
CurveID == 0),key_exchangeis omitted.No TLS configuration, request handling, or handshake behavior is changed.
Proof
Tested with:
go test ./pkg/protocols/http -count=1Result:
ok github.com/projectdiscovery/nuclei/v3/pkg/protocols/httpAlso verified:
git diff --checkThe tests cover:
SYNTAX-REFERENCE.mdwas regenerated and includeskey_exchange.Checklist
devbranchSummary by CodeRabbit
X25519orX25519MLKEM768, when available.key_exchangerequest field.