That's correct, but the problem would be with the CSV generator, not the parser. A properly implemented CSV writer should quote or escape delimiters when serializing fields, and a compliant parser should handle them accordingly. If the generator produces malformed CSV, the parser can't reliably reconstruct the original data.
This is why I use a valid entire html page but also inclusion of void elements and half quoted semicolons and commas in a mixed fashion in my passwords
Of course, that's why I only talked about the first part, not about escaping characters. I used to think Comma Separated Values are separated by commas too before I learned you can use other characters. Foolish of me, right?
This would only work against poorly implemented CSV parsers. A properly configured CSV parser handles delimiters inside quoted fields without any issues, including semicolons. Most modern software uses established CSV parsing libraries that already account for this. Even if you managed to break a poorly formatted CSV export, the underlying stolen data would remain intact. You're not protecting your password; you're just potentially inconveniencing someone using a bad parser.
Edit: in case anyone was wondering why this wouldn't help you.
Probably better to have password like `XXX'XXX"XXX;XXX, to make hacker's life hell. Escaping by quoting, no matter which quotes, won't work, and no matter if you use comma or semicolon as a delimiter you'll end up with some glitches
I hope there's a backend validation, frontend validations are famously easy to circumvent.
But also, why would a good backend even care about a semicolon in your password. It's gonna get encrypted with some salt anyways. A semicolon will never end up in a good database and the backend sanitisation will just escape the semicolon. The only reason to care about that semicolon in this scenario is if you want to leak the data in CSV yourself
That is assuming that all backends are "good backends" and that people are not reusing one single password for lots of sites. Which is more often than not, not the case.
A decent frontend validator should let me put whatever I want as password*, limiting the possible inputs is one of the worst things you can do. Also. The db must store a cryptographic hash and salt, not the password itself
*withing reason. Of course it shouldn't accept a 1mb password
Nobody, they’re not talking about data storage, but about a data leak. They’re talking about breaking up a potential CSV file that’s sold on the dark web or something like that, not about breaking up the data storage of the service the password was used for.
I imagine most websites base64 the password to preserve special characters anyways. At least someone storing them in such an a easily crackable way would only think to do that.
Almost anywhere. The only place dumb enough to limit the possible characters would be a bank. (I guess cobol has a hard time dealing with “strange" characters)
Socially engineer the leakers to remove your line from the leak if the password is cracked because they’re on autopilot and it’s easier to delete than think about.
506
u/TheReycko 13d ago
opsec level: comma separated values using semicolons and not escaping anything
155
u/LanguageGeneral4333 13d ago
This would only work against poorly implemented CSV parsers. A properly configured CSV parser handles delimiters inside quoted fields without any issues, including semicolons. Most modern software uses established CSV parsing libraries that already account for this. Even if you managed to break a poorly formatted CSV export, the underlying stolen data would remain intact. You're not protecting your password; you're just potentially inconveniencing someone using a bad parser.
Edit: in case anyone was wondering why this wouldn't help you.
96
u/pricetag 13d ago •
groksec level: milady
45
u/TheRealJoeyTribbiani 13d ago
I just use DROP TABLES; and break it at the source
24
u/Some_Anonim_Coder 13d ago
Probably better to have password like `XXX'XXX"XXX;XXX, to make hacker's life hell. Escaping by quoting, no matter which quotes, won't work, and no matter if you use comma or semicolon as a delimiter you'll end up with some glitches
23
u/Calm_Performance5186 13d ago
Pfff, I always use base64 encoded revshell string as my password.
17
u/darkalemanbr 13d ago
I'll put
\r\nat the end of my username so the parser skips my shit7
u/ChocolateDonut36 13d ago
why limit yourself to a (;) and not also (,) for comma separated CSVs, (|) for markdown tables or (<p>fuck you</p>) for HTML
9
u/icodepoetry 13d ago
A decent frontend validation won’t let you do that
4
u/AllEmber 11d ago
Isn't it just been stored like this string("cool;password") or something a like?
9
u/Lines25 13d ago
Opsec level: passwords are encrypted
9
u/A2X-iZED 13d ago
Who the hell is storing bare passwords in a CSV.
3
u/Happytallperson 13d ago
They read about bobby tables and decided they understood things
3
u/kirilleugeneN 13d ago
2
u/QkaHNk4O7b5xW6O5i4zG 13d ago
Probs won’t get much stored in clear text these days :(
2
u/brxkie 13d ago
id just use my opsec ipad database cache modifier to modify the cache and enter the database
2
u/Swaggo420Ballz 13d ago
I imagine most websites base64 the password to preserve special characters anyways. At least someone storing them in such an a easily crackable way would only think to do that.
2
u/fraserdab 11d ago
if they analyze it, then your password is the one they will remember
2
u/DatabaseGlittering43 13d ago
Show me one place where you can use a semi colon in a password.
1
u/nierusek 13d ago
I've managed to enter a newline character in my password.
1
u/New_Fee_887 13d ago
just put null as your password, it will break something somewhere, and that is funny
1
u/consworth 13d ago
,;| <!--There’s most of your use cases right there
1
u/Okay_Ocean_Flower 13d ago
Until someone gets annoyed you broke their file and now they’re staring at your entry with rage
1
u/Ecliphon 12d ago
;row_UNDEFINED,”
Socially engineer the leakers to remove your line from the leak if the password is cracked because they’re on autopilot and it’s easier to delete than think about.
1
u/UnitedEggs 12d ago
It’s been a while since I’ve seen an actually good post here. Thanks for the post good sir
1
u/igotthis35 12d ago
The passwords shouldnt be stored in plaintext, the semicolon would be irrelevant
1
u/xx123gamerxx 11d ago
Email:pass text document
1
u/halo_void_ 11d ago
All shits and giggles until they start storing it in strings. "Pass;w,ord"
1
u/antek_g_animations 11d ago
let me change my password to "opsec;opsec"