apache / apache/maven-wrapper

[MWRAPPER-50] Verify checksum when downloading maven-wrapper.jar  

Open
#227 11 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
254
Forks
78
Avg merge
5h 26m
Merged PRs (30d)
2

Description

**[Premek Vyhnal](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=premek)** opened **[MWRAPPER-50](https://issues.apache.org/jira/browse/MWRAPPER-50?redirect=false)** and commented

Hi,

Sorry if I just cannot find it

but it seems the checksum is not checked of the `maven-wrapper.jar` downloaded here:

https://github.com/apache/maven-wrapper/blob/efba2bde13feeabfb42e9dc120e8a35c127baf0d/maven-wrapper-distribution/src/resources/mvnw#L207

 

Checksum of the downloaded file should be checked before executing it to avoid a remote code execution attack on the developer machine.

 

---

**Affects:** 3.1.0

**Issue Links:**
- [MWRAPPER-79](https://issues.apache.org/jira/browse/MWRAPPER-79) Automatically add sha256 to maven-wrapper.properties

- [MWRAPPER-75](https://issues.apache.org/jira/browse/MWRAPPER-75) Allow for sha256 checksum verification of downloaded artifacts.

1 votes, 6 watchers

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.