Loading advisory.
Loading advisory.
TSPortal's Uncontrolled User Creation via Validation Side Effects Leads to Potential Denial of Service
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.
Published 2026-03-26 20:27 UTC · Modified 2026-03-27 20:01 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| miraheze/ts-portal | Packagist | < 34 versions v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27 and 13 more | 34 | composer require 'miraheze/ts-portal:>=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).
When submitting a Data Processing Agreement (DPA) request in TSPortal, the DPAAlreadyLive validation rule previously called User::findOrCreate().
This method created a user record if one did not already exist.
Although 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.
As a result:
Validation correctly rejected invalid input
However, user records were still inserted into the database as a side effect
These records were created:
Without a successful DPA request
Without audit logging tied to a completed action
Without visibility into their origin
An attacker could exploit this behavior by automating requests with invalid usernames, resulting in:
Mass creation of arbitrary user records
Unbounded database growth
Increased storage and indexing overhead
Potential degradation of application performance
At scale, this could lead to a denial of service condition due to resource exhaustion.
Submit a DPA request using an invalid username
Ensure the request fails validation due to MirahezeUsernameRule
Observe that a corresponding user record is still created in the database
This behavior was confirmed prior to remediation.
The issue stemmed from:
Performing state-changing operations (findOrCreate) inside validation logic
Validation rules executing regardless of overall validation success
Lack of separation between validation and persistence layers
The issue has been fixed by removing database write operations from validation logic.
Specifically:
Replaced User::findOrCreate() with a non-mutating lookup (User::firstWhere(...))
Ensured validation rules only perform read operations
Prevented user creation unless all validation passes
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.003 | v2026.06.15 |