Skip to content

[Bug]: User can overwrite profile visibility settings via API #59225

@miaulalala

Description

@miaulalala

⚠️ This issue respects the following points: ⚠️

Bug description

PUT /ocs/v2.php/cloud/users/<user_id>
Content-Type: application/json

{
  "key": "websiteScope",
  "value": "v2-published"
}

The API request allows a user to set visibility values that may not be supported on the frontend.

Steps to reproduce

  1. Log in to a Nextcloud instance as a regular user.
  2. Navigate to: Settings → Personal Info → Profile visibility
  3. Observe that the "Published" visibility option is disabled (greyed out) for certain fields (e.g., website).
  4. Intercept the request when modifying a profile field using a proxy tool (e.g., Burp Suite).
  5. Modify the request

Expected behavior

The API is in sync with the frontend UI

Nextcloud Server version

33

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions