CVE-2023-50475

9.1 CRITICAL

📋 TL;DR

This vulnerability in bcoin version 2.2.0 allows remote attackers to extract sensitive information through weak hashing algorithms in the faye-websocket.js component. Attackers can potentially decrypt or manipulate data that should be protected. Anyone running the vulnerable bcoin version is affected.

💻 Affected Systems

Products:
  • bcoin
Versions: 2.2.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Specifically affects the faye-websocket.js component in the vendor directory.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of sensitive data including authentication tokens, private keys, or transaction data, potentially leading to financial loss or system takeover.

🟠

Likely Case

Information disclosure of sensitive data transmitted via websockets, potentially enabling further attacks.

🟢

If Mitigated

Minimal impact with proper network segmentation and monitoring, though cryptographic weaknesses remain.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires network access to the vulnerable service but no authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.2.1 or later

Vendor Advisory: https://github.com/bcoin-org/bcoin/issues/1174

Restart Required: Yes

Instructions:

1. Update bcoin to version 2.2.1 or later. 2. Restart the bcoin service. 3. Verify the update was successful.

🔧 Temporary Workarounds

Disable vulnerable websocket endpoints

all

Temporarily disable or restrict access to websocket endpoints until patching is complete.

Configure firewall rules to block websocket ports (typically 8333 for mainnet)

🧯 If You Can't Patch

  • Implement strict network segmentation to isolate vulnerable systems
  • Monitor network traffic for unusual websocket activity and implement rate limiting

🔍 How to Verify

Check if Vulnerable:

Check bcoin version: if running 2.2.0, the system is vulnerable.

Check Version:

bcoin --version

Verify Fix Applied:

Verify bcoin version is 2.2.1 or later and check that websocket connections are using strong cryptographic algorithms.

📡 Detection & Monitoring

Log Indicators:

  • Unusual websocket connection patterns
  • Failed cryptographic operations in logs

Network Indicators:

  • Unusual traffic to websocket ports
  • Patterns matching known weak hash algorithms

SIEM Query:

source="bcoin" AND (websocket OR hash) AND (error OR failed)

🔗 References

📤 Share & Export