Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rack: 1.6.* -> 1.6.11, 2.0.* -> 2.0.6 (CVE-2018-16470, CVE-2018-16471) #49817

Merged
merged 13 commits into from Nov 9, 2018

Conversation

alyssais
Copy link
Member

@alyssais alyssais commented Nov 6, 2018

Motivation for changes
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@alyssais alyssais changed the title treewide: rack: 1.6.* -> 1.6.11, 2.0.* -> 2.0.6 (CVE-2018-16470, CVE-2018-16471) rack: 1.6.* -> 1.6.11, 2.0.* -> 2.0.6 (CVE-2018-16470, CVE-2018-16471) Nov 6, 2018
@Mic92
Copy link
Member

Mic92 commented Nov 6, 2018

Only metasploit seems to fail. export HOME=$TEMPDIR could fix this:

$ nix-shell -p metasploit
these derivations will be built:
  /nix/store/snz162malyad7vb7xym1bwfn8qlq6ww0-ruby2.5.3-metasploit-framework-4.16.1.drv
  /nix/store/90s2ykkfc7xyzfmndjs22s498yhg59wg-metasploit-bundler-env.drv
  /nix/store/prkcynr3qmmcbhxidkrh5k7spjgd86bz-metasploit-framework-4.16.1.drv
building '/nix/store/snz162malyad7vb7xym1bwfn8qlq6ww0-ruby2.5.3-metasploit-framework-4.16.1.drv'...
unpacking sources
unpacking source archive /nix/store/mn33xvzbs9m56h0pn1x7iq4cig6p53f7-metasploit-framework-dbec1c2
source root is metasploit-framework-dbec1c2
patching sources
configuring
fixing libtool script ./external/source/vncdll/winvnc/libjpeg/ltmain.sh
no configure script, doing nothing
building
installing
buildFlags:
/nix/store/r2vsi140pys7jnzyk0qz1fj9aji6sq40-ruby2.5.3-rb-readline-0.5.5/lib/ruby/gems/2.5.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point to a directory (RuntimeError)
        from /nix/store/r2vsi140pys7jnzyk0qz1fj9aji6sq40-ruby2.5.3-rb-readline-0.5.5/lib/ruby/gems/2.5.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:17:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/r2vsi140pys7jnzyk0qz1fj9aji6sq40-ruby2.5.3-rb-readline-0.5.5/lib/ruby/gems/2.5.0/gems/rb-readline-0.5.5/lib/readline.rb:10:in `<module:Readline>'
        from /nix/store/r2vsi140pys7jnzyk0qz1fj9aji6sq40-ruby2.5.3-rb-readline-0.5.5/lib/ruby/gems/2.5.0/gems/rb-readline-0.5.5/lib/readline.rb:8:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb:2:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/line_editor.rb:2:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor/base.rb:8:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendor/thor/lib/thor.rb:2:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendored_thor.rb:8:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/6g99037s460cbv2drh4l7hrny09lc19q-nix-bundle-install.rb:2:in `<main>'
builder for '/nix/store/snz162malyad7vb7xym1bwfn8qlq6ww0-ruby2.5.3-metasploit-framework-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/90s2ykkfc7xyzfmndjs22s498yhg59wg-metasploit-bundler-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/prkcynr3qmmcbhxidkrh5k7spjgd86bz-metasploit-framework-4.16.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/prkcynr3qmmcbhxidkrh5k7spjgd86bz-metasploit-framework-4.16.1.drv' failed

@alyssais
Copy link
Member Author

alyssais commented Nov 6, 2018

Looks like metasploit has some special instructions for upgrading in a comment. I’ll see if following those fixes the problem.

@Mic92
Copy link
Member

Mic92 commented Nov 6, 2018

I wrote these instructions. They are useful to upgrade metasploit, but I don't think they would resolve the build error on their own because the HOME variable would be still not set during the build.

@alyssais
Copy link
Member Author

alyssais commented Nov 6, 2018 via email

@c0bw3b
Copy link
Contributor

c0bw3b commented Nov 9, 2018

@GrahamcOfBorg build metasploit

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: metasploit

Partial log (click to expand)

        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendored_thor.rb:8:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/6g99037s460cbv2drh4l7hrny09lc19q-nix-bundle-install.rb:2:in `<main>'
builder for '/nix/store/snz162malyad7vb7xym1bwfn8qlq6ww0-ruby2.5.3-metasploit-framework-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/90s2ykkfc7xyzfmndjs22s498yhg59wg-metasploit-bundler-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/1any1slg3khjfcqkryfr8l2j3if8gssm-metasploit-framework-4.16.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/1any1slg3khjfcqkryfr8l2j3if8gssm-metasploit-framework-4.16.1.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: metasploit

Partial log (click to expand)

        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2f7gq9vdps2yha7fs1l3ppa99bk20bzq-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendored_thor.rb:8:in `<top (required)>'
        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/6g99037s460cbv2drh4l7hrny09lc19q-nix-bundle-install.rb:2:in `<main>'
builder for '/nix/store/qhinmjkf4zhyqpq4ffc2s2rqpbfn5wk9-ruby2.5.3-metasploit-framework-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/zqbnlbpi1ghyy7124l6v5g5yqp952jid-metasploit-bundler-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/q54ynyim19fcsyx8nxqfxhz6pg3b1c7c-metasploit-framework-4.16.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/q54ynyim19fcsyx8nxqfxhz6pg3b1c7c-metasploit-framework-4.16.1.drv' failed

@@ -26,6 +26,10 @@ in stdenv.mkDerivation rec {
sha256 = "1vilyy0dqzp8kbbpvs2zrv2ac7s39w2vv7mrbzgcjgh2bj7c6bg1";
};

preBuild = ''
export HOME=$TEMPDIR
'';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually needs to be applied in gem-config since it is affecting not metasploit but the rb-readline gem.

diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index b5aa0933c2e..5d6cc04c44c 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -371,6 +371,9 @@ in
     postPatch = ''
       substituteInPlace lib/rbreadline.rb \
         --replace 'infocmp' '${ncurses.dev}/bin/infocmp'
+
+      # wants that at build time
+      export HOME=$TEMPDIR
     '';
   };
```diff

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With change I was able to build metasploit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's getting to /nix/store/qhinmjkf4zhyqpq4ffc2s2rqpbfn5wk9-ruby2.5.3-metasploit-framework-4.16.1.drv, shouldn't that mean it's already built rb-readline?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say yes. I am not sure how this behaves on non-linux machines.
All I can say is that with the change above I can build it but not without.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Darwin your fix doesn't seem to solve the problem, but also neither does mine… I'll try pushing your fix, but then if you could get OfBorg to do a Darwin rebuild (I assume you have perms), that'd be great.

@Mic92
Copy link
Member

Mic92 commented Nov 9, 2018

@GrahamcOfBorg build metasploit

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: metasploit

Partial log (click to expand)

        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2s7rza6v04r2zwifxb6r5n47kqw7hig4-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendored_thor.rb:8:in `<top (required)>'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/imzyjwl9yv28h02zwsjpdsb2va7s8rqk-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/6g99037s460cbv2drh4l7hrny09lc19q-nix-bundle-install.rb:2:in `<main>'
builder for '/nix/store/s9hlgm2iqh4819v91n59c587399fvvlr-ruby2.5.3-metasploit-framework-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/lslxwgbwfr6vk2k9ghszs5j72056qrkd-metasploit-bundler-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/p46ls272c0g8xcwfcwfsqkj0j71hahmy-metasploit-framework-4.16.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/p46ls272c0g8xcwfcwfsqkj0j71hahmy-metasploit-framework-4.16.1.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: metasploit

Partial log (click to expand)

        from /nix/store/7q6hflyldr1yay11rl3hqb7yl42242s7-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/7q6hflyldr1yay11rl3hqb7yl42242s7-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/5g8di5ch5vw05fgg3xvn9mni52vz39lr-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendored_thor.rb:8:in `<top (required)>'
        from /nix/store/7q6hflyldr1yay11rl3hqb7yl42242s7-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/7q6hflyldr1yay11rl3hqb7yl42242s7-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/6g99037s460cbv2drh4l7hrny09lc19q-nix-bundle-install.rb:2:in `<main>'
builder for '/nix/store/hma4j396x9lm5pnvp5xkd435a8blwy9v-ruby2.5.3-metasploit-framework-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/w9dbpz81l60hqsdvk1vx6rpvdm2bxxxq-metasploit-bundler-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/84najw603rjbyrcg2ii8vbyx9hs5avsg-metasploit-framework-4.16.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/84najw603rjbyrcg2ii8vbyx9hs5avsg-metasploit-framework-4.16.1.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: metasploit

Partial log (click to expand)

        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/2f7gq9vdps2yha7fs1l3ppa99bk20bzq-bundler-1.16.4/lib/ruby/gems/2.5.0/gems/bundler-1.16.4/lib/bundler/vendored_thor.rb:8:in `<top (required)>'
        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/51sgjlq650kkxs7iz2wcz33lx74awn57-ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
        from /nix/store/6g99037s460cbv2drh4l7hrny09lc19q-nix-bundle-install.rb:2:in `<main>'
builder for '/nix/store/ysqqzqc1dgf5h7crk8gs5qwjprld81yj-ruby2.5.3-metasploit-framework-4.16.1.drv' failed with exit code 1
cannot build derivation '/nix/store/27fsj87kzg80dl7qh9rpfvhzfzx3492w-metasploit-bundler-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/v2h67hgqkxjd0zgfydqx57p49nla4rx9-metasploit-framework-4.16.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/v2h67hgqkxjd0zgfydqx57p49nla4rx9-metasploit-framework-4.16.1.drv' failed

@@ -371,6 +371,8 @@ in
postPatch = ''
substituteInPlace lib/rbreadline.rb \
--replace 'infocmp' '${ncurses.dev}/bin/infocmp'

export HOME=$TEMPDIR
Copy link
Member

@Mic92 Mic92 Nov 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mhm, no idea what I tested actually, maybe your patch even work before?

Nevertheless, the following does now work. It is a bit more general
since it will also work if something else is using metasploit-framework in its dependency closure.

diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index dc8643adec8..e7d1156acff 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -226,6 +226,12 @@ in
     '';
   };

+  metasploit-framework = attrs: {
+    preInstall = ''
+      export HOME=$TMPDIR
+    '';
+  };
+
   msgpack = attrs: {
     buildInputs = [ msgpack ];
   };
@@ -371,8 +377,6 @@ in
     postPatch = ''
       substituteInPlace lib/rbreadline.rb \
         --replace 'infocmp' '${ncurses.dev}/bin/infocmp'
-
-      export HOME=$TEMPDIR
     '';
   };

proof:

$ msfconsole
/nix/store/faki24ajn5xawxxlpb7yz79cz3aflwy0-ruby2.5.3-rbnacl-4.0.2/lib/ruby/gems/2.5.0/gems/rbnacl-4.0.2/lib/rbnacl.rb:3: warning: already initialized constant RBNACL_LIBSODIUM_GEM_LIB_PATH
/nix/store/k0am0cicdcb4bg25ird59xjvkhf8s3is-ruby2.5.3-rbnacl-libsodium-1.0.13/lib/ruby/gems/2.5.0/gems/rbnacl-libsodium-1.0.13/lib/rbnacl/libsodium.rb:13: warning: previous definition of RBNACL_LIBSODIUM_GEM_LIB_PATH was here

  +-------------------------------------------------------+
  |  METASPLOIT by Rapid7                                 |
  +---------------------------+---------------------------+
  |      __________________   |                           |
  |  ==c(______(o(______(_()  | |""""""""""""|======[***  |
  |             )=\           | |  EXPLOIT   \            |
  |            // \\          | |_____________\_______    |
  |           //   \\         | |==[msf >]============\   |
  |          //     \\        | |______________________\  |
  |         // RECON \\       | \(@)(@)(@)(@)(@)(@)(@)/   |
  |        //         \\      |  *********************    |
  +---------------------------+---------------------------+
  |      o O o                |        \'\/\/\/'/         |
  |              o O          |         )======(          |
  |                 o         |       .'  LOOT  '.        |
  | |^^^^^^^^^^^^^^|l___      |      /    _||__   \       |
  | |    PAYLOAD     |""\___, |     /    (_||_     \      |
  | |________________|__|)__| |    |     __||_)     |     |
  | |(@)(@)"""**|(@)(@)**|(@) |    "       ||       "     |
  |  = = = = = = = = = = = =  |     '--------------'      |
  +---------------------------+---------------------------+


       =[ metasploit v4.16.1-dev                          ]
+ -- --=[ 1678 exploits - 961 auxiliary - 296 post        ]
+ -- --=[ 495 payloads - 40 encoders - 9 nops             ]
+ -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

msf >

> /nix/store/r2vsi140pys7jnzyk0qz1fj9aji6sq40-ruby2.5.3-rb-readline-0.5.5/lib/ruby/gems/2.5.0/gems/rb-readline-0.5.5/lib/rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point to a directory (RuntimeError)
@alyssais
Copy link
Member Author

alyssais commented Nov 9, 2018

@GrahamcOfBorg build metasploit

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: metasploit

Partial log (click to expand)

patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
cannot find section .dynamic
cannot link '/nix/store/.links/1csmdzbm9x3c5brzs64bf2gia4njy2rn7ccz282f20vf12ws440b' to '/nix/store/9vg1qvh7bdsxq8h2n54nx882b5j94dzp-metasploit-framework-4.16.1/share/msf/external/source/ipwn/cmd_proc.c': No space left on device
/nix/store/9vg1qvh7bdsxq8h2n54nx882b5j94dzp-metasploit-framework-4.16.1

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: metasploit

Partial log (click to expand)

patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
cannot find section .dynamic
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf32_Ehdr; Elf_Phdr = Elf32_Phdr; Elf_Shdr = Elf32_Shdr; Elf_Addr = unsigned int; Elf_Off = unsigned int; Elf_Dyn = Elf32_Dyn; Elf_Sym = Elf32_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
cannot find section .dynamic
cannot find section .dynamic
/nix/store/9y05y2y9xpqhg36qkx64xb8ha3yg9car-metasploit-framework-4.16.1

@Mic92 Mic92 merged commit 2f97911 into NixOS:master Nov 9, 2018
@alyssais alyssais deleted the rack_cve branch November 22, 2018 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants