CVE-2026-31827

Alienbin is an anonymous code and text sharing web service. In 1.0.0 and earlier, the /save endpoint in server.js drops and recreates the MongoDB TTL index on the entire post collection for every new paste submission. When User B submits a paste with a short TTL (e.g., 30 seconds), the TTL index is recreated with expireAfterSeconds: 30 for all documents in the collection. This causes User A's paste (originally set to 7 days) to be deleted after 30 seconds. An attacker can intentionally delete all existing pastes by repeatedly submitting pastes with ttlOption=30s.
CVSS

No CVSS.

Configurations

No configuration.

History

11 Mar 2026, 13:52

Type Values Removed Values Added
Summary
  • (es) Alienbin es un servicio web anónimo para compartir código y texto. En 1.0.0 y anteriores, el endpoint /save en server.js elimina y recrea el índice TTL de MongoDB en toda la colección post para cada nuevo envío de paste. Cuando el Usuario B envía un paste con un TTL corto (por ejemplo, 30 segundos), el índice TTL se recrea con expireAfterSeconds: 30 para todos los documentos de la colección. Esto provoca que el paste del Usuario A (originalmente configurado para 7 días) sea eliminado después de 30 segundos. Un atacante puede eliminar intencionadamente todos los pastes existentes al enviar repetidamente pastes con ttlOption=30s.

10 Mar 2026, 22:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-03-10 22:16

Updated : 2026-03-11 13:52


NVD link : CVE-2026-31827

Mitre link : CVE-2026-31827

CVE.ORG link : CVE-2026-31827


JSON object : View

Products Affected

No product.

CWE
CWE-362

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')