Property-Based Testing Caught a Security Bug I Never Would Have Found
Posted by nslog 1 day ago
Comments
Comment by philipwhiuk 21 hours ago
Do we?
Comment by bluGill 17 hours ago
Comment by Cpoll 15 hours ago
Comment by bluGill 13 hours ago
Comment by RGamma 21 hours ago
So it's pretty safe to say some (many?) attribute inappropriate credence to LLM outputs. It's eating our minds.
Comment by sevensor 19 hours ago
Comment by bpt3 18 hours ago
Comment by mhitza 23 hours ago
What I've found surprising is that the __proto__ string is a fixed set from the strings sampling set. Whereas I'd have expected the function to return random strings in the range given.
But maybe that's my biased expectation being introduced to property-based testing with random values. It also feels like a stretch to call this a property-based test, because what is the property "setters and getters that work"? Cause I expect that from all my classes.
Comment by arnsholt 20 hours ago
Comment by Piraty 18 hours ago
Comment by nslog 14 hours ago
Comment by koakuma-chan 17 hours ago
Comment by kittoes 17 hours ago
Comment by hansvm 17 hours ago
Comment by cogman10 16 hours ago
Comment by mananaysiempre 12 hours ago
Comment by koakuma-chan 17 hours ago
Comment by regular_trash 17 hours ago
Comment by koakuma-chan 17 hours ago
Comment by wredcoll 16 hours ago
Comment by koakuma-chan 16 hours ago
Comment by yakshaving_jgt 7 hours ago
Comment by koakuma-chan 3 hours ago
Comment by yakshaving_jgt 1 hour ago
Comment by sublinear 23 hours ago
So what? This line of what-if reasoning is so annoying especially when it's analysis for a language like javascript. There's no vulnerability found here and most web developers are well aware of the risky parts of the language. This is almost as bad as all the insane false positives SAST scans dump on you.
Oh I'm just waiting to get dogpiled by people who want to tell me web devs are dumber than them and couldn't possibly be competent at anything.
Comment by oncallthrow 20 hours ago
In my experience this really isn’t true. Most web developers I know are not familiar (enough) with prototype pollution.
By the way, this isn’t because they are “dumb”. It’s the tool’s fault, not the craftsman’s, in this case. Prototype pollution is complicated and surprising
Comment by yakshaving_jgt 21 hours ago
I don't think this is true, and I think that's supported by the success of JavaScript: The Good Parts.
It would be unfair to characterise a lack of comprehensive knowledge of JavaScript foot-guns as general incompetence.
Comment by jgalt212 19 hours ago
Great LLM use case: Please explain to the box ticking person why these "insane false positives SAST" are false and / or of no consequence.
Comment by mananaysiempre 1 day ago
Comment by fireflash38 21 hours ago
Comment by mirthturtle 20 hours ago
Comment by toobulkeh 13 hours ago
My take away is “don’t write your own input tests, use a library”. The rest is AI-slip
Comment by mananaysiempre 13 hours ago
[1] https://www.exploringbinary.com/php-hangs-on-numeric-value-2...
[2] https://www.exploringbinary.com/java-hangs-when-converting-2...
Comment by nslog 17 hours ago
Comment by mananaysiempre 13 hours ago