{"id":"CVE-2026-33541","aliases":["CVE-2026-33541","GHSA-f346-8rp3-4h9h"],"related":[],"kind":"vulnerability","state":"published","title":"TSPortal's Uncontrolled User Creation via Validation Side Effects Leads to Potential Denial of Service","summary":"TSPortal is the WikiTide Foundation’s in-house platform used by the Trust and Safety team to manage reports, investigations, appeals, and transparency work. Prior to version 34, a flaw in TSPortal allowed attackers to create arbitrary user records in the database by abusing validation logic. While validation correctly rejected invalid usernames, a side effect within a validation rule caused user records to be created regardless of whether the request succeeded. This could be exploited to cause uncontrolled database growth, leading to a potential denial of service (DoS). Version 34 contains a fix for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"TSPortal is the WikiTide Foundation’s in-house platform used by the Trust and Safety team to manage reports, investigations, appeals, and transparency work. Prior to version 34, a flaw in TSPortal allowed attackers to create arbitrary user records in the database by abusing validation logic. While validation correctly rejected invalid usernames, a side effect within a validation rule caused user records to be created regardless of whether the request succeeded. This could be exploited to cause uncontrolled database growth, leading to a potential denial of service (DoS). Version 34 contains a fix for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\nA flaw in TSPortal allowed attackers to create arbitrary user records in the database by abusing validation logic. While validation correctly rejected invalid usernames, a side effect within a validation rule caused user records to be created regardless of whether the request succeeded. This could be exploited to cause uncontrolled database growth, leading to a potential denial of service (DoS).\n\n### Details\nWhen submitting a Data Processing Agreement (DPA) request in TSPortal, the `DPAAlreadyLive` validation rule previously called `User::findOrCreate()`.\n\nThis method created a user record if one did not already exist.\n\nAlthough username validation (via `MirahezeUsernameRule`) correctly rejected invalid usernames, the `DPAAlreadyLive` rule was still executed during validation. Because it performed a state-changing operation, it created user records even when the overall validation failed and no DPA was created.\n\nAs a result:\n- Validation correctly rejected invalid input\n- However, user records were still inserted into the database as a side effect\n\nThese records were created:\n- Without a successful DPA request\n- Without audit logging tied to a completed action\n- Without visibility into their origin\n\n### Impact\nAn attacker could exploit this behavior by automating requests with invalid usernames, resulting in:\n\n- Mass creation of arbitrary user records\n- Unbounded database growth\n- Increased storage and indexing overhead\n- Potential degradation of application performance\n\nAt scale, this could lead to a denial of service condition due to resource exhaustion.\n\n### Proof of Concept\n1. Submit a DPA request using an invalid username\n2. Ensure the request fails validation due to `MirahezeUsernameRule`\n3. Observe that a corresponding user record is still created in the database\n\nThis behavior was confirmed prior to remediation.\n\n### Root Cause\nThe issue stemmed from:\n- Performing state-changing operations (`findOrCreate`) inside validation logic\n- Validation rules executing regardless of overall validation success\n- Lack of separation between validation and persistence layers\n\n### Mitigation\nThe issue has been fixed by removing database write operations from validation logic.\n\nSpecifically:\n- Replaced `User::findOrCreate()` with a non-mutating lookup (`User::firstWhere(...)`)\n- Ensured validation rules only perform read operations\n- Prevented user creation unless all validation passes","format":"markdown","source":"ghsa"},{"lang":"es","text":"TSPortal es la plataforma interna de la Fundación WikiTide utilizada por el equipo de Confianza y Seguridad para gestionar informes, investigaciones, apelaciones y trabajo de transparencia. Antes de la versión 34, una falla en TSPortal permitía a los atacantes crear registros de usuario arbitrarios en la base de datos al abusar de la lógica de validación. Si bien la validación rechazaba correctamente los nombres de usuario no válidos, un efecto secundario dentro de una regla de validación provocaba que se crearan registros de usuario independientemente de si la solicitud tenía éxito. Esto podría ser explotado para causar un crecimiento descontrolado de la base de datos, lo que llevaría a una potencial denegación de servicio (DoS). La versión 34 contiene una solución para el problema.","source":"nvd"}],"published":"2026-03-26T20:27:05.840Z","modified":"2026-06-17T10:37:40.890Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 34","status":"affected"}],"vendor":"miraheze","product":"TSPortal","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"34"}],"ecosystem":"Packagist","package":"miraheze/ts-portal","purl":"pkg:composer/miraheze/ts-portal","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"34"}],"vendor":"wikitide","product":"tsportal","cpe":"cpe:2.3:a:wikitide:tsportal:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/miraheze/TSPortal/security/advisories/GHSA-f346-8rp3-4h9h","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33541","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/miraheze/TSPortal","tags":["package"],"sources":["ghsa"]},{"url":"https://issue-tracker.miraheze.org/T15115","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-27T19:52:08.746Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33541","url":"https://www.cve.org/CVERecord?id=CVE-2026-33541","licence":"CVE Terms of Use","modified":"2026-03-27T20:01:35.174Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f346-8rp3-4h9h","url":"https://github.com/advisories/GHSA-f346-8rp3-4h9h","licence":"CC-BY-4.0","modified":"2026-03-27T16:12:05.202Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33541","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33541","licence":"Public domain","modified":"2026-06-17T10:37:40.890Z"}],"updatedAt":"2026-11-25T22:59:17.149Z","epss":{"score":0.0034,"percentile":0.2943,"date":"2026-12-01T12:00:22.000Z"}}