You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Ben Craig (JIRA)" <ji...@apache.org> on 2012/09/11 04:18:07 UTC

[jira] [Created] (THRIFT-1692) SO_REUSEADDR allows for socket hijacking on Windows

Ben Craig created THRIFT-1692:
---------------------------------

             Summary: SO_REUSEADDR allows for socket hijacking on Windows
                 Key: THRIFT-1692
                 URL: https://issues.apache.org/jira/browse/THRIFT-1692
             Project: Thrift
          Issue Type: Bug
          Components: C++ - Library
    Affects Versions: 0.8, 0.9
         Environment: Worst on WinXP, slightly less bad on Win Server 2003+
            Reporter: Ben Craig
             Fix For: 0.9


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira