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

Do not attempt to populate the libraries used by statically-linked binaries #1043

Merged

Conversation

@zachriggle
Copy link
Contributor

zachriggle commented Sep 27, 2017

This causes a background instance to be spawned, which is not intended.

@zachriggle zachriggle added the bug label Sep 27, 2017
@zachriggle zachriggle added this to the 3.9.0 milestone Sep 27, 2017
@zachriggle zachriggle self-assigned this Sep 27, 2017
@zachriggle zachriggle force-pushed the zachriggle:statically-linked-populate-libraries branch from 9ffef8e to df62ccf Sep 27, 2017
…naries

This causes a background instance to be spawned, which is not intended.
@zachriggle zachriggle force-pushed the zachriggle:statically-linked-populate-libraries branch from df62ccf to a535bec Sep 27, 2017
@zachriggle zachriggle merged commit b234b31 into Gallopsled:stable Sep 29, 2017
1 of 2 checks passed
1 of 2 checks passed
coverage/coveralls Coverage pending from Coveralls.io
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@zachriggle

This comment has been minimized.

Copy link
Contributor Author

zachriggle commented Sep 29, 2017

This issue can be demonstrated pretty easily by making a "dynamically linked" (read: PT_DYN) ELF which doesn't have a PT_INTERP section.

A better fix is likely to invoke the interpreter directly -- but this will cause weird issues with foreign architecture binaries / QEMU / binfmt_misc.

from pwn import *

elf_path = make_elf(asm(shellcraft.infloop()), shared=True, extract=False)

ELF(elf_path) # Invokes the elf with LD_TRACE_LOADED_OBJECTS=1
@zachriggle

This comment has been minimized.

Copy link
Contributor Author

zachriggle commented Sep 29, 2017

FYI @Idolf I had intended this to merge before 3.9.1

@zachriggle zachriggle deleted the zachriggle:statically-linked-populate-libraries branch Sep 29, 2017
@TethysSvensson

This comment has been minimized.

Copy link
Contributor

TethysSvensson commented Oct 4, 2017

Do you want me to cut 3.9.2?

@zachriggle

This comment has been minimized.

Copy link
Contributor Author

zachriggle commented Oct 4, 2017

If it's not a big hassle. This is relevant for a particular CTF challenge that's not released yet.

@TethysSvensson

This comment has been minimized.

Copy link
Contributor

TethysSvensson commented Oct 5, 2017

Sure, I'll cut it today.

@TethysSvensson

This comment has been minimized.

Copy link
Contributor

TethysSvensson commented Oct 5, 2017

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.