3 ms·
How does the image get executed? I went through the article and in the example the author extracts the executable manually using dd. But how would an unsuspect
by prepend 9y ago
How does the image get executed? I went through the article and in the example the author extracts the executable manually using dd.
But how would an unsuspecting user run the executable? Perhaps I missed this, but is there some image viewer or browser that runs the trailing bytes of images?
- lmm 9y agoIt's executed from PostgreSQL - the article shows SQL queries containing shell commands. This is a way for an attacker who's already obtained the ability to run arbitrary queries against a PostgreSQL server to run an exploitation payload there; the real solution is not to let the attacker get into that situation.
- prepend 9y agoThanks. Is there a name for these kind of contingent exploits? If step 1 is get root/execute code, it it reduces the risk of the exploit. Still valuable to know about, but not that much if you can execute code on a server.
- dmurray 9y agoThe "exploit" is the part where the attacker gets root/remote code execution. Using the computer to mine cryptocurrency rather than participate in DDOS attacks or host child porn is just a detail.
- lmm 9y agoGetting from "execute arbitrary SQL queries" to "execute specific exploit code" is not a completely trivial step, though of course it's not the most important part.
- fps 9y agoI was hoping for some sort of image or binary processing exploit too, but the attack just uses a Postgres vulnerability to execute arbitrary shell code. [0][1] The fact that the executed code was buried in an image seems to just be a camouflage step for the attacker. 0. https://github.com/nixawk/pentest-wiki/blob/master/2.Vulnerability-Assessment/Database-Assessment/postgresql/postgresql_hacking.md https://github.com/nixawk/pentest-wiki/blob/master/2.Vulnera... 1. https://www.rapid7.com/db/modules/exploit/linux/postgres/postgres_payload https://www.rapid7.com/db/modules/exploit/linux/postgres/pos...
- anarazel 9y agoThere's no exploit here, superusers can do things, that's it.