News for hackers. Stuff that matters.
Re:A real case of Bobby Tables? by e2le on Monday December 04, 2023 @11:35AM (#38519386)
Wouldn't it make more sense to create a whitelist of allowed characters (a-z, A-Z, 1-9, etc.)?
Re:A real case of Bobby Tables? by kevindamm on Monday December 04, 2023 @11:49AM (#38519599)
Perhaps, but then do you still allow '-' for hyphenated names? Then, depending on the system and the query, '--' could still be problematic. Also terms like DROP, NULL, WHERE can still be constructed.

Proper query building and sanitization is the only reasonable solution.

Re:A real case of Bobby Tables? by not2b on Monday December 04, 2023 @11:57AM (#38519725)
My wife has a hyphen in her legal name. This is beyond the ability of most sites and companies to deal with and causes them to fail in random ways.
Re:A real case of Bobby Tables? by arp242 on Monday December 04, 2023 @12:07PM (#38519868)
Just today I was instructed by my bank to "use your full name". I have two middle names an the total length is 33 characters. The length limit was 20-something characters.

(the most annoying part is that I'd change it if I could because it has no value to me and is just a pain, but that my government doesn't allow it... :-/)

Re:A real case of Bobby Tables? by chrisdhoover on Monday December 04, 2023 @12:26PM (#38520136)
My name is often truncated
Re:A real case of Bobby Tables? by eclipticplane on Monday December 04, 2023 @01:49PM (#38521317)
Mine gets munged with my first name and middle initial happening to form a different name anywhere where names get smashed together -- like plane tickets. Think 'ADRIAN A' vs 'ADRIANA'.
Re:A real case of Bobby Tables? by singlow on Monday December 04, 2023 @02:59PM (#38522334)
We need you to capitalize that, Mr. Often Truncated.
Re:A real case of Bobby Tables? by joemi on Monday December 04, 2023 @06:08PM (#38524518)
Same. My last name is 11 characters which is a little long but not that crazy, and my first and middle name are extremely common English names, and yet I can't often fit my full name in places that need it. Usually the issue is on paper forms (especially ones that have specific boxes for characters, which are usually the most important/official ones!), but it's also caused issues in various places on the web and in computer systems before.
Re:A real case of Bobby Tables? by Vicinity9635 on Monday December 04, 2023 @03:50PM (#38522854)
People swap my first and last names about as often as they don't, despite being formatted exactly like everyone else's on the thing they're looking at.
Re:A real case of Bobby Tables? by kimixa on Monday December 04, 2023 @04:01PM (#38522976)
A someone with two middle names "only" totaling 19 characters I still run into issues with many forms, both online and offline.

I'm never quite sure what to do on offline forms that have boxes for characters that run out, I normally just continue writing past the boxes, but at least one official government documentation has been addressed to me just missing the second one.

And a few things seem to handle having multiple middle names (and thus middle initials) poorly, ignoring the length.

Re:A real case of Bobby Tables? by ahazred8ta on Monday December 04, 2023 @08:40PM (#38525936)
In Hawaii, Mrs. Keihanaikukauakahihuliheekahaunaele can sympathize with you...
Re:A real case of Bobby Tables? by __david__ on Monday December 04, 2023 @09:54PM (#38526521)
I only have one middle name but it’s the one I’ve gone by my whole life. At some point trying to deal with forms got old and so I started just putting my middle and last names down and claiming no middle name. Most places that demand your full legal name don’t actually care enough to check, banks included. It’s never caused me problems.
Re:A real case of Bobby Tables? by hot_gril on Monday December 04, 2023 @05:38PM (#38524158)
I'm always thankful that my name has no hyphens, spaces, punctuation, or alternate spellings.
Re:A real case of Bobby Tables? by pixl97 on Monday December 04, 2023 @11:55AM (#38519681)
Heh, I need to write a science fiction short where aliens find AI on Earth but all the humans are dead after an interpretation mistake caused because of a company named "DELETE HUMANS"
Re:A real case of Bobby Tables? by xen2xen1 on Monday December 04, 2023 @12:25PM (#38520124)
Or where humans accidentally read and alien QR code, we all die, but the QR just meant "drink your Ovaltine" or "We're trying to reach you about your car's extended warranty?"
Re:A real case of Bobby Tables? by rpigab on Monday December 04, 2023 @04:01PM (#38522980)
In France, in 2004, a law was made to permit joining 2 family names together when parents want their child to have both last names, joined by not one, but two hyphens "--".

This lasted about 5 years before it was reversed. I met someone who had this in her last name and thought she was yanking my chain.

I'm so sorry my country did this.

Here is something in French that mentions the law, I couldn't easily find the original law online:

https://www.senat.fr/questions/base/2011/qSEQ110418181.html

Now that I think about it, it's entirely possible that it caused some issues with SQL.

Re:A real case of Bobby Tables? by hot_gril on Monday December 04, 2023 @05:36PM (#38524148)
Hm, even doing SQL parameterization the wrong way (with dumb string joins), it shouldn't be an issue on its own. The real issue is names like O'Connell.
Re:A real case of Bobby Tables? by rpigab on Tuesday December 05, 2023 @01:20AM (#38527695)
I know, the quotes must be there and will ignore anything inside, but with SQL misuse, you never know! Someone is probably using it in a worse way than any sane person would think possible.
Re:A real case of Bobby Tables? by firebat45 on Monday December 04, 2023 @11:47AM (#38519577)
That there looks like some of that "computer code" devil-speak!
Re:A real case of Bobby Tables? by PlunderBunny on Monday December 04, 2023 @04:15PM (#38523176)
Sorcery!
Re:A real case of Bobby Tables? by michaelt on Monday December 04, 2023 @12:30PM (#38520183)
There is one! https://www.legislation.gov.uk/uksi/2015/17/schedule/1/made

It allows : / . < > and " though which is enough to allow XSS.

Strangely, though, they don't allow lower case letters.

And yes, you can register a company named > LIMITED and someone has https://find-and-update.company-information.service.gov.uk/c...

Re:A real case of Bobby Tables? by binarymax on Monday December 04, 2023 @01:35PM (#38521117)
Hilariously they had first registered their name as "PREVIOUS COMPANY NAME LTD" and then changed the name to "> LIMITED" just for the joke.