Skip to content

v4.0.7

Latest

Choose a tag to compare

@prabhu prabhu released this 02 Dec 08:08
24630e1

This release fixes a hang and a crash on Java sources, a runaway copy in the parse cache, the naming of CommonJS default exports, and extends the crypto tags to every language.

A StackOverflowError on a deeply nested Java expression, or a LinkageError from a missing reflection field in a native image, no longer stops the run. javasrc2cpg records the file as unparsed with the error's class and message and keeps parsing the rest of the project. chen now builds against cpg2 3.1.3, whose passes fail instead of waiting forever when a worker hits a fatal error (AppThreat/atom#436).

ExternalParseCache no longer stores or restores an output directory that holds the cache directory, which previously copied the cache entry into itself until the path grew too long (#354).

A direct CommonJS require of a package called as a function, such as express(), now resolves to express:default, and types named through a declaration-only package such as express-serve-static-core are remapped to the runtime package (#359).

The crypto-algorithm and crypto-generate tags now cover Java (java.security, javax.crypto, BouncyCastle), Python (cryptography, PyCryptodome, hashlib, hmac, secrets, JWT and password libraries), PHP, Ruby, C and C++, and JavaScript and TypeScript (#355). Java literals match only algorithm names as the JCA spells them, so words such as "idea" are no longer tagged. Ruby cipher.encrypt and decrypt are tagged as crypto calls rather than sinks, PyCryptodome AES.new and friends are algorithm sources, a node receives each tag once, and the Ruby, JavaScript, C and PHP taggers check a cheap prefix before running their patterns.

Thanks

Thanks to August Johansson (@webdevred) for reporting #354, and to @almaz045 for the root-cause analysis in AppThreat/atom#436.

Full Changelog: v4.0.6...v4.0.7