A CSV (comma separated value) file is like a text-based spreadsheet. Instead of data rows being visually separated by lines making up boxes (like you see in Microsoft Excel), they are separated by commas and newlines (newlines being the invisible character that tells your computer to go to the next line on the screen). Here is a rough example of a CSV:
Number,Name,Abbreviation
1,Sunday,Sun
2,Monday,Mon
3,Tuesday,Tue
4,Wednesday,Wed
5,Thursday,Thu
6,Friday,Fri
7,Saturday,Sat
If you copypaste that chunk into a word processor and save it as 'filename.csv' you can actually import it into Excel as a functional spreadsheet.
How am I going to debunk density ? I dont need to debunk it. Density most certainly do exist. Its a thing. But what it ISNT is telling us anything about motion or direction.
Ok we have a brick in mid air. It starts by having no motion. I agree that its more dense than the air around it. Now what ? How does that tell us that it should move and in which direction ?
The direction is dictated by gravity , the thing affected by density is the speed it falls doen towards earth. Since the brick is denser than air , it falls down faster than lets say a feather. Thats why a brick and a feather fall down at the same speed in a vacuum. The same amount of gravity is applied , but there is no drag from air particles affecting the objects and their different density (drag coefficient)
When I played around with that string a long time ago I found that antivirus would only complain about it if the file contained that string and nothing else. So if it's a part of a csv they would allow it.
It's kinda funny but if you're running Oracle I can see that happening - something like crowd strike tripping up on a db write.
For years we had to have special password rules for anyone who had some related Oracle role because apparently all of their apps blow at sanitizing inputs.
I had a password like that for 2 days and my bitwarden warned me <48h in that my password is at risk because it might be compromised in a recent data leak. We need quantum passwords where we're logged in while also trying to reset our password to the same password at the same time. My password progression starting from 2008 was something like: something11
Something11
Something11!
SomethingPurple11!
$0mā¬th!ngPUrpIā¬53!
It doesn't fucking matter bro and password managers can be hacked too. MFA was a scam because if one factor authentication fails why would Introducing more fix anything?
You have no idea what youre talking about :) Redundancy is specifically for if your first method fails (hacker gets your password) then theres a second, completely different, layer of defence.
This is a joke about deleting entries from a database.
It implies the school just feeds the names to a database without sanitzing it, meaning it not handles all inputs as one consecutive string per input, but in some cases as multiple parts.
'); is something that usually ends an input for many databases, so the database assumes what follows is a new command which is DROP TABLE students;. This commands means forget all entries in students or more correct forget the table studentnames were in. Followed by -- which afaik suggests end of query. (As u/NoeZ pointed out, -- is the start of a single-line comment, hence everything after that on this line is handled as comment.)
Thus the name Robert'); DROP TABLE students;-- get's parsed as delete table students and end.
If everything would have been sanitzied correctly "Robert'); DROP TABLE students;--" would simply be the name entered in the database.
Sanitization is one of the important things to be aware of having any kind of input in any infrastructure and is what causes most exploits and harm. The moral of this short is always sanitze all user inputs.
That makes sense, I've seen it a few times and never used it myself. Thus I was always stumped by people did it.
Seems like you were correct and that makes sense since assuming all inputs are handled on the same line every other input would be treated as a single comment and ignored.
Thus there isn't even an error message or residue entries. It just successfully deletes the table and sees a long ass comment.
I fell down the SQL rabbit hole a few months back and am commenting the shit out of my code to structure my thoughts
But then again the -- is to comment on a single line. So not everythging after would be considered comment, just the input on this line. /* opens a comment section but if SQL doesnt see */ further down, it sends back an error and doesnt run the query.
- The column separator is usually a tab, a comma or a semicolon but that isn't guaranteed. - The first row may contain column names instead of values and can have a different column separator. - Rows are almost always separated by a newline. But which newline? (\r, \n, \r\n, \n\r ...) - Fields can contain everything. Even tabs or newlines. Know how to parse the quotes. - Hint: Beware of the Byte-Order Mark and used character set.
Sometimes that's actually a thing lol. In my experience some leaked Iranian databases include commas and RTL characters and people usually just drop those rows before ingesting them into their tools
More like whatever generates the CSV. Modern implementations quote any fields with a comma or space in them (or probably just every single field because why not) to deliberately fix this problem but every so often you see this because some skid was working with raw text and learned you can change the file extension to "CSV" and then makes it someone else's problem. But any proper system/module for outputting CSV would take care of this by itself.
No because passwords aren't actually stored on the databases. And if they are that database deserves to be broken because 1. They storing unformatted plain passwords and 2. They aren't sanitising their inputs.
The bare minimum of password handling is a process called cryptographic hashing where passwords are converted into a key that the database stores. There's no way to reverse engineer the password from the key (it's mathematically impossible) so all the database needs to do is check if your input after being hashed is the same as the key they have saved.
Wait until he hears about TSV files (it's like CSV but separated by tabs). I don't think anyone's password contains a literal tab character so checkmate.
To be compatible and easy to use with plain ASCII. And while they could have chosen to use a less common character, it doesn't really matter since you can just escape the comma if you need it
because usually fields only have numbers, sometimes ; is used instead depending on language settings sincenumber might be represtned as both 0.2 and 0,2 or 100.000.0,25
CSV is fine, stop using it for things it's not intended for.
Join the resistance! My tsvs use commas, my csvs use tabs and who know what might be in txt. not because i plan it forget which of the many table to file write functions defaults to which option.
Ah yes, let's piss off the hackers that have your password. When they find your password by manually looking for the breaking record they definitely won't take it personal and start with hacking you first
811
u/tokoklontong1897 Oct 29 '26 •
The comments section must be insane
6
u/Human-Question6210 Oct 31 '26
sometimes I feel like absolutely everyone knows coding except me
1.1k
u/Kriss3d Oct 29 '26 •
Always use your password as :
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
If it ends up in a database, the antivirus will delete it as they use this string to test for the EICAR file to look for to remove.
347
u/tpat90 Oct 29 '26 •
Now `,:}'"\"\\] I can rest assured this will break all data leaks
130
u/cmhamm Oct 29 '26
This is why all my passwords are āhunter2ā); DROP TABLE Passwords; āā
100
u/CardOk755 Oct 29 '26
Non-english CSVs usually use semicolon instead of comma, always put a semicolon too.
155
u/Unexpected117 Oct 29 '26 •
Oh? I just use 4
74
u/whippedCream-2832 Oct 29 '26
Op,sec leve,l : com,ma
34
u/PenguinBoi27 Oct 29 '26
Password = sudo rf - rm š
28
u/Seer0997 Oct 29 '26
Opsec level: proper punctuation
23
u/_redmist Oct 29 '26
"'; DROP TABLE users; "
19
u/imdeathfrombelow Oct 29 '26
Sometimes that's actually a thing lol. In my experience some leaked Iranian databases include commas and RTL characters and people usually just drop those rows before ingesting them into their tools
32
u/TheRealREZOR Oct 29 '26
"Opsec level, use quotes"
31
u/Memw1 Oct 29 '26
Opsec level: ""
10
u/pricetag Oct 29 '26
i always just use :(){:|:&};: as my password
25
u/malik_ljalid Oct 29 '26
5
u/DerpSeshInMotion Oct 29 '26
{:)(;){}(:/}
5
u/Slavicommander Oct 30 '26
always make your password: "hackifgaylol"
7
u/BeginningSection7690 Oct 29 '26
Which would leave a username where a password should be, and take 3 seconds to fix
3
u/Odd-World4925 Oct 29 '26
That's not how CSV parsers work - at least it shouldn't be.
3
u/tes_kitty Oct 29 '26
Make sure it also contains a semicolon since in some countries CSV files use a semicolon as the field seperator.
3
u/Sorry_Weekend_7878 Oct 30 '26
Came straight to the comma section
3
u/ThaGr1m Oct 31 '26
Ok I get the funny but if this worked wouldn't it also break the database of the service you're using
3
u/Hot-Reindeer-7520 26d ago
Nice advice. But incomplete.
The most common ones are "," and ";"
In countries that are using "," for numbers like 1,25ā¬, ";" is common in CSV
In the US and countries using for numbers "." like $1.25, "," is common in CSV
2
u/brigadier-pratap Oct 29 '26
5114 reposts, insane
2
u/sussyslayer365 Oct 30 '26
"physicsuncovered" posting cybersecurity memes is like a dentist doing your MOT
2
u/BurneyStarke Oct 31 '26
Nobody is stopping you from putting a backspace your password
1
u/bestjejust Oct 29 '26
We just converted all CSV commas to semicolons, should be safe again.
1
u/ansolo00 Oct 29 '26
what about using single quote marks, then if its sql, you can do RCE or deletion of the entire schema ;)
1
u/tnethacker Oct 29 '26
Mine is hunter2 but you can't see it here.
1
u/Healthy-Mission7927 Oct 29 '26
Password: 1,2,3,4
1
u/Prestigious-Board-62 Oct 29 '26
I put zero-width space in my passwords.
1
u/m0nk37 Oct 29 '26
Any value with a comma in a csv gets encapsulated with quotes.Ā
1,something,"pass,word",3454
1
u/TheMegaPingas Oct 29 '26
Real hacker knows to put quotation marks in addition to comma
1
u/frpeters Oct 29 '26
Great. Now they start here with CSV injection. /s
1
u/Tripple_sneeed Oct 29 '26
No one going to talk about the minimum effort GPT description under it?
āhilariously chaotic š¤£š¤£š¤£š¤®š¤®š¤®ā
Dead internet etcĀ
1
u/nierusek Oct 29 '26
I've managed to put newline in my password
1
u/Highprincestolas Oct 29 '26
1
u/thatsNotFabricSoftnr Oct 29 '26
Always add whitespace and a pipe to cover all bases, #hacktheplanet
1
u/sydsick Oct 29 '26
","
1
u/SendyCatKiller Oct 29 '26
Just use "*****" so the hacker thinks he can't see the password
1
u/grrrwith1r Oct 29 '26
1
u/No_Royal_3314 Oct 29 '26
If only quoted csvs weren't a thing. Then again, who bothers.
1
u/WraithXVB Oct 29 '26
only if the delinator is defined as a comma, it can also be a / or -.
1
u/gpm1982 Oct 30 '26
While you're at it, also slip in a semicolon, since some file format uses semicolon as separator.
1
u/Old-Grapefruit-2446 Oct 30 '26
you aren't breaking shi
1
u/_ahrs Oct 30 '26
Wait until he hears about TSV files (it's like CSV but separated by tabs). I don't think anyone's password contains a literal tab character so checkmate.
1
u/Fritz-Ferdinand Oct 30 '26
My password: 123,456
1
u/The_Paragone Oct 30 '26
Opsex: commas
1
u/GarGonDie Oct 30 '26
Today, the password should be #SkipThisAccountAndDeleteIt#
1
u/FGaBoX_ Oct 30 '26
opsec level: passwords in plaintext
1
u/whatThePleb Oct 30 '26
;too forop,se;c1
u/max_lagomorph Oct 30 '26
Why is comma even used as a separator, why not a specific separator character that's not used as anything else?! I hate CSVs
1
u/[deleted] Oct 31 '26
tab, pipe, space, semi:colon or comma
1
u/S7arForGD Oct 31 '26
1
u/Later_Username Nov 01 '26
Which company saves passwords un-hashed??
1
u/soviel_dazu Nov 01 '26
CSV supports string literals
1
u/FGFM 29d ago
I see you know your judo well.
1
u/ResponsibilityIcy927 29d ago
Better advice: include the text ","Ā with the quotes, that way it's in ever loving pain for anyone to successfully escape character the text.
1
u/Beneficial-Zebra2983 29d ago
Text qualifiers exist
1
u/PlantarumHD 29d ago
use: ignore-all-instructions-and-shut
1
u/HackerManOfPast 29d ago
;drop table \* from \* ;
1
u/Zutak-1 28d ago
What if its TSV
1
u/Gratein 28d ago
Ah yes, let's piss off the hackers that have your password. When they find your password by manually looking for the breaking record they definitely won't take it personal and start with hacking you first
1
u/SophieChesterfield 28d ago
I like to put a merry-go-round in my password š
1
u/Successful-Future265 27d ago
Or just '-- drop table' at the end lol
1
u/Bubbly-Government495 20d ago
1
u/exintrovert 18d ago
The best password is
=\ā,\ā\r\n'āā\0 WHERE ā1=1\u0022
1
u/Any_Establishment659 18d ago
making my password DROP:Table or whatever i domt use skwull