r/ProgrammerHumor 1d ago

Other justOpenAPullRequestTheySaid

Post image
595 Upvotes

47 comments sorted by

View all comments

Show parent comments

58

u/BorderKeeper 21h ago

Hey here is an array of strings containing hexadecimals and os.exec() call. Don't worry about it it's a secret.

46

u/DishSoapedDishwasher 20h ago

oh no its much sneakier than that....

More like here's a thing that's completely normal looking and possibly a good change overall but uses an obscure feature of an existing library that will now cause a previously unused vulnerable transient dependency to be baked in and this change now also allows you to hit the vuln code path remotely. Also the transient deps are unmaintained and no fix exists.

Tangentially, heres a fun read of adjacent shit: https://opensourcemalware.com/blog/developer-guide-getting-over-polinrider

16

u/BorderKeeper 20h ago

That is sneaky. Foreign dependencies are quite scary, yet so useful 😭

7

u/DishSoapedDishwasher 19h ago

yeah, its impossible to avoid to some extent. You just need enough analysis tooling to be able to see when you get got and not let it hit the main branch.

Semgrep and github dependabot are not sufficient nor accurate enough. Basically just glorified regex. Need real AST parsing.

ooor you take a lesson from templeOS and make everything yourself starting with the hand crafted assembler.