Omit SNI when the host is an IP literal
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- cpp
- Domain
- networking, security
Research direction
Start in tls-stream.cpp, where SNI is configured during TLS stream context setup, and compare the current HostName handling with RFC 6066. Verify the behavior for literal IPv4 and IPv6 hosts, and consider the work complete when IP literals are not sent as SNI while hostname handling remains unchanged.
Written by the indexing model from the issue text.
Description
This is an additional finding from PR #1647
When SNI is configured during TLS stream context configuration (tls-stream.cpp), the code currently allows HostName to be set w/ an IP address,
According to RFC 6066:
Literal IPv4 and IPv6 addresses are not permitted in "HostName".
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 180
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 27
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from alibaba/PhotonLibOS
-
feature Requirement
Difficulty 5/5 Over a week Newbie friendliness 25/100
alibaba/PhotonLibOS#1564 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
alibaba/PhotonLibOS#1121 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
alibaba/PhotonLibOS#1094 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
alibaba/PhotonLibOS#1093 · 9 comments ·
-
Done
Difficulty 4/5 3-5 days Newbie friendliness 25/100
alibaba/PhotonLibOS#925 · 1 comment ·
All issues in alibaba/PhotonLibOS
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·