this post was submitted on 08 Aug 2025
30 points (94.1% liked)

Cybersecurity

8129 readers
28 users here now

c/cybersecurity is a community centered on the cybersecurity and information security profession. You can come here to discuss news, post something interesting, or just chat with others.

THE RULES

Instance Rules

Community Rules

If you ask someone to hack your "friends" socials you're just going to get banned so don't do that.

Learn about hacking

Hack the Box

Try Hack Me

Pico Capture the flag

Other security-related communities !databreaches@lemmy.zip !netsec@lemmy.world !securitynews@infosec.pub !cybersecurity@infosec.pub !pulse_of_truth@infosec.pub

Notable mention to !cybersecuritymemes@lemmy.world

founded 2 years ago
MODERATORS
 

I remember hearing before that it's a sign they are storing your info unencrypted but I never checked.

Is this true? I was logging into a .gov website and noticed it does that.

you are viewing a single comment's thread
view the rest of the comments
[–] fibojoly@sh.itjust.works 3 points 1 week ago (2 children)

I've had it happen to me a few times on my phone that the stupid auto complete would write my email with a space after, and then the even more stupid form would take the space into account.
Took me a while to realise what was going on!

[–] subignition@fedia.io 3 points 1 week ago (1 children)

This has been something frustrating about switching to FUTO keyboard recently. Its auto space insertion isn't clever enough not to activate in username/email fields, compared to Gboard. So because many of my logins contain a period, I have to catch and remove all the extraneous spaces now.

Yeah, and it's annoying to type e.g. or i.e. I wish it was smarter.

[–] _core@sh.itjust.works 1 points 1 week ago (1 children)

Input forms can be designed so that an email input doesn't put a space in it. Notice the .com, .org or whatever doesn't do that, it's just when it's in the username portion. Its just lazy programming to not do it.

[–] fibojoly@sh.itjust.works 2 points 1 week ago (1 children)

100% why I wrote "the even more stupid form". Someone isn't sanitizing inputs and it drives me nuts every time.

[–] sugar_in_your_tea@sh.itjust.works 2 points 1 week ago* (last edited 1 week ago) (1 children)

Idk, I don't think silently removing whitespace in the middle of the text is appropriate (though beginning and end should be stripped), but the form should warm you when there's obviously invalid input.

Silently "correcting" input can be really annoying. For example, my SO's first name has multiple capitals, and some forms "helpfully" split it into two words and the first name gets cut. If I know that, I can spell it without the capitals, but sometimes it doesn't let me know and I need to call in to get it fixed.

[–] fibojoly@sh.itjust.works 1 points 1 week ago (1 children)

Oh I was talking about trimming an email, if it wasn't clear. Spaces are not valid characters so there is really no situation where they should happen. I do agree with you that an explicit message telling the user there is invalid input might be more appropriate, but if you know the correction to apply, I'd still apply it automatically ("hey we noticed you had spaces and we removed them; click here to keep them" or something)

[–] sugar_in_your_tea@sh.itjust.works 2 points 1 week ago (1 children)

Right, and trim is for the beginning and end. FUTO Keyboard will put spaces after periods, so it'll frequently try to enter something like first. Last @domain.Com. The casing isn't an issue because emails (and all URLs) should be treated as case insensitive.

I wouldn't expect a site to remove all whitespace, only leading and talking trailing whitespace, and then present an error if the email address is obviously invalid. There are libraries for this, and I think a simple regex would also be sufficient to catch most issues (search online for a vetted one).

Spaces are technically allowed before the @, provided you wrap it in quotes. That's incredibly rare and validating that is a bit of a pain, so I'd stick with making it an error instead of silently stripping what could be a valid, but unsupported, email address, since that would cause more confusion than an error.

[–] _core@sh.itjust.works 1 points 1 week ago (1 children)

I didn't know spaces were technically allowed before the @. TIL

Technically, but yeah, it's super rare, and most places don't support it.