logoalt Hacker News

Critical flaw in Protobuf library enables JavaScript code execution

22 pointsby Brajeshwartoday at 4:37 PM11 commentsview on HN

Comments

gnabgibtoday at 5:31 PM

Lots more details from Endor labs (flaw finder & source): https://www.endorlabs.com/learn/the-dangers-of-reusing-proto...

skybriantoday at 5:00 PM

How does the attacker supply a malicious schema? Can that be turned off? It doesn't seem like a normal thing to do.

show 2 replies
lioeterstoday at 5:32 PM

> the library builds JavaScript functions from protobuf schemas by concatenating strings and executing them via the Function() constructor, but it fails to validate schema-derived identifiers, such as message names.

Typical "eval is evil" issue.

rvztoday at 4:40 PM

Both "Javascript" and "Typescript" are incredibly flawed languages and the entire npm ecosystem is the bane of the software security industry.

show 2 replies