Skip to content

Connection to teeworlds 0.6 servers is not secure #9358

Open
@ChillerDragon

Description

DDNet 0.6 is 0.6.4 based. DDNet then added its own TKEN extension for anti spoof tokens which is not understood by Teeworlds servers. Then Teeworlds 0.6.5 introduced its security tokens which is not understood by the ddnet client.

⚠️ teeworlds 0.6.4 <-> teeworlds 0.6.4
⚠️ teeworlds 0.6.4 <-> teeworlds 0.6.5
🔒 teeworlds 0.6.5 <-> teeworlds 0.6.5
⚠️ ddnet <-> teeworlds 0.6.5
🔒 ddnet <-> ddnet
🔒 ddnet <-> teeworlds 0.7

This means that if you play ddnet on a teeworlds 0.6 server you can be spoofed. While recent teeworlds clients can not be spoofed.

Imo the 0.6.5 tokens are nicer than ddnet's TKEN extension anyways. It uses a flag in the packet header to be backwards compatible.

NET_PACKETFLAG_TOKEN = 1 << 1,

And the token is included in the packet header. While in ddnet the token is appended at the end of the packet payload. And the backwards compatibility depends on state (having received the TKEN magic bytes on connect).

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions