Commit Graph

1906 Commits

Author SHA1 Message Date
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
Thomas Bernard
d4bf4c7572 miniupnpc-libevent: add upnpc_get_status_info() 2014-11-18 10:31:59 +01:00
Thomas Bernard
3690785a79 miniupnpc/miniupnpc.c: accept all versions of urn:schemas-upnp-org:service:WANCommonInterfaceConfig: service 2014-11-18 00:01:48 +01:00
Thomas Bernard
b6896d5c08 miniupnpc-libevent: WIN32 => _WIN32 2014-11-17 20:33:11 +01:00
Thomas Bernard
d44d16a688 igd_desc_parse.c: define printIGD() only in DEBUG 2014-11-17 20:32:41 +01:00
Thomas Bernard
6e8106688c miniupnpc: validate igd_desc_parse 2014-11-17 20:31:11 +01:00
Thomas Bernard
fa414c5bb6 allow to build miniupnpc-libevent with MacPorts 2014-11-17 17:29:52 +01:00
Thomas Bernard
7264fa53a9 miniupnpc-libevent: remove unecessary files 2014-11-17 17:29:24 +01:00
Thomas Bernard
bd8ba03b54 miniupnpc-libevent: try with several M-SEARCH requests 2014-11-17 11:15:18 +01:00