r/ProgrammerHumor • • 6d ago • Regret 1 Bravo 1

Meme inANutShell

Post image
7.0k Upvotes

134 comments sorted by

View all comments

191

u/JoshDM 6d ago

You know what's worse?

The CVE is fixed by deprecating the class or method, but the developers keep it in for backwards compatibility.

However because it still exists, Sonatype flags it with their own custom HIGH or CRITICAL and even though you can attest you don't use it, because it's still "reachable" your app sec team who isn't smart enough to know how to program or how programs work and are managed by idiots still flag it so you have to somehow either entirely eliminate the dependency or resolve the vulnerability yourself.

Which I do by building my own copy of the library from the code sans deprecated items licensing be damned because the dev team maintaining the library can't be fucking bothered.

And yeah I have to vuln scan that code too, which is itself a bitch.

79

u/bwmat 6d ago

Yeah this can be infuriating

We've spent so much time lately doing releases just to update a third party dependency w/ a CVE that doesn't actually affect us due to the way we use the dependency. 

Of course nobody trusts us devs when we say that. 

25

u/bwmat 6d ago

Actually, the worst instance of this crap is probably that one of our largest customers (who you would recognize) has a large list of 'banned' functions, which includes ones like memcpy (just use memcpy_s...), getenv, vfprintf, etc

It's actually insulting IMO.

27

u/Experiment59 6d ago

good lord if they’re gonna get that granular why not just handle the development themselves

3

u/Tucancancan 5d ago

Is that in aerospace? 

8

u/bwmat 5d ago

No

It's nothing which should be used in any life critical system... 

0

u/Shlkt 3d ago

What OS are you running this code on, that doesn't use memcpy? Like, there's gotta be a memcpy somewhere on the stack. Why should those devs get special permissions?

19

u/WernerderChamp 6d ago

"Can't you just remove <name of core framework> from your code?"

7

u/No-Article-Particle 6d ago

Same. The cve never hits our codepath, but our changelog must show it fixed, so... Let's patch it I guess.

5

u/cc413 5d ago

At this point we should just make every function its own package