Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restricted user names #26

Open
sbddesign opened this issue Jul 16, 2024 · 3 comments
Open

Restricted user names #26

sbddesign opened this issue Jul 16, 2024 · 3 comments

Comments

@sbddesign
Copy link
Contributor

sbddesign commented Jul 16, 2024

For security. Stuff that could be room for social engineering abuse, collision, or confusion. E.g., prohibit stuff like:

  • admin
  • administrator
  • info
  • information
  • twelvecash
  • account
  • etc.
@paulosacramento
Copy link
Contributor

Here is a first list of possible usernames that are not allowed:

Administrative/User Roles:

  • admin
  • administrator
  • root
  • sysadmin
  • superuser
  • operator
  • support
  • helpdesk
  • webmaster
  • mod
  • moderator
  • manager
  • boss
  • owner

Company/Service Names:

  • twelve
  • twelvecash
  • twelvecashsupport
  • twelvecashhelp
  • twelvecashadmin
  • company
  • service
  • official
  • supporttwelve
  • twelvecustomer
  • twelvestaff

Contact Information:

  • info
  • information
  • contact
  • support
  • help
  • billing
  • sales
  • inquiries
  • no-reply
  • noreply

Security/Authority:

  • adminuser
  • master
  • security
  • secure
  • policy
  • terms
  • privacy
  • compliance
  • legal
  • law
  • police
  • officer

System/Default Names:

  • system
  • guest
  • anonymous
  • unknown
  • default
  • test
  • user
  • public
  • undefined
  • rootuser
  • testuser

Phishing-Related Names:

  • login
  • signin
  • signup
  • forgotpassword
  • resetpassword
  • recover
  • verification
  • confirm
  • authenticate

Social Media Handles:

  • facebook
  • twitter
  • instagram
  • linkedin
  • snapchat
  • youtube
  • tiktok
  • social
  • media

@sbddesign
Copy link
Contributor Author

@paulosacramento I agree this seems like a pretty comprehensive list. This seem like a good place to start, then we can add more names in the future if needed.

@sbddesign
Copy link
Contributor Author

For @chdwlch, myself, or any other coder who wants to take this issue, here is a sketch of how I see this working:

  • Create and export a const prohibitedNames:string[] = ["admin", "administrator", etc...] containing Paulo's list of names.
  • In any API endpoint that handles name creation or checking if a name available to claim/buy, import prohibitedNames
  • Validate that the user's desired strong is not contained inside of prohibitedNames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants