Hacking a website used to deliver Malware
Introduction
While analyzing a sample from this morning, I found out it uses a URL to download the second stage. While messing around with the url, I found a file upload vulnerability ( more precisely blunder). I used it to upload a php file to fetch the hashes of all the second stages there.
I- The File Upload vulnerability:
I always enumerate. When I found the URL from where the second stage is downloaded. I tried to find every path and see what happens there. I found this directory with a ZIP file
(1) Zip file in website
When you open the zip file, you see an upload.php file
It uploads files and only checks if the User-Agent is "LOADER".
Wrote a basic python script to upload files.
(3) Python script to upload a file to the website
II- Fetching the hashes of all the samples
I tried uploading small php file containing only phpinfo() to check if the upload works.
(4) Phpinfo() works
So, I wrote a PHP file to fetch all the hashes of all the sample on the website.
(5) PHP script to get the hashes of the files on the website
And it worked. We got the hashes of all the samples there.
(6) hashes of all the files on the websites
Hashes:
056df27e8ab520ada6f91d8734334f 57327521d8f3890980a8b26f3f25ad 161c
0a921ec694bdd5d95d9643efa72a73 acb2fe4ebcd230a03de9f52c96c599 1efe
13652ca118b98ee7f713215094db92 ebc74ed256534377342414d3648ae6 50f1
1aecc3979eb3eee1e779e4eb652bcd 82492fda1573009f48af273c4bc7c0 1653
1b88197613f1c501120d3452c20a26 4bc4f2596d9781975f9054b444dffc cb46
1b88197613f1c501120d3452c20a26 4bc4f2596d9781975f9054b444dffc cb46
27b36145ae0389079a292b1189ff3c 6e65c20b2269ce22b02b3feca3e571 1da5
304b156f8fce7e7aee41011fd7661d c3ce42941c3ff1e01ddf2f58e458e2 21d6
444baa5f0e9d684d296e679e4ee7dd 53ad5f716cc482c1ad5a6bbb73093b f9e4
4fe2a64ead98de53de5e7457b88824 1fe01f1eb9399eda7cfa70aa5ee4ef 6329
53798111605041fa783c119fedf35b 7ec32647b5eca41f1127a0625318ad 6e8d
590289bc95fc1253677f1b2c6e5333 a4ebdd5d453b57f0c70d8accaec891 c5b5
5c62ac8e232df44816dc1cfff18ae9 0933c68f0e3aee4ee1b917ca5ae9ed ec60
61769cac0deb5d3a9c98e310152d98 18fd4499e7f7331d9acfe09ba74839 19e2
650d95cc15334a3a0c8c06c4f80c2a 6b24aa5ba2a910a2521a61530c48bd 81ba
6c4a40ba44fe744debf7d3b37cb857 941ac243b20e7860e224fb8bd8a032 8ae6
6fa55c058ce07658fd39dae990b270 75065bd738f47e365bc7e27d2d51e9 9936
71e02e244dc4e8ee6feaf8d2ea3cf9 66472fc23d348e80cd1eeda06b2a66 0a04
741634e5b520fbc3fe99c4734618c6 ba4c81303e8946d17557be40535a28 6c67
783990d11819c473ccf153a73ac1ed c2bebb366b9d432bf9bb0df0757046 6998
7d0923848648282a0804f1dffedddb 16d9f2ada1c26c20f15724dbea09d4 0334
8a540451d8922eec3e75869b730468 a1413a7dfac9db965ef2290e29d369 4283
8cba9355b5c5f36c22dd26170d46d4 c2428ab4a42be218c4969867422e2e 2ab5
8dd4c9cb7fe66bf2e7e5512d317c5f f66ef1e14229b2a6cf0e1dd960a58c 9197
8ed6f363fd129c095829065c2f3dc8 1a6a0e82b0e8d58587470d913c68db fe8e
88025c2c5a48a9616e9662383483fe 39418b8c73a4c95c7c08d73adf0cee 41f2
b20ab05350ae824ec38d1da543ec8b 1d80b914a3292592c29f4dc41cd953 976d
b2f558d08fecb7804d2699f7a0723a efa9026d424297912993bc997e6e29 f6d6
b870c488a4946f65b8e0afad3307b2 e99f09a182baf61d643806f1904e17 d9a8
b882d72547fbcbfc63e68faaf170ca fb71f5bb2c0e5b6cd88eb8bde2737c 52b9
bf2e57d5710b78e19d1a43d72b9caf 1463e7209814592afa3b7ea344cc82 60fe
bfebb7b8f30119d6d2081f299d2c12 605a4b74495c129155cb248afc2cae 56e0
c37060ac5111af141178e93bc84c8e 29106132762689fa4b09f990bcf19f 0b9b
d14b7c95892867005647daae1a238a f9e30b5cde30ddafc77d40ed3e4c38 506b
d2f0924ef9051769f282edec31cad5 55abe40f1704132197b2515e68cca0 578b
da45f4505a0b386489d1308b14474b 0795432ca895c7ea414de6f0f82177 ce4b
e500ec6e2d97a59e28feb5648c6da9 bcb81213e687418167873d142f0f77 063d
f8add5919847d7d9cffc255df0ec9a ea9c5afeb0be232fcfba7e380e8cb2 e08d
f9ef24ea4de2798eb7591fdc0d6327 8a2f72166b0a99c215f442a06ea8cc 6dd9
fd6fd560374f61b47a9a6184d3dbbe 4126b644e3b70ec08b6380d5ae2fe0 ed63
0a921ec694bdd5d95d9643efa72a73
13652ca118b98ee7f713215094db92
1aecc3979eb3eee1e779e4eb652bcd
1b88197613f1c501120d3452c20a26
1b88197613f1c501120d3452c20a26
27b36145ae0389079a292b1189ff3c
304b156f8fce7e7aee41011fd7661d
444baa5f0e9d684d296e679e4ee7dd
4fe2a64ead98de53de5e7457b88824
53798111605041fa783c119fedf35b
590289bc95fc1253677f1b2c6e5333
5c62ac8e232df44816dc1cfff18ae9
61769cac0deb5d3a9c98e310152d98
650d95cc15334a3a0c8c06c4f80c2a
6c4a40ba44fe744debf7d3b37cb857
6fa55c058ce07658fd39dae990b270
71e02e244dc4e8ee6feaf8d2ea3cf9
741634e5b520fbc3fe99c4734618c6
783990d11819c473ccf153a73ac1ed
7d0923848648282a0804f1dffedddb
8a540451d8922eec3e75869b730468
8cba9355b5c5f36c22dd26170d46d4
8dd4c9cb7fe66bf2e7e5512d317c5f
8ed6f363fd129c095829065c2f3dc8
88025c2c5a48a9616e9662383483fe
b20ab05350ae824ec38d1da543ec8b
b2f558d08fecb7804d2699f7a0723a
b870c488a4946f65b8e0afad3307b2
b882d72547fbcbfc63e68faaf170ca
bf2e57d5710b78e19d1a43d72b9caf
bfebb7b8f30119d6d2081f299d2c12
c37060ac5111af141178e93bc84c8e
d14b7c95892867005647daae1a238a
d2f0924ef9051769f282edec31cad5
da45f4505a0b386489d1308b14474b
e500ec6e2d97a59e28feb5648c6da9
f8add5919847d7d9cffc255df0ec9a
f9ef24ea4de2798eb7591fdc0d6327
fd6fd560374f61b47a9a6184d3dbbe
Comments
Post a Comment