Repository navigation
Upgrade your JDK to Prevent Mill Accepting Invalid eMudhra certificates #7833
gamlerhart
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Java/JDK also accepted the broken certificates from eMudhra, see https://emudhra.we-have-a-problem.com/.
Mill downloads dependencies from the internet, so its also exposed to these invalid certificates. So, if an attacker can insert themself between your CI/Machine running Mill and a Maven repo, they can provide a eMudhra signed HTTPS certificate and Mill will accept it.
Note, the still need to do the Man-in-The-Middle attack, eg. by doing some DNS poisoning, but it gets more easy.
To check if Mill is vulnerable, add a temporary task, like:
and run it:
To prevent this, you've to update the JDK, for example:
Now it should fail:
Note: The Mill boots trap will rely on curl, which most likely needs to be updated via your OS/package manager.
All reactions