Skip to main content

vandalizing other people's cards should be prevented

The project looks very nice, but it’s possible to vandalize other users’ cards/profiles:

Let's say user A creates a card with custom design id afB0FP_V and embeds the created card in their GitHub profile. Then user B can see in user A's profile which design id the card uses and make a request to the githubcard.com API (PUT

https://githubcard.com/api/v1/designs/afB0FP_V) to update this design and completely change its contents. This overrides user A's design and allows user B to vandalize user A's GitHub profile.

Status: Completed3 comments

Log in to comment and vote

Comments3

  • martin

    •

    Dec 18, 2025

    It’s not fixed yet. As long as I am logged in as any user, I can still override other users’ designs.

    Btw, I have accidentally overridden the topmost card in your profile when verifying your patch, because I assumed that this would be prevented. Sorry!

    • Colin Lee

      Team•

      Dec 21, 2025

      Wow, I just noticed your reply! I was puzzled a few days ago about why my stats card changed, and now it all makes sense 😄 I'll fix this right now.

  • Colin Lee

    Team•

    Dec 15, 2025

    Good catch. I'll add authorization checks to prevent unauthorized access.