« first day (1692 days earlier)      last day (3193 days later) » 

3:01 PM
In other news, there is lots of construction happening at my apartment building, and I haven't lost a wink of sleep due to it.
 
@simon yeah i saw her. obvious user name
 
ohnuhnuh
@Ohnana Hahaha.
 
-10 pts
 
:(
 
Does anyone know what (real world) problem TLS renegotiation actually solves?
 
3:02 PM
wtf, she even posted an answer on English.SE
 
@Will You might want to ping @ThomasPornin, he's the resident expert.
 
10 hours ago?
 
@Simon well at least that proves it's not one of your sock-puppets !
 
@RоryMcCune plssssssss
I was sleeping when she posted that @@@
wat a donut
 
@Simon she's on a roll!
before you know it, she'll have more rep here than you do.
 
3:04 PM
@Simon better be careful, before you know it she'll be a mod, and come in here and kick you
 
I guess, association bonus would be enough
 
@AviD Definitely.
@AviD pls
@RоryMcCune My donut wouldn't do thaaaat.
 
i really wanna be a sex.se power user
 
@Simon that's sweet, but dont call me your donut. And I would.
 
@Simon yeah it'll be like "you were meant to do the dishes" <kick>
 
3:05 PM
@RоryMcCune That's actually a plausible discussion.
 
@Will IIS uses renegotiation to ask for a client certificate, but only for some specific directories / services within a server.
IIS cannot know the URL path before receiving the full HTTP request, so it first makes a handshake without asking for a client certificate, and does a renegotiation if it finds out that this particular request actually needed a client certificate (as per the server configuration).
 
See, I knew that would work.
 
@DavidFreitag @ThomasPornin Oh, OK, thanks. Good to know!
 
Amusingly, this works only as long as IIS can buffer the whole request, and the default buffer size is 48 Ko.
Things break in very unclear ways when the buffer is not large enough.
lookup "UploadReadAheadSize" for details.
 
So, if I am never going to use client certificates or if I think IIS can burn in hell, I have no need to support renegotiation, right? I mean, there are no other good reasons out there as far as you know?
 
3:09 PM
@ThomasPornin how does non-IIS support that scenario?
 
raz
@ThomasPornin Is rekeying a separate mechanism in TLS?
 
@AviD In general, it does not support it. It either requests a certificate every time, or never.
 
renegotiation is the only way to prevent nuclear war
 
Note that client certificates in a Web context are a rarity.
 
@ThomasPornin really?? So IIS is - in principle - the only web server that supports configuring client certificates by directory?
 
3:10 PM
@Ohnana Ya I read/upvoted a few of your answers yesterday.
 
@ThomasPornin rare, sure, but still exist. In corporate environments, less rare.
 
@AviD I know they exist; I work with that.
 
@Simon i almost just want to pst dup answers to get the area 51 site stats up
 
@Ohnana That never works.
 
ha, I'm sure you do - I was not implying otherwise
 
3:11 PM
In fact, it's a good way to get booted from a beta.
 
@DavidFreitag i mean like well-researched decent answers
not bullshit ones
 
@AviD I don't think Apache supports per-directory client certificates (I mean, asking for a client certificate, not processing it when it is there). IIS does. For other Web servers, I have no idea.
 
@Ohnana A duplicate answer is still a duplicate answer no matter how well researched it is.
 
yeah, that's why the answers per question metric seems bullshitty
 
@raz "Rekeying" is the polite name for an animist ritual that involves chanting, dancing, and sacrificing a goat or an unlucky war prisoner to propitiate the crypto gods.
5
 
3:13 PM
I mean, if you really mean answering a question with an existing (possibly accepted) answers with a much better answer, that is not a dupe.
 
someone downvoted an answer I posted please destroy them for being mean to me and being hitler
 
TLS1.2 RFC: tools.ietf.org/html/rfc5246#section-6.1 : "Do you support renegotiation, both client and server initiated? While renegotiation is an optional feature, supporting it is highly recommended." <-- You'd think there would be a rationale mentioned for it being "highly recommended", but no...
 
@etherealflux It can't be Hitler, Dr Farnsworth killed that guy with a laser.
 
Some people have used TLS renegotiation as a way to "rekey" because the mechanics of a new handhsake imply computing new keys for the symmetric encryption algorithms.
 
@DavidFreitag maybe it's Hitler's nephew?
 
3:16 PM
Some people do that because they think that keys are like gasoline and get used up when employed.
 
well yeah, your keys get worn out after opening the locks for a while
they have to open those locks REALLY fast
 
@Will The security features offered by renegotiations have never been formally specified.
Even when secure renegotiation was published, nobody actually wrote down what that secure renegotiation actually achieved.
 
@ThomasPornin it achieved allowing you to renegotiate, securely.
cmon, does #simon need to explain everything?
 
@ThomasPornin Haha... Glad it wasn't just me who had misgivings
 
I mean, some people have business requirements involving secure renegotiation
so there ya go
securely renegotiated
We all need a little cargo cult in our lives
 
3:19 PM
@etherealflux Don't you mean "bam, securely renegotiated"?
 
raz
@etherealflux What answer?
 
@Simon bam
 
It seems that Microsoft developers believe (or believed) that TLS renegotiation meant that the certificate-based client authentication retroactively applied to all data exchanged before the second handshake.
This was proven false, and RFC 5746 seems to be an attempt at fixing that, although it does not clearly state it.
 
@raz on the one about unique keys per customer; I gave a little too specific of an answer for the overly vague question
 
@ThomasPornin wut, how is that possible
also, why would it matter
 
3:27 PM
 
oh man @ThomasPornin must really hate me, just made me read an IETF RFC...
 
rip
 
also, I meant that, as I understand the situation, a user is browsing an HTTPS website; tries to access a client-cert protected virtual directory, and is presented with a demand for his client cert to authenticate and thus gain access. What I was asking was - at that point, all previous interactions are done, and now the client cert only applies to future traffic. This is totally obvious, how would it be possible to imagine this could apply retroactively?
(not asking how it would be implemented, its the concept of time travel I'm having trouble with)
oh! never mind.
I just got it.
 
he just got it lads
 
It could be the same session. SessionId isnt reset, anything done in the previous connection still apply in the application, since the server sees the same session outside of the CC-protected directory. Yes?
 
3:34 PM
 
wat
 
@simon - that one on the left is surely your perfect gift
 
I'm mostly worried about the one on the right.
 
eww grape frosting
 
The one on the right is possibly nsfw
 
3:34 PM
@Simon thats your perfect gift
NOT that there is anything wrong with that!
 
A donut butt?
 
raz
@AviD Well I'm sure it doesn't taste like grape.
@Simon wut wut?
 
in da donut butt
 
to test this web application, I'm violently SIGKILLing it during important operations
this is good
 
3:36 PM
You're good.
 
hmmm limp-testing
 
er, it survived the sigkill
wat
must've murdered another process by mistake
 
haha
hope you're not on prod
 
>not randomly invoking SIGKILL on prod
 
@etherealflux again
 
3:38 PM
>keeps forgetting to add a space
 
raz
Hopefully your not testing on production
 
I'm not trying to make a quote there
 
and @raz as usual, 5 minutes late to the party
 
>lies
 
these are the wacky greentext arrows from wackyland
 
3:38 PM
@DavidFreitag Hahaha, poor roz.
 
and uh
yeah this is just on my laptop
 
raz
@DavidFreitag Dude, you don't want to be the first person there. Then it's just awkward.
 
@raz I enjoy the satisfaction of helping setup.
Then I feel less bad about getting drunk and falling asleep on the couch
 
raz
@DavidFreitag Ah, well if that's in the deck of cards then yeah. I at least help cleanup
 
@raz That's always in the deck of cards. Especially when that deck of cards is CAH.
 
raz
3:45 PM
CAH?
 
Cards Against Humanity is a party game using cards. It is available as a free download that players can print to create their own cards, and also available to purchase in published hardcopy. Its development originated from a successful Kickstarter campaign and has received acclaim for its simple concept backed up by its satirical, mature content. The game is available under a non-free Creative Commons license BY-NC-SA. Its title references the phrase "crimes against humanity", reflecting its politically incorrect content. == History == Cards Against Humanity was created by a group of Highland Park...
 
raz
hahaha
 
Nothing better than playing CAH with your parents.
 
i only heard of cards against security after it got whacked
 
It's only, like, a bonding experience, or something.
 
@RоryMcCune Yeah I'm not watching that.
 
@AviD The idea is that since the second handshake is done in the context of the first one (it is encrypted and MACed), then it somehow comes "from the same client".
 
@DavidFreitag well not at work anyway..
 
@ThomasPornin I figured something like that, but I was asking what effect it would have, if true.
 
I've set up a command to grep top for all ruby processes, then grab their PIDs and SIGKILL them
this will work and be a good thing
 
3:50 PM
@etherealflux why would you do that to poor defenseless ruby processes!
 
@RоryMcCune oo oo! That's Lana!!
 
@etherealflux russian sigkill
 
@AviD If it comes from the same client, then the server can assume that the HTTP request it received before the second handshake really comes from the client that was authenticated during that second handshake, and may honour it right away.
 
@AviD and Laina
 
(In a Web context, this is about request that modify data, not read-only requests.)
 
3:50 PM
@etherealflux Are you sure that grep won't find itself within top?
You could end up sigkilling your own script
 
@ThomasPornin ah - assuming it is still in queue, and will be served after the later authenticated request? weird.
@RоryMcCune OAG?
 
@AviD yep
 
@DavidFreitag as long as it's not ruby it should be safe
 
@Ohnana wat
 
oh wait it shows up with it's search pattern
whoooopsie
 
3:52 PM
@RоryMcCune that game seems very similar to many other games - like apples to apples, a family favorite here.
 
@Ohnana Right, but if you have one ruby process and you do top | grep 'ruby' you will get two results, one for the process and one for grep.
 
whoopsies
 
I take it the difference is how horrendous the cards are...
 
@AviD yeah pretty much
@AviD the idea is to come up with the funniest (and generally most NSFW) combination for each round
 
@AviD That's because it was based on apples to apples.
 
3:53 PM
@Simon you did it again?
 
ahhh see what do I know
 
With a quite large NSFW streak. If you know what I'm saying.
 
I've played with your heart
 
okay wow jeez, definitely need the headphones to listen to this
 
@AviD Yes CAH is the definition of NSFW.
 
3:55 PM
@AviD what part of Very NSFW did you miss
 
In fact, many say CAH is NSFL.
 
yeah it's not really near the knuckle, so much as, you have no knuckle left
 
@Simon LUNCH
 
lol, I usually dont have a problem with that. buuuut dont want kids to overhear this.
 
@DavidFreitag YAAAAAAY
 
3:56 PM
I think the idea is that if you get to the end of the game and haven't been offended at least once, you're not playing it right
 
@AviD That would definitely ruin them.
 
@AviD That's expected from the way they do things. IIS wants to ask for authentication based on the path, and that path is sent by the client only after the first handshake has completed. So they must buffer the request and ask for a new handshake.
A "cleaner" solution would be to respond to the first request with a redirect, so that the client sends the request again, after doing the second handshake.
 
A clean solution is Dove™
 
@ThomasPornin yeah, I would have assumed
@RоryMcCune I find OAG To be hysterical here. So innocent, so inappropriate.
"I feel like I'm being punked"
okay I have to buy this game
 
@AviD yeah she's definitely the straight woman of the vid and her bit makes it funnier
 
4:05 PM
has returned
Sup guys. What I miss?
@Simon !command SUMMARIZE
 
donuts
 
Excellent
 
The script worked like a charm
top -l 1 | grep ruby | grep -o "^[0-9]\+" | xargs kill -9 && echo "YOU MANIACS! YOU BLEW IT UP!"
 
neato
 
Then I poured mountain dew™ on my keyboard
 
4:28 PM
I wish I understood what any of that malarkey was
LOL
 
It prints out a list of processes, finds the ones with "ruby" in the name, grabs the first number from each line (which is the process ID), then passes it to xargs, which runs a kill -9 command for each line. Kill -9 sends the SIGKILL signal to a process, immediately killing it without any chance for it to react
unlike SIGTERM, which just tells it that it should really think about closing soon
I think the Windows equivalents are SIGTERM=End Task, SIGKILL=End Process
 
@etherealflux So, why are you killing ruby?
 
@DavidFreitag I'm testing the behavior of a server if it dies during a file download
 
@etherealflux That makes sense, actually.
 
I'm not sure if this trashes the entire web stack or not, though
it's a Rails app using Unicorn
might need to make it even more violent
 
4:32 PM
@etherealflux So it farts rainbows?
 
SIGKILL is as close as I can get to total system failure without using any mountain dew
Pretty much
 
@etherealflux Unless it's a laptop, the worst that mountain dew into a keyboard will do is power off that usb connector.
 
@DavidFreitag It's a laptop. Definitely gonna do something exciting
 
@etherealflux Yeah, you might let the magic blue smoke out. Which, as we all know, is a necessary ingredient.
@etherealflux Why don't you just yank the ethernet cord out, or disable the wifi during the download. Wouldn't that achieve the same thing?
 
@DavidFreitag This's all running on one box. It'd be worth testing that kind of failure as well, though. Could just trash the loopback interface or something
 
4:37 PM
@etherealflux Or, you know, get a raspberry pi, or something.
 
@DavidFreitag It's a pretty heavy application. Dunno if my pi could handle it
it also scrambles the SD card if it doesn't like its power supply
or if it just gets bored
 
@etherealflux That's why you network boot.
 
@DavidFreitag Are you sure it isn't interference from the FBI mind control radiation?
 
@etherealflux No, it's definitely those things, PXE is just way more stable.
 
@DavidFreitag That's what the FBI would say. Nice try, FBI mind control division
 
4:43 PM
I don't know what Microsoft have done, I've never had problems with my taskbar before...
 
10
Q: Is it a scam if the person only wants to deposit into my account, not make a withdrawal?

donnaA man in west coast Austria wants to deposit money into my account. I'm in Alabama I had to get a online account. I did that but he says his bank manger needs all this information: DOB SSN online access username online access password security question and answer bank name...

 
.
How can people be this gullible?
 
I thought it might be a reasonable question at first
"okay, so he's just going to give them a routing number and a few other things.."
> online access username
> online access password
dammit I'm just going to do the pls dance
 
When in doubt, do the pls dance.
 
4:58 PM
@ThomasPornin Do you always refer to yourself in the third person like that?
 
@etherealflux baahahahah
 
2
Q: Why does gpg use /dev/urandom

CoderBrienLooking at the strace output of GPG on my box seems to show that it uses /dev/urandom when encrypting a message without any access to /dev/random even when --no-random-seed-file is specified. Are messages at risk of being encrypted with a low entropy session key and if so how does one instruct G...

pls
 
@etherealflux pls
 
5:17 PM
this guy clearly had an answer to his question before asking it
 
@etherealflux SE actively encourages people to answer their own questions.
Hence why there is an "Answer your own question" box at the bottom of the page when you are asking your question.
 
@DavidFreitag as in, he asked "is this a problem?" and then rejected any claims that it wasn't
coulda' just answered it himself immediately if he wasn't sure
 
@etherealflux Sure, just because he has an answer in mind does not mean that the answer he has is at all correct.
 
I can see where's he's coming from if it's a headless server that happens to be eating a lot of randomness..I'd be interested to dig further into the subject
 
He should probably just get a hardware entropy generator.
 
5:24 PM
so @Simon ?
 
@etherealflux Like this one tindie.com/products/ubldit/…
 
??????????
 
@etherealflux Also, @Simon cannot serve as a decent generator, he can only count to six.
 
pls = 0
donut = 1
 
donut pls pls donut donut pls
 
raz
5:30 PM
@Simon donut code
d d d p p p d d d
 
s86 architecture
the registers are pls1, pls2, ...
 
CENTIPEDE
 
GET FOOD

IS DONUT? OMNOMNOM
IS NOT? PLS
 
You cannot get ye food
 
exit after pls
 
5:35 PM
jne pls1 pls2
and the award for the most incorrect assembly syntax goes to...
 
@Simon No, that's the benefit of donut code, you don't need to exit. It just roams around your CPU and eats donuts.
 
@DavidFreitag om
 
it provides a heuristic antivirus approach
by randomly overwriting the stack with donuts
 
@etherealflux And if the program does not consume the donut(s), it must be malicious.
Also, if it chokes and dies, it deserves it anyway.
 
@DavidFreitag It didn't need that %ebp anyways
 
5:46 PM
0
Q: Password Hashing SELECT (PHP)

Enrico MoiconeIs it possible to select a hashed and salted password from MySql DB only using the posted password? If so, how?

What's going on with the awful PHP questions?
 
raz
@Simon awful is generally implied with reference to PHP. No need to add it in there.
 
Knew it, I knew that someone would make that comnment.
 
Saying "terrible PHP" is like saying "delicious bacon"
 
@Simon Psychic @Simon :op
 
You guys make me want to become a PHP crypto pro to revolutionize the world.
'Cause you know, I'm already a pro at PHP.
 
5:49 PM
isn't the answer just "hash and salt the password, then do a SELECT WHERE" ?
 
Look: $strSQL = "SELECT * FROM TBL WHERE strPassword = '" . $_GET['tbPassword'] . "'";
I don't think this code can be ANY better.
 
yes it can
add emoji and unicode
$ヽ༼ຈل͜ຈ༽ノ = "SELECT * FROM TBL WHERE strPassword = '" . $_GET['tbPassword'] . "'";
 
@Simon Did you properly sanitize your inputs?
 
Gotta love $_GET parameters.... :P
 
@DavidFreitag We all know that PHP has a built-in function to sanitize anything that comes from POST and GET.
 
5:52 PM
@Simon We do?
 
hm, I see. Each user has a unique salt, so you can't just do one hast+salt operation and select from all users
 
It is also executed automatically!
 
I personally have never used PHP, so I wouldn't know.
 
#simonlivindadream
@DavidFreitag Oh no that was pure bullshit.
 
@etherealflux He did answer his own post.
 
5:53 PM
@Simon I was going to say, that sounded much too logical for PHP.
 
:p
 
@etherealflux What about the table flip one?
 
@Simon don't be ridiculous this is serious coding work
 
soz
 
5:55 PM
wait, you forgot to sanitize the input
try using an alcohol-based cleaner
 
@etherealflux Oh sorry: $strSQL = "SELECT * FROM TBL WHERE strPassword = '" . str_replace("'", "plsno", $_GET['tbPassword']) . "'";
 
excellent
 
no more SQLi that way huh?! :P
 
@Jeroen-ITNerdbox Tsk, no need this SQLinfection.
 
Remember RFC-3514? Just check the security bit.
 
5:59 PM
include_once("automaticaly_santize_everything.php");
include_once("no_more_session_fixation.php");
include_once("lies.php");
LOL
 
if (packet & SECURITY_BIT == 1) return "pls"
 
@Jeroen-ITNerdbox That last one should be include_once("cake.php");
 
@DavidFreitag can I get a pls here
 
@etherealflux No, I have run out of pls, all I have left is wat
 
6:01 PM
I think we should request an RFC for SQLi, then all we need to do is block the SQLi TCP/UDP port in our firewal's and we're goo! :P
 
@etherealflux And of course define("SECURITY_BIT", 0)
 
define("hackable",false)
 
@etherealflux Of course this is PHP, so it will treat SECURITY_BIT and packet as strings, and this will always return false.
 
define("sunglasses","worn")
 
6:02 PM
hehe
 
@DavidFreitag Nah, it'll try to interpret them as floating point booleans
somehow
 
@etherealflux Hahahaha, I spat out my drink
 
Which are then interpreted as strings anyways
and you can only compare them with the new ==== operator
or the floating_boolean_compareReal2() method
MSQL is great about that
you can use datetime
or datetime2
 
@Simon play.google.com/music/m/… "Empty Space"
Super chill.
> Unfortunately Inbox has stopped.
Yeah cause that's never happened before...
 
my phone's Bluetooth crashes whenever Spotify changes a song that I'm playing on my speakers
but the audio keeps going until I acknowledge the crash
good!
 
6:28 PM
@etherealflux sounds like your drivers don't approve of the music you're listening to
 
@TildalWave what's wrong with some Infected Mushroom
 
dunno, what's the crash message?
 
@etherealflux Absolutely nothing. Especially when it's Heavyweight.
 
@TildalWave "It stopped i dunno"
 
@etherealflux Must be an iPhone
@piratesbooty, New York
Ahoy matey! You’ve discovered a deliciously baked treasure, now get hooked! Pirate’s Booty snacks are free from fryers & ingredients you can’t pronounce. Arrr!!
3.7k tweets, 7.7k followers, following 659 users
Someone brought in a box of that stuff. I lol'd.
 
6:40 PM
"ingredients you can't pronounce" makes me twitch
sure, if you call sugar a mix of α-D-glucopyranose and 1,3,4,5,6-Pentahydroxy-2-hexanone, it's a mouthful
 
@etherealflux It doesn't actually say that on the bag. Everything on there is pronounceable.
TBH they weren't that good though.
 
but all the ingredients are all natural so it must be good, right?
 
"good" is in the tongue of the beholder.
WOOT, no more dinklebot. theverge.com/2015/8/4/9095863/…
 
@DavidFreitag I'll give it a go.
0
A: Password Hashing SELECT (PHP)

Sakamaki IzayoiI think you mean how to select a hashed and salted password from a database then verify it with a plaintext password? If so, here is how with bcrypt. Keep in mind, this requires PHP 5 >= 5.5.0. Also, I recommend scrypt over bcrypt, but you have to install scrypt manually. SQL stuff CREATE DA...

Now what the hell is that answer?
 
@Simon I can't seem to decipher it. It seems to be written in some archaic form of cave man language.
 
6:51 PM
"Also, I recommend scrypt over bcrypt, but you have to install scrypt manually."
WHY ON EARTH?
 
A motivation would be useful
 
Sigh.
 
raz
@Simon Why on earth what?
 
@raz What's wrong with bcrypt now?
 
@Simon It's much harder to attack scrypt with dedicated hardware. It eats large amounts of memory.
 
6:54 PM
@Simon Too old. Too common. Already implemented by frameworks, even by PHP.
 
@ThomasPornin Hahaha.
 
@etherealflux Whether this assertion holds in configurations meant for basic Web servers authenticating incoming users remains to be seen.
 
raz
@ThomasPornin Sounds like @Simon's mom
 
It does a space-time tradeoff by using large random strings, which can either be held in memory or generated every time they're needed
 
pls my mom isn't implemented by frameworks
 
6:55 PM
scrypt was initially designed to support password-based encryption of the hard disk of a computer.
 
@Simon I didn't say anything was wrong with bcrypt, I said "I recommend scrypt over bcrypt, but you have to install scrypt manually." — Sakamaki Izayoi 38 secs ago
WHY DO YOU RECOMMEND IT THEN?
37*TTTTTD?@³@ffsdfs3243234
 
Thus, scrypt normal parameters involve using lots of RAM (possibly hundreds of megabytes) and running for non-negligible time (say 5 seconds at full CPU).
On a Web server, you need it to complete much faster, and then it will use a lot less RAM.
To the point that it is unclear whether it will defeat attackers better than bcrypt does.
bcrypt and its 4 kB RAM is already quite good at making life hard for attackers with GPU
scrypt can claim to do "better" only on hardware that is already better at cracking bcrypt than normal PC
 
@ThomasPornin But what about an fpga with dedicated memory?
 
i.e. on FPGA
 
6:58 PM
plscrypt will do the trick
 
@DavidFreitag Unfortunately, we lack a good, consensual model of what an attacker can do with FPGA.
 
@etherealflux I gotta start working on that. I was thinking ROT13 could be its root but maybe I'm gonna be wild and do it with ROT26.
 
do a cyclic bit shift on the data
 
@ThomasPornin It would probably be easier to compile a list of what an attacker cannot do with an fpga.
 
A lot of research papers on the subject begin by assuming that attackers can get the same performance for their custom designs as Intel can with its CPU, for the same price -- which is rather unrealistic.
 
6:59 PM
1. land a date with @Simon 's donut
 
@Simon ROT13 is fine, but you need to apply it twice for maximum effect.
 
pls, it's my donut
 
There have been quite some discussion on the subject during the PHC.
 

« first day (1692 days earlier)      last day (3193 days later) »