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

I got some crash. #4

Open
imfht opened this issue Nov 17, 2021 · 0 comments
Open

I got some crash. #4

imfht opened this issue Nov 17, 2021 · 0 comments

Comments

@imfht
Copy link

imfht commented Nov 17, 2021

测试做中间人存AWVS的扫描流量,发现1个crash的点

1. path不是有效utf8字符时

2021/11/17 10:41:47 http: panic serving 10.78.104.94:53274: runtime error: invalid memory address or nil pointer dereference
goroutine 4137 [running]:
net/http.(*conn).serve.func1(0xc0003e43c0)
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:1800 +0x139
panic(0x1329040, 0x1629e10)
	/usr/local/Cellar/go/1.14.5/libexec/src/runtime/panic.go:975 +0x3e3
main.handleResponse(0x0, 0xc000a81620, 0x0)
	/Users/reinhard/inspector/golang/iproxy/main.go:124 +0x3a
github.com/elazarl/goproxy.FuncRespHandler.Handle(0x13a4420, 0x0, 0xc000a81620, 0x4)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/actions.go:35 +0x3a
github.com/elazarl/goproxy.(*ProxyConds).Do.func1(0x0, 0xc000a81620, 0x0)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/dispatcher.go:300 +0x142
github.com/elazarl/goproxy.FuncRespHandler.Handle(0xc0001a53a0, 0x0, 0xc000a81620, 0x0)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/actions.go:35 +0x3a
github.com/elazarl/goproxy.(*ProxyHttpServer).filterResponse(0xc0001275e0, 0x0, 0xc000a81620, 0x1403080)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/proxy.go:75 +0x8d
github.com/elazarl/goproxy.(*ProxyHttpServer).ServeHTTP(0xc0001275e0, 0x1408c40, 0xc0006b21c0, 0xc0001b4700)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/proxy.go:128 +0xa22
net/http.serverHandler.ServeHTTP(0xc00018c380, 0x1408c40, 0xc0006b21c0, 0xc0001b4700)
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:2836 +0xa3
net/http.(*conn).serve(0xc0003e43c0, 0x1409640, 0xc0006164c0)
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:1924 +0x86c
created by net/http.(*Server).Serve
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:2962 +0x35c
2021/11/17 10:41:47 Error 1366: Incorrect string value: '\xC0\xAF..\xC0\xAF...' for column 'path' at row 1
panic: runtime error: invalid memory address or nil pointer dereference

2. 1个panic的地方

goroutine 3492 [running]:
net/http.(*conn).serve.func1(0xc0002b57c0)
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:1800 +0x139
panic(0x1329040, 0x1629e10)
	/usr/local/Cellar/go/1.14.5/libexec/src/runtime/panic.go:975 +0x3e3
main.handleResponse(0x0, 0xc000590840, 0x0)
	/Users/reinhard/inspector/golang/iproxy/main.go:124 +0x3a
github.com/elazarl/goproxy.FuncRespHandler.Handle(0x13a4420, 0x0, 0xc000590840, 0x4)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/actions.go:35 +0x3a
github.com/elazarl/goproxy.(*ProxyConds).Do.func1(0x0, 0xc000590840, 0x0)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/dispatcher.go:300 +0x142
github.com/elazarl/goproxy.FuncRespHandler.Handle(0xc0001a53a0, 0x0, 0xc000590840, 0x0)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/actions.go:35 +0x3a
github.com/elazarl/goproxy.(*ProxyHttpServer).filterResponse(0xc0001275e0, 0x0, 0xc000590840, 0x1403080)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/proxy.go:75 +0x8d
github.com/elazarl/goproxy.(*ProxyHttpServer).ServeHTTP(0xc0001275e0, 0x1408c40, 0xc0003d6000, 0xc0002ba900)
	/Users/reinhard/inspector/golang/src/github.com/elazarl/goproxy/proxy.go:128 +0xa22
net/http.serverHandler.ServeHTTP(0xc00018c380, 0x1408c40, 0xc0003d6000, 0xc0002ba900)
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:2836 +0xa3
net/http.(*conn).serve(0xc0002b57c0, 0x1409640, 0xc0002c4500)
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:1924 +0x86c
created by net/http.(*Server).Serve
	/usr/local/Cellar/go/1.14.5/libexec/src/net/http/server.go:2962 +0x35c
2021/11/17 10:41:47 http: panic serving 10.78.104.94:53131: runtime error: invalid memory address or nil pointer dereference

猪哥小范围开源一起维护下么 🌹🌹

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

1 participant