Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Maven Wrapper is downloading binary artifacts that are later executed. To prevent from an attack where a vulnerable repository could distribute malicious Maven (wrapper) artifacts, the downloaded artifacts should be verified against a secure checksum. If the expected checksum does not match, execution could be aborted before the potentially compromised artifact is executed.
In my PR, i chose SHA-256 as it is cheaper to compute than SHA-512 but still impossible to replicate with a corrupted binary.
Attachments
Issue Links
- relates to
-
MWRAPPER-50 Verify checksum when downloading maven-wrapper.jar
- Open
-
MWRAPPER-79 Automatically add sha256 to maven-wrapper.properties
- Open
- links to