upnphttp: Protect against DNS rebinding attacks

Validate HTTP requests to protect against DNS rebinding.
This commit is contained in:
Justin Maggard
2022-02-09 18:32:50 -08:00
parent 8d8d04785b
commit c21208508d
2 changed files with 19 additions and 0 deletions

View File

@ -89,6 +89,8 @@ struct upnphttp {
struct client_cache_s * req_client;
const char * req_soapAction;
int req_soapActionLen;
const char * req_Host; /* Host: header */
int req_HostLen;
const char * req_Callback; /* For SUBSCRIBE */
int req_CallbackLen;
const char * req_NT;