Application Data Hiding via Invalid `iconName` Causing Frontend Crash in Nextcloud Tables
The Nextcloud Tables app accepts any value for the iconName parameter without validation, and the frontend crashes when it cannot render the icon. An attacker with edit access can set an invalid icon to make the entire application unusable and hide all its data from users.
khoof Follow with mozaaaaa, 0xkarim_dix and 2 others
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 3 months
- Paid in 8 months
- Disclosed after 9 months
Product
Nextcloud – Tables App Section: Applications
Vulnerability Type
Client-side Denial of Service (DoS) Data Hiding / UI Logic Abuse Improper Input Validation
Description
In the Nextcloud Tables → Applications section, each Application has an icon.
The backend allows updating this icon using the iconName parameter.
The application does not validate whether iconName is a valid icon.
If an attacker sends any invalid value, the backend accepts it, but the frontend crashes when rendering the application, causing:
- The application card not to load
- The application data to disappear
- The entire application UI to break
This effectively allows any user with edit access to hide all data in that application.
Impact
By setting an invalid icon:
- The entire application becomes unusable
- Users cannot see tables, records, or settings
- No error message explains what happened
- The data still exists, but is unreachable
This creates a persistent data-hiding attack.
Proof of Concept
Send the following request while editing an application:
PUT /ocs/v2.php/apps/tables/api/2/contexts/8 HTTP/1.1
Host: 127.0.0.1:8080
Content-Type: application/json
X-Requested-With: XMLHttpRequest
Origin: http://127.0.0.1:8080
{"name":"pops","iconName":"asdsadasd","description":"","nodes":[{"id":17,"type":0,"permissions":7}]}
➡ iconName is set to a non-existent icon
Backend response: 200 OK
After reloading the Tables UI:
- The application does not render
- Data disappears
- UI is broken
Real-World Attack Scenario
-
A company uses Nextcloud Tables to store:
- Financial records
- HR data
- Incident reports
-
A normal employee has edit access to an application.
-
The employee sends a request setting:
iconName = "invalid_icon_value" -
Result:
- The whole application crashes for all users
- Management believes the data is gone
- Work is blocked
- Panic and data-loss incident is triggered
This is a perfect sabotage attack inside an organization.
Root Cause
The backend:
- Accepts any
iconName - Does not validate against a whitelist
The frontend:
- Crashes when it cannot resolve the icon
Recommended Fix
On the backend:
- Validate
iconNameagainst a fixed list of allowed icons - Reject invalid values with
400 Bad Request
On the frontend:
- Add a fallback icon if loading fails
Security Classification
CWE-20 – Improper Input Validation CWE-755 – Improper Handling of Exceptional Conditions
==The PoC Video==
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the backend does not validate the iconName against a list of allowed icons, and the frontend does not handle unknown icon names gracefully.
Impact
The application becomes unusable for all users, hiding all tables and records without any error message, creating a persistent data-hiding attack.
What the attacker needed
Edit access to an application
The fix
The backend should validate iconName against a fixed list of allowed icons and reject invalid values with 400 Bad Request, and the frontend should show a fallback icon if loading fails.
How it was found
- Send a request to update an application with an invalid iconName value.
- Observe that the backend returns 200 OK.
- Reload the Tables UI and see that the application does not render and data disappears.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In Nextcloud Tables, each application has a small icon. The server does not check if the icon name is real, so someone can set it to a nonsense value. When other users open the app, the page breaks and they cannot see any tables or records, even though the data is still there.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.