Skip to content

We should have a way to mark that a user has been deleted #1585

@sgrif

Description

@sgrif
Contributor

When a user deletes their account (or renames it and never logs back into crates.io), we are never able to find out about it. We continue to show that github username's avatar, and links to the github account with that name, even if someone else has created a new account with the same name.

We should have a flag we can set to mark that a user has been deleted, which shows the avatar of @ghost, and either removes all links to their github account, or links to @ghost. This does not affect repository links, which are just URLs given to us in Cargo.toml, and not coupled to Github in any way.

I do not think we should try to automate this, but we should have the ability to do this manually when we receive reports.

The main blocker here is how do we link to that user once we know they're deleted. We currently use gh_login as the identifier in /users, we will need to do something else in this case.

Activity

added 2 commits that reference this issue on Dec 27, 2018
7343dd7
500051a
carols10cents

carols10cents commented on Dec 27, 2018

@carols10cents
Member

I don't understand why we need this, could you explain the benefit?

sgrif

sgrif commented on Dec 27, 2018

@sgrif
ContributorAuthor

We continue to show that github username's avatar, and links to the github account with that name, even if someone else has created a new account with the same name.

This leads to confusion at best, and is a vector for social engineering attacks at worst. We're implying that some user who does not own a crate does

carols10cents

carols10cents commented on Dec 28, 2018

@carols10cents
Member

This leads to confusion at best, and is a vector for social engineering attacks at worst. We're implying that some user who does not own a crate does

So github user carols10cents owns crate foo. github user carols10cents deletes her github account. malicious user warols10cents registers now available name carols10cents and logs in to crates.io. Per this test, crates.io/users/carols10cents now links to warols10cents' carols10cents account and displays the crates that warols10cents has published. warols10cents doesn't have access to the crates carols10cents published.

Can you clarify what the social engineering is that warols10cents would have the ability and motivation to do?

sgrif

sgrif commented on Jan 1, 2019

@sgrif
ContributorAuthor
carols10cents

carols10cents commented on Jan 3, 2019

@carols10cents
Member

You're missing that carols10cents still owns crates. Their crates.io account still exists. We still need to link to it. Right now we're literally just linking to a different account, implying they are the same. You're correct that if you're paying attention you'll notice that they aren't, but we shouldn't be putting that burden on our users to notice.

The "confusing" aspect I see, it's the "social engineering" bit that I'm still not getting. I do think we should fix it, I just don't see the urgency that "social engineering attacks" prompts.

sgrif

sgrif commented on Jan 3, 2019

@sgrif
ContributorAuthor

I think I may have communicated poorly. I was not attempting to imply urgency, or that there's an obvious attack vector that is being exploited right now (if there were this would not have been opened publicly). By "confusing at best, and a vector for social engineering at worst" I was just trying to say that we should fix this no matter what, because it's definitely confusing and I think there is the possibility of someone using this for nefarious purposes by impersonating another user.

added
C-internal 🔧Category: Nonessential work that would make the codebase more consistent or clear
on Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-internal 🔧Category: Nonessential work that would make the codebase more consistent or clear

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @carols10cents@sgrif

      Issue actions

        We should have a way to mark that a user has been deleted · Issue #1585 · rust-lang/crates.io