Dont use Reddit username or Facebook username or anything like that even if it could be cool. That way you dont have to worry even if some log file or error stack trace recorded your username.

all 12 comments

sorted by: hot top controversial new old
[–] 2 points 3 years ago (2 children)

Drive your web dev nuts and use [object Object] as user name

  • source
  • hideshow 2 child comments
  • [–] 0 points 3 years ago (1 child)

    OK, I guess it's some sort of sql injection, but what does that actually does?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 3 years ago

    Not really - a SQL Injektion would be naming my user user"; DROP TABLE USERS;-- or something like that.

    My string is harmless but might scare web devs: How often do you see pseudocode like this?

    log(INFO, "User "+user.userID+" logged on")
    

    Usually this should print User @someone@example.com logged on as the variable content gets converted to a string. But if the variable is not a simple datatype like string, but a complex one, there might be errors. If you do the concatenation above with an object instead of a string, this would only print User [object Object] logged on. Now when the web dev sees this line he's going to try to find the Bug, where this variable gets set to the wrong value/type, when in reality it's just your carefully crafted user name.

  • source
  • parent
  • [–] 1 point 3 years ago* (2 children)

    And don't forget to always use password as your password! 🤡

  • source
  • hideshow 2 child comments
  • [–] 1 point 3 years ago (1 child)

    Uh, but if you were to post a logfile or whatever online you'd anyways sanitize it before posting, right?

  • source
  • hideshow 1 child comment
  • [–] 1 point 3 years ago

    Don't use "user" as your username. Use a personalized one, because it is much easier to identify and obviously it is a requirement in a multi user context.

    If you share your logs pseudonymize them, but pick anything other than "user", because it makes it confusing especially when dealing with pam, ssh etc.

    Overall not great advise.

  • source
  • [–] 1 point 3 years ago (2 children)

    Why would I be worried about my username showing up in logs and errors?

  • source
  • hideshow 2 child comments