Status icon indicating copy to clipboard operation
Status copied to clipboard

Edge has an ICE issue with username in BIND response

Open elagerway opened this issue 10 years ago • 2 comments

Seems Edge has a bug regarding ICE replies. Official RFCs require the USERNAME attribute MUST NOT be present. But Edge is sending USERNAME attribute in replies and does appear to reject our ICE responses from ORTC Lib that do not contain USERNAME attribute.

According to: https://tools.ietf.org/html/rfc5245#section-7.1.2.3

... A connectivity check from R to L utilizes the username LFRAG:RFRAG and a password of LPASS. The responses utilize the same usernames and passwords as the requests (note that the USERNAME attribute is not present in the response). And: https://tools.ietf.org/html/rfc5389#section-10.1.2

If these checks pass, the agent continues to process the request or indication. Any response generated by a server MUST include the MESSAGE-INTEGRITY attribute, computed using the password utilized to authenticate the request. The response MUST NOT contain the USERNAME attribute. But edge does not appear to like our STUN response packets (as the ICE transport does not go into the "connected" state on the Edge side) and sends us USERNAME in ICE BIND responses. This seems to follow the MSDN articles on the topic where I noticed that MS has STUN BIND reply behavior defined wrongly.

https://msdn.microsoft.com/en-us/library/dd921399(v=office.12).aspx

The USERNAME attribute MUST have the same value as the USERNAME attribute in the corresponding STUN binding request message. The MESSAGE-INTEGRITY attribute MUST have the message integrity value that is computed by using the password of the local candidate in the matching candidate pair. and https://msdn.microsoft.com/en-us/library/dd926073(v=office.12).aspx

If a STUN binding response message is received without a USERNAME attribute, it MUST be discarded. The USERNAME attribute MUST be used to find the matching transport address pair for which the STUN binding response message is received.

NOTE: We understand that your implementation is partially conformant when considering Google's ICE implementation, but Google support both methods in their WebRTC lib, Edge does not and is also not conformant with the STUN spec.

elagerway avatar May 27 '16 18:05 elagerway

@elagerway the right place to notify about Microsoft Edge issues is https://issues.microsoftedge.com

molant avatar May 27 '16 18:05 molant

ok, thanks

Erik Lagerway | Mobile: 1.604.562.8647

On Fri, May 27, 2016 at 11:40 AM, Anton Molleda [email protected] wrote:

@elagerway https://github.com/elagerway the right place to notify about Microsoft Edge issues is https://issues.microsoftedge.com

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftEdge/Status/issues/413#issuecomment-222223061, or mute the thread https://github.com/notifications/unsubscribe/AD6IbOmetMOIea4u4MtvJ0P8wJdjo2wXks5qFzq0gaJpZM4IowoU .

elagerway avatar May 27 '16 18:05 elagerway