mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Merge pull request #4074 from tunnelpr0/patch-1
Secure fix for the DNS Rebind Protection issue from #4072
This commit is contained in:
commit
a7ccbd31e1
@ -19,6 +19,7 @@ Unreleased: mitmproxy next
|
||||
* Add new MapRemote addon to rewrite URLs of requests (@mplattner)
|
||||
* Add support for HTTP Trailers to the HTTP/2 protocol (@sanlengjingvv and @Kriechi)
|
||||
* Fix certificate runtime error during expire cleanup (@gorogoroumaru)
|
||||
* Fixed the DNS Rebind Protection for secure support of IPv6 addresses (@tunnelpr0)
|
||||
|
||||
* --- TODO: add new PRs above this line ---
|
||||
|
||||
|
@ -499,7 +499,7 @@ class Application(tornado.web.Application):
|
||||
self.add_handlers("dns-rebind-protection", [(r"/.*", DnsRebind)])
|
||||
self.add_handlers(
|
||||
# make mitmweb accessible by IP only to prevent DNS rebinding.
|
||||
r'^(localhost|[0-9.:\[\]]+)$',
|
||||
r'^(localhost|[0-9.]+|\[[0-9a-fA-F:]+\])$',
|
||||
[
|
||||
(r"/", IndexHandler),
|
||||
(r"/filter-help(?:\.json)?", FilterHelp),
|
||||
|
Loading…
Reference in New Issue
Block a user