Wiz Researchers Detail Cross-Tenant Vulnerability in Replicate AI Platform

· Original article ↗

Summary

Wiz researchers used a malicious Cog container and TCP injection into an authenticated Redis connection to access and alter other customers’ prompts and outputs. Replicate fixed the issue after disclosure in January 2024; no customer data was compromised.

Key points

  • Researchers uploaded a malicious Cog container and used it to achieve root-level code execution inside their container on Replicate’s infrastructure.
  • The container shared a network namespace with a neighboring container, exposing an established plaintext connection to a Redis server.
  • Using TCP injection, researchers sent commands over the neighboring container’s authenticated Redis connection and found the queue served multiple customers.
  • A Lua script injected into Redis changed a queued prediction’s webhook, allowing researchers to receive its prompt and output and alter the output.
  • The flaw could have exposed customer prompts and private-model outputs or enabled their manipulation; the researchers said exploitation could have put sensitive data at risk.
  • Wiz disclosed the issue in January 2024. Replicate promptly mitigated it, and Wiz said no customer data was compromised and customers need take no action.

Article Details

Attack Vectors
  • Uploaded a malicious Cog container to Replicate and interacted with it to achieve remote code execution as root inside its worker pod.
  • Used tcpdump to inspect an established plaintext Redis connection shared through the pod’s network namespace, then used rshijack to inject commands into the authenticated TCP session.
  • Injected a Lua script into Redis to redirect another queue item’s webhook to a rogue API server, which received the prediction input and output and could modify the output.
Defensive Notes
  • Replicate promptly implemented mitigations after responsible disclosure in January 2024.
  • The researchers reported that no customer data was compromised and that customers did not need to take action.

MITRE ATT&CK

Vendors

Products

Tools

Related Articles