Skip to content

maintenanceWindow.notifyUserIds is publicly readable and leaks usage owners across organisations #1216

Description

@SudoThijn

Found while reviewing the beta release PR #1026 (head ae22b32).

The maintenanceWindow schema in lib/Settings/softwarecatalogus_register.json has "read": ["public"], and its new notifyUserIds property has no property-level authorization. visible: false only hides it in the UI, not in the API.

Impact: any anonymous API reader gets the Nextcloud user ids of the business and technical owners of every usage of the product. MaintenanceRecipientService resolves these with _rbac: false, _multitenancy: false across all organisations, so this exposes exactly what register.d/publication-field-rules.json keeps behind authenticated (usage.businessOwner / technicalOwner), and reveals which municipalities use a product even when their usages are unpublished.

Verification:

python3 -c "import json;s=json.load(open('lib/Settings/softwarecatalogus_register.json'))['components']['schemas']['maintenanceWindow'];print(s['authorization']['read'], s['properties']['notifyUserIds'].get('authorization'))"
→ ['public'] None

Suggested fix: add "authorization": {"read": ["software-catalog-admins"]} (or the narrowest group the notification engine needs) to notifyUserIds, and gate recipientsResolvedAt the same way.

Related (posted as a review comment on #1026): the window's own organisation can also write notifyUserIds / recipientsResolvedAt over the API, and recordRecipients() never checks that the window's author owns the module.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triageAwaiting triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions