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

transmission: fix RCE via dns rebinding attach #33873

Merged
merged 1 commit into from Jan 14, 2018

Conversation

andir
Copy link
Member

@andir andir commented Jan 14, 2018

Motivation for this change

For further details see [1] & [2].

[1] transmission/transmission#468
[2] http://www.openwall.com/lists/oss-security/2018/01/12/1

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-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/)
  • Fits CONTRIBUTING.md.

@andir
Copy link
Member Author

andir commented Jan 14, 2018

@GrahamcOfBorg test bittorrent

@andir
Copy link
Member Author

andir commented Jan 14, 2018

@GrahamcOfBorg build transmission

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-linux

shrinking /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92/bin/transmission-daemon
shrinking /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92/bin/transmission-cli
shrinking /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92/bin/transmission-show
shrinking /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92/bin/transmission-remote
gzipping man pages under /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92/share/man/
strip is /nix/store/wxn5gn8amxm1w0ikcx4gbs8a17wvss4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92/bin 
patching script interpreter paths in /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92
checking for references to /tmp/nix-build-transmission-2.92.drv-0 in /nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92...
/nix/store/zzv6q1vjrysg0kznm2qyh67q5sfni2sb-transmission-2.92

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Failure for system: x86_64-linux

killing client2 (pid 594)
killing router (pid 604)
killing client1 (pid 616)
killing tracker (pid 626)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/tmp/nix-build-vm-test-run-bittorrent.drv-0/vde1.ctl': Directory not empty
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/tmp/nix-build-vm-test-run-bittorrent.drv-0/vde2.ctl': Directory not empty
builder for ‘/nix/store/ynms0fwcpq7c0b3grky7x1pcxmcmls8z-vm-test-run-bittorrent.drv’ failed with exit code 255
error: build of ‘/nix/store/ynms0fwcpq7c0b3grky7x1pcxmcmls8z-vm-test-run-bittorrent.drv’ failed

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: x86_64-darwin

make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/private/tmp/nix-build-transmission-2.92.drv-0/transmission-2.92'
make[1]: Leaving directory '/private/tmp/nix-build-transmission-2.92.drv-0/transmission-2.92'
post-installation fixup
gzipping man pages under /nix/store/rwbvp8rxgmzhr1m589j0b8jwky4sy5pg-transmission-2.92/share/man/
strip is /nix/store/bhfkh37smh9lc5bngdha6zx98k6w6cgd-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/rwbvp8rxgmzhr1m589j0b8jwky4sy5pg-transmission-2.92/bin
patching script interpreter paths in /nix/store/rwbvp8rxgmzhr1m589j0b8jwky4sy5pg-transmission-2.92
/nix/store/rwbvp8rxgmzhr1m589j0b8jwky4sy5pg-transmission-2.92

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

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

Success for system: aarch64-linux

shrinking /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92/bin/transmission-daemon
shrinking /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92/bin/transmission-show
shrinking /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92/bin/transmission-edit
shrinking /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92/bin/transmission-create
gzipping man pages under /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92/share/man/
strip is /nix/store/c6qj0j45xizkrx58i65j75a5ysmqhgrs-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92/bin
patching script interpreter paths in /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92
checking for references to /build in /nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92...
/nix/store/q12jdqjlf9hmwkafw1h3vyrnw0z8bs6s-transmission-2.92

@andir andir merged commit 87947ca into NixOS:master Jan 14, 2018
@andir andir deleted the transmission-dns-rebinding-rce branch January 14, 2018 23:54
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

2 participants