BugTraq
Re: Preventing exploitation with rebasing Feb 05 2003 10:29AM
David Litchfield (david ngssoftware com) (4 replies)
Going back to exe image files and rebasing. Surely they can be rebased even
without a .reloc section? All I need to do is edit the image base in the PE
header then parse the assembly looking for absolute addresses such as
function addresses, static variables etc and modify these addresses, too.

For example assume an image base for an exe is 0x00400000 and the c code
does

printf("hello");

This will generate something like

push 0x0042001C // push pointer to hello
call 0x00401060 // call printf

If I then make the image base 0x00410000 and I also change

push 0x0042001C
call 0x00401060

to become

push 0x0043001C
call 0x00411060

then the exe should still run (as long as you get all the absolute
addresses) and it has been rebased.

?
David

[ reply ]
Re: Preventing exploitation with rebasing Feb 05 2003 10:43PM
Bugtraq User (bq soft-analysts com)
Re: Preventing exploitation with rebasing Feb 05 2003 09:30PM
Todd Sabin (tsabin optonline net) (1 replies)
Re: Preventing exploitation with rebasing Feb 06 2003 12:07AM
Seth Breidbart (sethb panix com) (2 replies)
Re: Preventing exploitation with rebasing Feb 06 2003 11:29PM
Carolyn Meinel (cmeinel techbroker com)
Re: Preventing exploitation with rebasing Feb 06 2003 05:50PM
Richard Moore (rich westpoint ltd uk)
Re: Preventing exploitation with rebasing Feb 05 2003 08:48PM
D.C. van Moolenbroek (dc van moolenbroek chello nl)
Re: Preventing exploitation with rebasing Feb 05 2003 08:36PM
Michal Zalewski (lcamtuf coredump cx)


 

Privacy Statement
Copyright 2010, SecurityFocus