231 points · by mistrial9 · 3y ago · 73 comments
I can't help but imagine something like this is where we're headed, given how counterproductive it can be to make decisions based on CVSS scores...
So of course there is now huge motivation to get these CVE things, inflate them, never under-grade them, just in case ... so of course CVEs are becoming more noisy and useless, and many orgs (including my company) are now moving to EPSS. Just give it a few years though, this EPSS will probably degrade just like CVE as it becomes widely embedded in enterprise security processes.
There’s a lot of noise to wade through, but we occasionally get good, valid reports. We pay those a reward and fix the issues.
Our understanding is many of these reports come from people who landing a single bounty is equivalent to a month of income.
They are annoying though. I'm pretty sure 90% of the value proposition of hackerone is dealing with these people.
Is it "spam" in the sense of Nigerian princes and penis enlargements? No. Is it "spam" in the sense that it's the same useless crap being repeated ad nauseam? Absolutely.
Isn't that extortion? I wonder if India has laws that you can point to to make them go away.
For the few that we have engaged in back and forth conversation, they typically were just reporting warnings from various opensource website scanners, without completely understanding what they were talking about.
That's not to say somebody might discover a new unique vulnerability in the open source software and packages you might be using, except you wouldn't expect them to report it to your company, as some random user on the Internet, when the official projects are on github.
Alternatively if they reported a very specific issue regarding software you developed, I'm sure it would get your 100% attention. That's not been my experience so far (knock on wood).
https://ubuntu.com/security/CVE-2020-19909
but in the original site it's still critical https://cve.report/CVE-2020-19909
Hard to imagine how that could lead to any security compromise, the seemingly randomly assigned criticality is certainly unpleasant. Could it be that it was detected by "automated source code" and "website vulnerability" reports, when the tools very often assign HIGH, CRITICAL to random issues that aren't the problems
Integer overflows as a vulnerability class are often very bad, but usually when they're describing an attacker-controlled memory allocation size (which the attacker's buffer will then go on to overflow, often to byte-specific length accuracy). Sounds like the reviewer here could have been someone primed to think that "integer overflow" meant "integer overflow controlling a memory allocation", which doesn't seem to be the case here at all.
But even with the best people, mistakes do happen; sometimes as banal as clicking the wrong button or mixing up two tabs.
Source: Found a handfull of RCEs for popular PHP projects, some of which have CVEs.
"the story of AI being managed by a "human in the loop" is a fantasy, because humans are neurologically incapable of maintaining vigilance in watching for rare occurrences."
https://pluralistic.net/2023/08/23/automation-blindness/#hum...
Such prompts might be completely AI generated, or just flip the AI decision under review.
This seems like exactly the sort of mistake it would make, but that a human with even a little domain knowledge would not make.
https://github.com/curl/curl/pull/4166/commits/a42a763ebde64...
It seems the code is using a signed long.
Unfortunately, in C, signed overflow is undefined behavior. Anything can happen, and you should not assume that it is just benign behavior like wraparound. Undefined behavior, in a seemingly unrelated area, can result in a security issue somewhere else in the program thanks to how C deals with undefined behavior.
While I don’t think it is as severe as the CVE indicated, something that triggers undefined behavior in C is not to be dismissed as lightly as the article is doing.
In the case of LLVM for example signed integer overflows will merely produce a poison value, and won't produce the actual UB if it is either optimized out or only used by instructions that can't produce UBs by themselves [1].
Compilers also tend to use the UB as an excuse to optimize things, not to break things. We only care about the UB because a faulty optimization still can cause breakages. In this particular case the poison value will eventually reach the following condition [2]:
/* if retry-max-time is non-zero, make sure we haven't exceeded the
time */
if(per->retry_numretries &&
(!config->retry_maxtime ||
(tvdiff(tvnow(), per->retrystart) <
config->retry_maxtime*1000L)) ) {
So let's assume that `config->retry_maxtime * 1000L` was indeed always a poison value---what can reasonable optimizing compilers do? At worst they will probably evaluate the entire condition as false, because it would help the dead code elimination. Compilers can put a nasal demon in that case, but reasonable ones wouldn't. And since `config->retry_maxtime * 1000L` is not guaranteed to be a poison value all the time, this optimization is not even actually possible. The practical effect of this security bug is quite limited.[1] https://llvm.org/docs/LangRef.html#poison-values
[2] https://github.com/curl/curl/blob/c2212c05aa99bb31e4b99b0b66... (similar for `config->retry_delay`, omitted for brevity here)
You are probably correct (although it's hard to say for sure that you've considered every single compiler optimization).
But even if you are correct, the point of the parent poster still stands:
> something that triggers undefined behavior in C is not to be dismissed as lightly as the article is doing.
I agree with this.
Notice how long your explanation was. The author of the article did not provide a similar explanation, or even an abbreviated one, in order to justify the claims that the bug does not have security implications. In fact, the author didn't even have to provide such an explanation, but he could have at least acknowledged the possibility, which could then be argued to be dismissable based on his (extensive) experience.
I'm not saying that there are security implications or that the burden of proving that there aren't any is on the author of the article.
I'm only agreeing with the parent poster that you cannot easily or simply claim that the bug is not a security vulnerability, without giving some consideration to the possible impact of UB, or at least acknowledging the possibility.
Not acknowledging this possible impact can in fact reinforce misconceptions about the security implications of bugs in C code that lead to UB.
Curl already runs ubsan and fuzzer in its testing process [1]. They know what they are doing (you may disagree on the first principles of writing curl in C/C++, but it's not like that curl is not sufficiently aware of UBs), so you should have asked instead why this particular bug was not caught already.
I believe the answer is that this bug occurred in the curl's CLI interface (src/tool_*.c), not in libcurl. The current fuzzer only runs against libcurl so this bug could have slipped in. But then it is even more clear that this bug can't be that serious, because libcurl does all the heavy lifting! Integer overflows themselves are not significant, they have to be paired with other mechanisms to be actually vulnerable (and Rust also agrees, whether overflow checks are enabled or not does not affect the memory safety).
Unless reporters have figured out an ingenious way to exploit a single integer overflow, the OP's reaction is completely justified.
[1] https://daniel.haxx.se/blog/2021/12/13/keeping-curl-safe/
In practice the likelihood of someone passing that value is rather low.
I'm aware there are cases of overzealous compilers removing conditional code based on the incorrect assumption that overflows can never happen, but this doesn't seem to be the case here.
It’s somehow simultaneously possible for it to be both possible for a vendor to block valid CVE assignments, and for people to make up bullshit ones like this.
<https://news.ycombinator.com/item?id=36526450>
Email corrections to mods at hn@ycombinator.com.
(I've done so in this case.)
What I'd prefer is that people note the problem, email mods, and note that they've done so. Which is my standard practice.
Can you elaborate on/contextualize this?
Of course the right answer is to just keep upgrading our dependencies... so our build machine doesn't fall into an infinite loop when a hacker rewrites our build scripts?
bunch of scanners (scammers too), checkers, brainless check lists instead of pure code analysis.
Sure, it is way easier to run some scanners.exe instead of deep dive into code base, understand it and find actual problems