Commit Graph

763 Commits

Author SHA1 Message Date
Thomas Bernard 37c4f7dda1 miniupnpc-libevent.c: free event_cif_url/event_conn_url
see 2455cc85b6
2014-12-12 18:56:06 +01:00
Thomas Bernard 4966cf7166 miniupnpc-libevent.h: remove unused definitions 2014-12-12 18:39:05 +01:00
Thomas Bernard f7ec0e17c3 miniupnpc-libevent: split upnpc_init() / upnpc_start() 2014-12-12 18:37:54 +01:00
Thomas Bernard 2d89a05982 miniupnpd/miniupnpd.c: minor fixes in usage output 2014-12-10 10:44:32 +01:00
Thomas Bernard 99a1bafc1f miniupnpd: use time for BOOTID.UPNP.ORG value 2014-12-10 10:41:10 +01:00
Thomas Bernard 00d878eba3 miniupnpd: configurable BOOTID.UPNP.ORG SSDP header 2014-12-10 10:40:41 +01:00
Thomas Bernard 2d52890608 miniupnpd/upnpglobalvars.c: document BOOTID.UPNP.ORG and CONFIGID.UPNP.ORG 2014-12-10 10:03:13 +01:00
Thomas Bernard e283270274 miniupnpd/pf/pfpinhole.c: reduce log verbosity
also remove a "argument not used" warning
2014-12-10 09:46:57 +01:00
Thomas Bernard e013870cca miniupnpd/upnpsoap.c: remove an unneeded \n in log 2014-12-09 18:32:31 +01:00
Thomas Bernard 181850ad1f miniupnpd/upnphttp.c: check ':' in HTTP header names 2014-12-09 18:28:23 +01:00
Thomas Bernard 98cc73a372 miniupnpd/upnphttp: Checking Host: HTTP request header to prevent DNS rebinding attack 2014-12-09 17:49:02 +01:00
Thomas Bernard 31986d8190 miniupnpd/upnphttp.c: fix 526e1dcd40 2014-12-09 17:48:14 +01:00
Thomas Bernard 9e30117cac miniupnpd/upnphttp.c: fix ec94c5663f
thanks to Stephen Röttger
2014-12-09 11:44:28 +01:00
Thomas Bernard 526e1dcd40 miniupnpd/upnphttp.c: skip only spaces and tab (stop on CR and LF) 2014-12-09 11:38:50 +01:00
Thomas Bernard 064c78730c miniupnpd/upnphttp.c: cosmetical changes 2014-12-09 11:04:38 +01:00
Thomas Bernard ec94c5663f miniupnpd: check if BuildHeader_upnphttp() failed to allocate memory 2014-12-09 11:04:15 +01:00
Thomas Bernard dd39ecaa93 miniupnpd/upnphttp.c: fix buffer overrun in ParseHttpHeaders() if Content-Length doesn't contain any digit
Credits goes to Stephen Röttger of the Google Security Team for identifying
the vulnerabilities
2014-12-09 11:02:57 +01:00
Thomas Bernard e6bc04aa06 miniupnpd/upnpsoap.c: fix potential memory corruption in upnpsoap.c/GetListOfPortMappings()
Credits goes to Stephen Röttger of the Google Security Team for identifying
the vulnerabilities
2014-12-09 11:01:37 +01:00
Thomas Bernard 7c91c4e933 miniupnpd/upnpredirect.c: check inet_aton() return 2014-12-09 10:53:52 +01:00
Thomas Bernard d00b75782e miniupnpd/upnppinhole.c: fix upnp_add_inboundpinhole() : check inet_pton() return 2014-12-09 10:52:26 +01:00
Thomas Bernard 2455cc85b6 miniupnpc-libevent: add event_cif_url/event_conn_url 2014-12-08 17:24:25 +01:00
Thomas Bernard 215b357e55 miniupnpc-libevent: prevent several SOAP request at the same time. 2014-12-08 17:23:29 +01:00
Thomas Bernard 8868eb7299 miniupnpc-libevent.c: minor modifications in logging 2014-12-06 12:20:24 +01:00
Thomas Bernard f8b6f3e90b minissdpd/Makefile: add asyncsendto.c/.h depends 2014-12-06 12:06:13 +01:00
Thomas Bernard a1065be414 minissdpd: VERSION 1.2 => 1.3 2014-12-05 18:38:23 +01:00
Thomas Bernard af3c6392e5 minissdpd/minissdpd.c: write on non blocking unix socket 2014-12-05 18:37:28 +01:00
Thomas Bernard a4d3546635 minissdpd/minissdpd.c: free service list 2014-12-05 18:36:03 +01:00
Thomas Bernard afe106d768 minissdpd: clean up select(), fix non blocking write 2014-12-05 17:35:34 +01:00
Thomas Bernard b405bdda2b minissdpd: handle ssdp:update messages 2014-12-04 11:41:19 +01:00
Thomas Bernard 3b71766493 miniupnpd/genconfig.sh: check net.ipv6.bindv6only under LINUX 2014-12-04 11:23:56 +01:00
Thomas Bernard a509abb371 miniupnpc-libevent/upnpc-libevent.c: improve output 2014-12-02 15:09:39 +01:00
Thomas Bernard 2fd247bcbc miniupnpc-libevent.c: make sure b < i and vars are initialized 2014-12-02 15:09:20 +01:00
Thomas Bernard 9fa6e70a55 miniupnpc-libevent: #define MINIUPNPC_LIBEVENT_API_VERSION 1 2014-12-02 14:48:39 +01:00
Thomas Bernard 12e49bda0d miniupnpc-libevent.c: set UPNPC_DEVICE_SOAP_REQ properly 2014-12-01 18:48:03 +01:00
Thomas Bernard c021d7351f miniupnpc-libevent: add ability to work on several devices simultaneously 2014-12-01 18:44:38 +01:00
Thomas Bernard 3a3072ee8c miniupnpc/upnpc.c: call WSACleanup() 2014-12-01 10:33:00 +01:00
Thomas Bernard c72591e72e miniupnpc/miniupnpc.c: fix compilation under WIN32 2014-12-01 10:31:50 +01:00
Thomas Bernard f43f7ee18f minissdpd/getroute.c: define SA_LEN in all situations 2014-12-01 10:31:13 +01:00
Thomas Bernard 63179a1f7f minisspd: check that peer is from a LAN
Change the list of LAN addresses/interfaces (code taken from miniupnpd)
Check that the peer is from a LAN for each SSDP packet
2014-11-28 17:48:35 +01:00
Thomas Bernard 186c504070 minissdpd: revert "listen on only 1 IPv4 if only 1 interface is specified"
because it prevents broadcast messages to be received
see 7ec7cec59e
and 6d379d54f5
2014-11-28 15:50:06 +01:00
Thomas Bernard 3665f1913d minissdpd: Cosmetic changes 2014-11-28 15:49:32 +01:00
Thomas Bernard c14788a13a miniupnpd: fixes ExecuteSoapAction() for missing " around SOAPAction 2014-11-28 14:29:24 +01:00
Thomas Bernard 2b233cdf69 miniupnpc-libevent.c: add double quotes (") around SOAPAction 2014-11-28 14:28:17 +01:00
Thomas Bernard c9e71676a8 miniupnpc-libevent/Makefile: add /usr/local/include and /usr/local/lib 2014-11-28 14:26:21 +01:00
Thomas Bernard 33a5ebf367 miniupnpd/upnpsoap.c: make WANAccessType easier to configure 2014-11-27 13:25:45 +01:00
Thomas Bernard 4cae31c948 miniupnpc.c: dont use if_indextoname() under MS Windows
fixes #85
2014-11-27 12:59:12 +01:00
Thomas Bernard 725632f27d miniupnpc: Add linksys_WAG200G_desc.xml to test 2014-11-26 12:39:43 +01:00
Thomas Bernard 8325b715d3 miniupnpc-libevent: handle error cases 2014-11-25 23:51:59 +01:00
Thomas Bernard b642e74124 miniupnpc-libevent.c: upnpc_conn_close_cb() only in DEBUG mode 2014-11-25 23:50:56 +01:00
Mike Gelfand c490b42547 Fix _POSIX_C_SOURCE definition
Current code makes use of `snprintf` function defined in C99 standard
but _POSIX_C_SOURCE is set to "1" which is not correct. To access C99
definitions, this macro should be set to at least "200112L".

Also, `strncasecmp` function is being used but corresponding <strings.h>
header is not being included in miniwget.c.

Changes have been tested on FreeBSD 10.1 amd64 with default compiler
(Clang).
2014-11-19 17:06:14 +03:00