Giter Site home page Giter Site logo

Comments (4)

Sean-Der avatar Sean-Der commented on May 13, 2024

Hey @kixelated

I don't think this is possible anymore, BindRequests are filtered via MessageIntegrity (so if the attacker doesn't know the pwd we are safe)

from ice.

kixelated avatar kixelated commented on May 13, 2024

Nope, not safe. The attacker in this case will set up a PeerConnection using it's own credentials. It can set up ICE/DTLS/SRTP everything. Except it will suddenly claim to have a different IP address by forging the UDP return address header. This tricks the server to take the attacker's legitimate PeerConnection and redirect it elsewhere.

For example, if Pions gets a STUN binding request that claims to be sent from google.com:80, it will mark it as a validPair and potentially use it as the result from getBestPair. Pions would then proceed to shove SRTP/DTLS traffic at Google which won't know what to do with it. The PeerConnection can be kept alive by the attacker because they can still send RTCP/STUN packets from their valid but lower priority real IP address.

The fix is to require a SuccessResponse from the remote candidate with the same transaction ID as your previously sent BindRequest before you can mark it as valid. That's why the transaction ID exists.

from ice.

Sean-Der avatar Sean-Der commented on May 13, 2024

if Pions gets a STUN binding request that claims to be sent from google.com:80

How? Binding requests are discarded unless you know the uPwd

from ice.

Sean-Der avatar Sean-Der commented on May 13, 2024

Talked to @kixelated on Slack I understand the issue now.


We have to check TransactionIDs and we MUST require success responses from peers. Otherwise a candidate could give us invalid prflx candidates (and we would start sending traffic to 3rd parties unexpectedly)

from ice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.