And this is why you trust nothing. If you are accepting input, that input is maliciously crafted to break your program in ways so devilish that you couldn't think of them with a whole team of researchers, at least until you can prove it's actually safe and fine. The problem is people get lazy or forgetful or have unrealistic constraints and corners get cut...
It's really not THAT complicated... A team of researchers or just a competent senior developer will be more than capable of validating inputs and digging into the specifics of requirements.
I'm not genuinely saying they couldn't; partly I was being hyperbolic, but more meaning that even something which seems wholly innocuous could be leveraged to do things that might on the surface not even seem possible.
Strings shouldn't be as difficult as they still are in 2025. Everything got its 4th iteration of frameworks and strings are still parsed with contains and indexof or regex.
I have a contact form on my website and I only check if name/email/message are non-empty. Also IP rate limiting. Would that be unsafe? If not, what is a possible attack string?
Possibly SQL injection, Overposting, under posting. Sending too large input in a field (multiple GB in a handful of requests so your ip limiting doesn't protect against it)... May be CSRF protection but probably not relevant in that use case
Ada spark is a way to formally verify your programs. It would absolutely catch emojis in the input field. It would catch malicious or malformed packets too. If a user would enter null or any other special characters or anything else too.
It doesn't stop people from making bad code. It doesn't stop people from making bad tests. But it sure makes it easier to catch weird edge cases noone thinks about
121
u/erroneum Dec 25 '25
And this is why you trust nothing. If you are accepting input, that input is maliciously crafted to break your program in ways so devilish that you couldn't think of them with a whole team of researchers, at least until you can prove it's actually safe and fine. The problem is people get lazy or forgetful or have unrealistic constraints and corners get cut...
29
u/ByteBandit007 Dec 25 '25
Vibe test coverage
40
u/ivanrj7j Dec 25 '25
If your production breaks because someone entered an emoji, the devs and qa are equally stupid
12
u/aksdb Dec 25 '25
Apparently it is not perfectly coded.
4
u/timonix Dec 25 '25
That's when you run ADA spark. Formal verification >> 100% coverage
3
u/SysGh_st Dec 25 '25
If one code to support full unicode in all fields (and sanitizes where needed), this will not be a problem.
3
u/QultrosSanhattan Dec 25 '25
em-dash enters the password field
2
u/gordonv Dec 25 '25
Rawr ASCII ONLY! And I don't trust those "ASCII Emojis" Either!
2
u/Ben-Goldberg Dec 25 '25
Just don't use user input as part of a database query string or as part of a system command.
Write your code in perl with -T on the #! line.
2
u/thisisjustascreename Dec 25 '25
Line coverage can be nearly meaningless if you accept free form input.
2
u/Able_Act_1398 Dec 26 '25
So you missed a test case?
2
u/AnnoNewm Dec 29 '25
Sanitize your inputs, people!
1
u/CodeToManagement Dec 25 '25
Almost like test coverage isn’t actually a measure of quality or good tests
1
u/Nichiku Dec 25 '25
100% test coverage and unvalidated string user inputs? How does that work, exactly?
1
u/WarDull8208 Dec 25 '25
Billion dollar Idea! Fuck text inputs! Make a checkbox for every available symbols and force user to write it with checkboxes!
1
u/Cosmic_Frenchie Dec 25 '25
This actually happened to me on a project haha
1
u/palapapa0201 Dec 26 '25
*Vibe coded
1
u/Ill_University1851 Dec 27 '25
Abhishek Kumar
1
u/Ill_University1851 Dec 27 '25
Abhishek Kumar
1
u/West-Tangelo8506 Dec 29 '25
How is it perfectly coded if it can't handle text???
1
u/ARC_trooper Dec 29 '25
There is no 100% test coverage, that's a fairytale.
Just like the myth "this code has no bugs", just because you haven't found any bugs doesn't mean they aren't there.
1
u/3sc2002 Jan 13 '26
Monkey Testing(tm) FTW
18
u/MrZoraman Dec 25 '25
https://github.com/minimaxir/big-list-of-naughty-strings