You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It calls execve("/bin/sh", rbp-0x50, r12), the "array" of rbp-0x50 is { "/bin/sh", [rbp-0x68], 0 }, which is a valid one gadget with [rbp-0x68] == NULL as the constraint. (and rbp-0x50 has to be writable)
The text was updated successfully, but these errors were encountered:
david942j
changed the title
Consider the content of argv array as the constraint
Consider the content of argv array with constraints
Jun 16, 2020
The tool conservatively sets that [rsp + 0x30] == NULL must hold, but [rsp + 0x30] = 0x0000555555554dd1 (valid ptr) and [rsp + 0x38] = NULL which is a valid case for a one gadget.
Thanks for noting this and adding it as an improvement.
Checked on glibc 2.31, https://gitlab.com/david942j/libcdb/blob/master/libc/libc6_2.31-0ubuntu10_amd64/lib/x86_64-linux-gnu/libc-2.31.so
It calls
execve("/bin/sh", rbp-0x50, r12)
, the "array" ofrbp-0x50
is{ "/bin/sh", [rbp-0x68], 0 }
, which is a valid one gadget with[rbp-0x68] == NULL
as the constraint. (andrbp-0x50
has to be writable)The text was updated successfully, but these errors were encountered: