Server Security: How To Prevent Socket Hijacking on Windowsサーバーのセキュリティ:ハイジャックをWindowsソケットをどのように防ぐ
You can forcibly bind to the same address and port to which there is an open server socket by using SO_REUSEADDR option (ServerSocket.setReuseAddress(boolean on) in Java).強制的にすることができます。バインドして、同じアドレスとポートを開くにはサーバソケットを使用してso_reuseaddrオプション( serversocket.setreuseaddress (ブール値)をJavaで) 。 Such reuse can be exploited by malicious applications to disrupt the functioning of the original server application and worse.悪用されるような悪質なアプリケーションを再利用できる機能を混乱させるのは、元のサーバーアプリケーションと悪化している。
The SO_EXCLUSIVEADDRUSE option prevents other sockets from being forcibly bound to the same address and port. so_exclusiveaddruseオプションにより、他のソケットが強制的に同じアドレスとポートにバインドされています。
Thus, when this socket option is used by an application before using the bind() function, no other application will be able to bind to the same local address, even when the SO_REUSEADDR is used.したがって、このときするアプリケーションで使用されるソケットオプションを使用する前にbind ( )関数は、他のアプリケーションをバインドすることができるローカルアドレスと同じ場合でもso_reuseaddrが使用されています。
The implementation of the SO_EXCLUSIVEADDRUSE socket option opens file objects in exclusive mode, setting the ShareAccess parameter of the ZwCreateFile() function to 0. so_exclusiveaddruseソケットオプションの実施には、ポップアップファイルオブジェクトが排他モードで、パラメータを設定してshareaccessのzwcreatefile ( )関数を0にします。 Thus, file objects representing TCP and UDP ports can only be opened in exclusive mode, which correspond to exclusive binding at the Winsock level.したがって、 TCPポートとUDPポートを表すオブジェクトファイルのみでオープンしたことが排他モードで、これに対応して排他的な結合は、 Winsockのレベルです。
Note: Before Windows 2000 SP4, Windows XP SP2 or Windows Server 2003, this socket option can only be used by processes running with administrator credentials.注: Windows 2000 SP4の前に、 Windows XP SP2またはWindows Server 2003では、このソケットオプションでのみ使用されるプロセスの実行中に管理者の資格情報です。
Filed under提出されて Headline Newsニュースの見出し , 、 How Toどのように , 、 Java Software Javaソフトウェア , 、 Microsoftマイクロソフト , 、 Tech Note技術のノート , 、 Webウェブ , 、 Windows Windowsの | |
| |
RSS 2.0 RSS 2.0を | |
Trackbackトラックバック this Article |この記事|
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |



