]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Multiple revisions 394899,410380
authorRichard Mudgett <rmudgett@digium.com>
Mon, 10 Mar 2014 17:30:09 +0000 (17:30 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 10 Mar 2014 17:30:09 +0000 (17:30 +0000)
commita1a85ab6da184fb9e76a641154b3c81d06784969
tree1c862ffbd939dd41fb9a35997593d69a0670e677
parent8f8dd440a40a6bc3d89ec540e2a69e28ee299db1
Multiple revisions 394899,410380

........
  r394899 | mjordan | 2013-07-20 22:09:16 -0500 (Sat, 20 Jul 2013) | 20 lines

  Tolerate presence of RFC2965 Cookie2 header by ignoring it

  This patch modifies parsing of cookies in Asterisk's http server by doing an
  explicit comparison of the "Cookie" header instead of looking at the first
  6 characters to determine if the header is a cookie header. This avoids
  parsing "Cookie2" headers and overwriting the previously parsed "Cookie"
  header.

  Note that we probably should be appending the cookies in each "Cookie"
  header to the parsed results; however, while clients can send multiple
  cookie headers they never really do. While this patch doesn't improve
  Asterisk's behavior in that regard, it shouldn't make it any worse either.

  Note that the solution in this patch was pointed out on the issue by the
  issue reporter, Stuart Henderson.

  (closes issue ASTERISK-21789)
  Reported by: Stuart Henderson
  Tested by: mjordan, Stuart Henderson
........
  r410380 | rmudgett | 2014-03-10 12:00:32 -0500 (Mon, 10 Mar 2014) | 11 lines

  AST-2014-001: Stack overflow in HTTP processing of Cookie headers.

  Sending a HTTP request that is handled by Asterisk with a large number of
  Cookie headers could overflow the stack.

  Another vulnerability along similar lines is any HTTP request with a
  ridiculous number of headers in the request could exhaust system memory.

  (closes issue ASTERISK-23340)
  Reported by: Lucas Molas, researcher at Programa STIC, Fundacion; and Dr. Manuel Sadosky, Buenos Aires, Argentina
........

Merged revisions 394899,410380 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/1.8.15@410427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/http.c