Deck app: Invalid tag color is accepted by API and breaks frontend UI
The Deck app's label creation endpoint accepted any arbitrary string as a tag colour without validation. A user with normal board access could store an invalid colour that broke the tags section for every board member, preventing them from viewing or managing tags.
khoof Follow with 0xkarim_dix, mozaaaaa and 2 others
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 4 months
- Paid in 8 months
- Disclosed after 10 months
Product / Component
- Application: Nextcloud
- App: Deck
- Feature: Deck → Boards → Tags (Labels)
Vulnerability Type
- Function Confusion
- Improper Input Validation
- Logic Flaw
- Application-level Denial of Service (Feature DoS)
Description
In the Deck app, there is a feature called Deck, which allows users to create Boards. Each board contains Tags (Labels) that can be created and assigned a color for organization.
As a normal user who has access to a board, I attempted to create a new tag. During tag creation, the application sends the following request:
POST /apps/deck/labels HTTP/1.1
Host: 127.0.0.1:8080
requesttoken: <token>
Cookie: <session>
{
"cardId": null,
"color": "anything",
"title": "khoof",
"boardId": 2
}
The color parameter is supposed to accept only valid color values (for example predefined colors or valid HEX values).
However, the server does not validate this parameter at all.
I was able to send any arbitrary string (e.g. "anything") as the color value, and the server responded with:
HTTP/1.1 200 OK
Impact
After creating a tag with an invalid color value:
- The Tags section of the board becomes broken
- Tags no longer render
- The tags management UI does not open
- Users cannot view, edit, or manage tags anymore on that board
This affects all users who have access to the board, not only the attacker.
This results in:
- Permanent functional disruption of the tags feature for the board
- Denial of service at the feature level
- Loss of integrity of board metadata
The issue happens because the backend accepts invalid input that the frontend cannot process or render correctly, causing a function confusion between backend acceptance and frontend expectations.
Attack Scenario
- Attacker has normal access to a Deck board
- Attacker sends a crafted request to create a label with an invalid
colorvalue - Server accepts the request without validation
- Invalid tag is stored in the database
- Tags section becomes unusable for all board members
Expected Behavior
- The server should strictly validate the
colorparameter - Only allowed color formats (predefined values or valid HEX/RGB formats) should be accepted
- Invalid input should return a 4xx error
Actual Behavior
- Arbitrary values are accepted for the
colorparameter - Server responds with 200 OK
- Invalid data breaks the tags rendering and management functionality
Security Impact Summary
- Low privilege user can break core board functionality
- No special permissions required
- Affects multiple users
- Persistent impact until manual backend cleanup
==The PoC Video==
Impact
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
The backend accepted and stored the colour field without validating it against the formats the frontend expects, so the frontend could not render the stored value.
Impact
All users with access to the board could no longer view, edit or manage tags, a persistent feature-level denial of service until the data is cleaned up manually.
What the attacker needed
Normal access to a Deck board
The fix
The server should strictly validate the colour parameter, accepting only allowed formats and returning a 4xx error for anything else.
How it was found
- With normal access to a board, send a request to create a label with an arbitrary string as the colour.
- Observe the server returns a success response instead of rejecting the value.
- The invalid tag is stored and the tags section of the board stops working for all members.
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.
A tag (label) on a board has a colour, and the website expects that colour to be a real value it can display. The server saved whatever text was sent as the colour, so the page later failed to show the tags. Because the bad tag is stored on the shared board, everyone using that board is affected, not just the person who created it.
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.