CVE-2020-12066

7.5 HIGH

📋 TL;DR

CVE-2020-12066 is a denial-of-service vulnerability in Teeworlds game servers where remote attackers can send specially crafted messages to crash the server. This affects Teeworlds 0.7.x servers before version 0.7.5. Anyone running a vulnerable Teeworlds server is at risk of service disruption.

💻 Affected Systems

Products:
  • Teeworlds
Versions: 0.7.0 through 0.7.4
Operating Systems: Linux, Windows, macOS
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Teeworlds servers, not clients. All default configurations are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Server crashes and becomes unavailable to all players, requiring manual restart and causing extended downtime.

🟠

Likely Case

Server crashes and requires restart, disrupting gameplay sessions and potentially causing data loss for ongoing games.

🟢

If Mitigated

Server remains operational with proper patching or workarounds in place.

🌐 Internet-Facing: HIGH - Teeworlds servers are typically internet-facing game servers accessible to any player.
🏢 Internal Only: LOW - Teeworlds is primarily deployed as internet-facing game servers, not internal enterprise applications.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

The vulnerability is in CServer::SendMsg function and requires sending a specific message to trigger the crash. Exploit code has been publicly discussed in security advisories.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.7.5

Vendor Advisory: https://github.com/teeworlds/teeworlds/commit/c68402fa7e279d42886d5951d1ea8ac2facc1ea5

Restart Required: Yes

Instructions:

1. Download Teeworlds 0.7.5 or later from official sources. 2. Stop the vulnerable server. 3. Replace the server binary with the patched version. 4. Restart the server.

🔧 Temporary Workarounds

Network Filtering

all

Block or filter malicious messages at network level using firewall rules or IDS/IPS systems.

Server Restart Automation

linux

Implement automatic restart scripts to minimize downtime if server crashes.

#!/bin/bash
while true; do
  ./teeworlds_srv
  sleep 5
done

🧯 If You Can't Patch

  • Implement network monitoring to detect and block attack attempts
  • Use rate limiting to restrict message frequency from individual clients

🔍 How to Verify

Check if Vulnerable:

Check Teeworlds server version. If version is 0.7.0 through 0.7.4, it is vulnerable.

Check Version:

./teeworlds_srv --version

Verify Fix Applied:

Verify server is running version 0.7.5 or later and test server stability under normal load.

📡 Detection & Monitoring

Log Indicators:

  • Server crash logs
  • Abnormal termination messages
  • Segmentation fault errors

Network Indicators:

  • Sudden drop in server connections
  • Specific message patterns causing crashes

SIEM Query:

source="teeworlds.log" AND ("crash" OR "segmentation fault" OR "abnormal termination")

🔗 References

📤 Share & Export