Understanding this pdf exploit

Status
Not open for further replies.
I get letters from a business partner and yesterday received a weird one with a link to a google docs page. The email looked official so i clicked the link. BAD. Here it is but BEWARE it is a honeypot

http://cellxpressions.com/wp-include...s/document.php

The link itself was labeled 'shared docs' and was in the middle of a page with official looking info. Obviously my business partner's email has been hacked. And it has been used as a spam bot. and it tricked me into thinking it was a google shared docs file. After I figured out what happened, I went back to the site and browsed the folder

http://cellxpressions.com/wp-includes/css/Docs/

and there are a bunch of scripts there.I want to find out what those scripts do and track down the origin of this deviant. Obviously the website has no idea they have been hacked.


so in the directory,
http://cellxpressions.com/wp-includes/css/Docs/
are 3 html files and 3 php files.
view.html
pvalidate.html
processing.html
document.php
real2.php
really2.php
I can download these files and read them with a text editor.

The view.html document runs the document.php script. The document.php is a rather long file. It pulls a stylesheet from a folder on a google drive here,
http://googledrive.com/host/0By9Kk_K...dIdzFSX25lYzg/
and it draws a fake google drive login page. It then validates the input to make sure you have typed in a valid email and telephone number. There is one reference to the really2.php script that seems to do more data validation.
I don't know where/how the processing.html or the validate.html documents are used. There is no reference to them.
The really interesting script is the real2.php script.
It is really a pdf document from Morgan Stanley that has been modified. I've read about pdf exploits and suspect this may be one but do not know how to analyze it. Any suggestions?

Still, I cannot see where the data they solicit is stored anywhere or sent anywhere else. So the whole structure may be a ruse to get the 'pdf' to run.

Besides reporting this site to Google and cellxpressions, what can i do? I want to find out what those scripts do and who they communicate back to. I guess I need to log into the server at cellxpressions?
 

CanSpice

Ars Tribunus Angusticlavius
7,147
First off, your first and fourth links aren't clickable. If you really want to share malicious URIs, prefix them with hxxp instead of http so that people won't accidentally click them.

If you want scanning of a URI done that won't cause you any damage, look it up on virustotal. It might give further insight, and it includes links to Sucuri and Quttera that might give more information as well.
 

krimhorn

Ars Legatus Legionis
39,865
[url=http:/civis/viewtopic.php?p=28249217#p28249217:20norwt6 said:
bwana[/url]":20norwt6]It is really a pdf document from Morgan Stanley that has been modified. I've read about pdf exploits and suspect this may be one but do not know how to analyze it. Any suggestions?
PDF exploits typically take the form of a document that has been modified to take advantage of some weakness in Reader. Often in the form of a buffer overflow. You'd do something like place executable code somewhere in the file and when the buffer overflow is triggered the execution pointer is sent to the code you've injected and now you're running arbitrary code on the affected system. You may very well be right that this is all an elaborate ruse to get a modified pdf file opening and running injected code.

If you want to poke at it more the first thing I would do is set up a completely new system that's isolated from everything except that target site to do so. Definitely don't do so on any PCs that you use for other things and I'd still make sure that it's as isolated from your network as possible.
 
Status
Not open for further replies.