Skip to content

Conversation

@h4x3rotab
Copy link

@h4x3rotab h4x3rotab commented Jul 12, 2018

Early version of NSIS searches its DLL from the same directory of the executable. If a hacker can place some DLL files in the same directory of the bitcoin installer, the installer will load and run it with admin permission.

Gitian is still in trusty. It shipped with NSIS 2.46, which is vulnerable to this issue. So in this fix, we instead build the latest NSIS by Gitian.

Thanks to @wilsonmeier from Bitcoin Gold team for the fix. Borrowed some code from TOR project.

Details: https://trac.torproject.org/projects/tor/ticket/17895

@laanwj
Copy link
Member

laanwj commented Jul 12, 2018

Thanks,
The idea was to switch to Ubuntu 18.04 for building to avoid having to do this, as that ships with a newer NSIS package, but if that turns out not to be feasible before the next release this will be helpful!

Early version of NSIS searches its DLL from the same directory of
the executable. If a hacker can place some DLL files in the same
directory of the bitcoin installer, the installer will load and
run it with admin permission.

Gitian is still in trusty. It shipped with NSIS 2.46, which is
vulnerable to this issue. So in this fix, we instead build the
latest NSIS by Gitian.

Thanks to @wilson from Bitcoin Gold team for the fix. Borrowed some
code from TOR project.

Details: https://trac.torproject.org/projects/tor/ticket/17895
@maflcko
Copy link
Member

maflcko commented Jul 12, 2018

if that turns out not to be feasible before the next release this will be helpful!

Currently our Windows gitian cross builds are broken, so we'd have to switch to bionic. (Or revert the qt depends bump)

@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 12, 2018

Note to reviewers: This pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@ken2812221
Copy link
Contributor

This has been fixed in nsis 2.50, and nsis in ubuntu bionic is version 2.51.

@h4x3rotab
Copy link
Author

h4x3rotab commented Jul 12, 2018

This has been fixed in nsis 2.50, and nsis in ubuntu bionic is version 2.51.

Yeah, bionic could be even better.

@theuni
Copy link
Member

theuni commented Jul 12, 2018

Holding out on reviewing this until after #13171 is merged or closed.

@ghost
Copy link

ghost commented Jul 14, 2018

Bitcoin Gold developer contributing for Bitcoin Core, nice 👍

@maflcko
Copy link
Member

maflcko commented Jul 16, 2018

Closing per #13643 (comment)

@maflcko maflcko closed this Jul 16, 2018
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants