GitHubCard Team

This post is also available in 中文.

Why We Require GitHub Login? From Convenience to Security

When we first launched GitHubCard, anyone could design and save a card without signing in. We wanted zero friction so you could open the editor, arrange a layout, and paste the link into your README in under a minute.

That worked fine for a small group of early users—until a community member pointed out a critical flaw in how unauthenticated saves worked. To keep saved cards from being overwritten by strangers, we made GitHub sign-in required for saving and updating designs.

Here is the exact bug that prompted the change, and what still works without an account.

The Problem: Public Design IDs + Unauthenticated Saves = IDOR

In the original flow, clicking Save generated a short design ID (like afB0FP_V). Anyone who had that ID could send a request to our API to update the design.

Because you embed that exact URL in a public README.md or personal website, the design ID is public by definition. As a user reported on our feedback board, that created a classic IDOR (Insecure Direct Object Reference) vulnerability:

"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 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."

Without authentication on write endpoints, anyone who viewed your README could inspect the image URL, grab the d=afB0FP_V parameter, and replace your card with whatever they wanted.

How We Fixed It: Ownership Bound to GitHub OAuth

We locked down every write operation behind GitHub OAuth:

1. Designs Are Bound to Your GitHub Account

When you save a design, our backend records your authenticated GitHub user ID as the owner. Only that account can update, republish, or delete the design. Knowing the design ID no longer grants write access.

2. Authenticated Write Endpoints

Every POST, PUT, and DELETE request to the design API verifies your session and checks that the authenticated user owns the target design. Requests without a valid session—or from a different GitHub user—are rejected with 401 or 403.

3. Public Rendering Stays Read-Only

Your embedded SVG and PNG links (such as https://githubcard.com/Cactusinhand.svg?d=JkKGFDBE) remain completely public and require no login to view. Visitors, README viewers, and social media crawlers only hit read-only render endpoints.

What You Can Still Do Without Signing In

You can still open the GitHub profile card generator or GitHub repo card generator as a guest, preview any public user or repository, and test widgets—including aggregate Star History. Sign-in is only required when you want to save a draft, publish a permanent short link, or set your default Open Graph card.

Signing in also gives your editor session a higher GitHub API rate limit (and if you manage high-traffic cards or organization repos, see why you might also install the GitHub App).

FAQ

Can I try the GitHubCard editor without logging in?

Yes. You can preview public profiles and repositories, rearrange widgets on the canvas, and test themes as a guest. You only need to sign in with GitHub when you click Save or Publish.

Will my embedded README image break if I log out?

No. Published SVG and PNG URLs are public and read-only. Logging out of the GitHubCard website has no effect on cards already embedded in your README or blog.

What permissions does GitHub login ask for?

Sign-in uses standard GitHub OAuth to verify your identity (read:user and email). We do not ask for write access to your repositories.


GitHubCard Team

Turn this into a card

Turn the ideas from this article into an editable GitHub profile card, repo card, or README section.