So unless you view the source, you're not going to see that the URL the download is coming from. So I could MITM the page and give you an entirely different page that links to my file and looks authoritative and even give you a share hash that matches what I'll serve from the link and embed some arbitrary code in the package that you installed while still giving you what looks to be the JDK. I'll then have a wonderful time sitting on your system stealing your intellectual property or further spreading a virus through whatever software you build with that jdk.
0
u/mattgen88 Sep 27 '18
So unless you view the source, you're not going to see that the URL the download is coming from. So I could MITM the page and give you an entirely different page that links to my file and looks authoritative and even give you a share hash that matches what I'll serve from the link and embed some arbitrary code in the package that you installed while still giving you what looks to be the JDK. I'll then have a wonderful time sitting on your system stealing your intellectual property or further spreading a virus through whatever software you build with that jdk.
This is how you get viruses.