Skip to content
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

runtime error: invalid memory address or nil pointer dereference #10

Closed
mo-xiaoxi opened this issue Apr 20, 2022 · 3 comments
Closed

runtime error: invalid memory address or nil pointer dereference #10

mo-xiaoxi opened this issue Apr 20, 2022 · 3 comments

Comments

@mo-xiaoxi
Copy link

Thank you for your contribution, it is an awesome tool !!!
The program throws an exception when I try to run the following command.

Bash:

./wcvs -gp ./log -gr -gc -uac -r 2 -rl 3 -red templates/recdomains_list -st parameter -u https://6o4xu.vk.com

Error Message:

GetWebsite: Get "https://6o4xu.vk.com": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x559fa0]

goroutine 1272 [running]:
net/url.(*URL).String(0x0)
        /usr/local/go/src/net/url/url.go:813 +0x40
github.com/Hackmanit/Web-Cache-Vulnerability-Scanner/pkg.getStatusCode()
        /home/max/Documents/git/Web-Cache-Vulnerability-Scanner/pkg/recon.go:1284 +0x35
github.com/Hackmanit/Web-Cache-Vulnerability-Scanner/pkg.checkPoisoningIndicators(0xc000242050, {{0xc000016300, 0x14}, {0x0, 0x0}, {0xc0000ece00, 0xd7}, {0xc000c2e340, 0x192}}, {0xc000328a00, ...}, ...)
        /home/max/Documents/git/Web-Cache-Vulnerability-Scanner/pkg/requests.go:96 +0xb49
github.com/Hackmanit/Web-Cache-Vulnerability-Scanner/pkg.checkPoisoningIndicators(0xc000242050, {{0xc000016300, 0x14}, {0x0, 0x0}, {0xc0000ece00, 0xd7}, {0xc000c2e340, 0x192}}, {0xc000328a00, ...}, ...)
        /home/max/Documents/git/Web-Cache-Vulnerability-Scanner/pkg/requests.go:88 +0x4a9
github.com/Hackmanit/Web-Cache-Vulnerability-Scanner/pkg.issueRequest({0xc000242050, {0xc000630110, 0x1, 0x1}, {0xc000630120, 0x1, 0x1}, {0x0, 0x0, 0x0}, ...})
        /home/max/Documents/git/Web-Cache-Vulnerability-Scanner/pkg/requests.go:367 +0x658
github.com/Hackmanit/Web-Cache-Vulnerability-Scanner/pkg.ScanHeaders.func1(0x14, {0xc00037c0d0, 0x9})
        /home/max/Documents/git/Web-Cache-Vulnerability-Scanner/pkg/techniques.go:254 +0x438
created by github.com/Hackmanit/Web-Cache-Vulnerability-Scanner/pkg.ScanHeaders
@m10x
Copy link
Collaborator

m10x commented Apr 20, 2022

Thank you for the information! I will take a look at this next week. Sorry for this uncaught error

@m10x
Copy link
Collaborator

m10x commented Apr 27, 2022

The cause for the runtime error was found and fixed: see commit 528397d4d254d4c01eb9a0ff021fe79c5c79d5f2

If you want to fetch the repository yourself or use the docker image, you can already use the improved version. Otherwise you will need to wait approx. 1-2 weeks until a new release is made, as I'm working also on other improvements.

Thank you for pointing this error out! If there is any other problem, question or something else, feel free to respond here or to create a new issue.

This issue will be closed if the new release was published as others might also experience this error.

@mo-xiaoxi
Copy link
Author

Good job! Thanks for the fix, looking forward to your next release. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants