module http/https, inccorrect 'Host' HTTP header when using IPv6 (-6)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- c
- Domain
- networking
Research direction
Start by tracing how the http/https module builds the Host header when IPv6 is enabled, then compare it with the IPv4 request shown in the issue. The issue provides no file or test names, so locate the request construction code and check for existing coverage. Done means IPv6 requests use the server name in Host, preserving virtual host behavior.
Written by the indexing model from the issue text.
Description
Hello,
When enabling IPv6 cracking with the http/https module, the 'Host' HTTP header sent is 'Host: a:b.c:d' instead of 'Host: servername' as it is with IPv4:
ncrack slt01.hqr.fi:80 -m http,path=/ --user test --pass test
results in the following first request:
GET / HTTP/1.1
Host: slt01.hqr.fi
and with IPv6:
ncrack -6 slt01.hqr.fi:80 -m http,path=/ --user test --pass test
results in the following first request
GET / HTTP/1.1
Host: 2001:bc8:3d1d:1ab0::bee
Obviously this prevents ncrack from working correctly on Virtual Hosts! :-(
Is it something easily fixable?
Thanks in advance!
- Dominant language
- C
- Stars
- 1.2k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 nmap/ncrack
-
13/03/2006Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Build failure with OpenSSL 4.0Possibly taken @vmpyr claimed this 121 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
' Hydra brute force a Wordpress admin login hydra -L usernames.txt -P passwords.txt $ip smb -V -fOpen
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
error C3861Open
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
severity: low
Difficulty 1/5 Under an hour Newbie friendliness 72/100
luainkernel/lunatik#2727 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 6 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bot-triaged module: cuda module: memory usage module: pybind module: tensor creation triaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pytorch/pytorch#206707 · 1 comment ·
Maintainers usually reply within 1 day
-
area/build-framework kind/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yugabyte/yugabyte-db#39342 ·
Maintainers usually reply within 1 day