Skip to content

IDOR: users can attach another user's platform links to their own cards #149

@Ridanshi

Description

@Ridanshi

Summary

Fix a broken access control vulnerability where authenticated users can attach another user's platform links to their own DevCard profile by supplying arbitrary platformLink IDs.

This allows profile impersonation and violates ownership guarantees across public cards.


Contexts

cards.ts accepts linkIds from the client and directly creates CardLink records without validating ownership.

Currently, any authenticated user can:

  1. fetch another user's public profile,
  2. obtain exposed platformLink IDs,
  3. create/update a card using those IDs,
  4. display another user's verified social profiles as their own.

Affected areas:

  • apps/backend/src/routes/cards.ts
  • apps/backend/src/routes/public.ts

Example vulnerable pattern:

platformLinkId: linkId

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions