Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1692

SO_REUSEADDR allows for socket hijacking on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8, 0.9
    • 0.9.1
    • C++ - Library
    • None
    • Worst on WinXP, slightly less bad on Win Server 2003+

    Description

      SO_REUSEADDR is a fine idea for sockets on POSIX operating systems. SO_REUSEADDR on Windows operates differently though. This MSDN article explains the behavior:
      http://msdn.microsoft.com/en-us/library/windows/desktop/ms740621.aspx

      Long story short, with SO_REUSEADDR, a hostile process owned by another user can steal your port.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ben.craig Ben Craig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: