I Clicked On A Facebook Scam To See What Would Happen
Tags: security, facebookscams
Published: 2017-06-05 17:31:32

---
title: "I Clicked On A Facebook Scam To See What Would Happen"
published: true
description: It said I would get 2 free Delta Airline tickets. How could I NOT click it?
tags: security, facebook scams
---

So, I'm scrolling through Facebook and suddenly... 
![](https://thepracticaldev.s3.amazonaws.com/i/y2eeiu70uu3jxyycwu9u.jpg)

And then I'm like...
![](https://thepracticaldev.s3.amazonaws.com/i/rb8mwv6qgin53gg9ps55.JPG)

Do you see what's immediately wrong here? To start, Delta Airline isn't going to give out two free tickets to anyone for its 33rd anniversary.

Next, look at that URL at the bottom of the image.
![](https://thepracticaldev.s3.amazonaws.com/i/k2brlva0903v3kf7u91r.jpg)
Sure, it's possible for Delta to own different websites. But if Delta Airlines were going to give out free tickets for anything it's safe to say it's for the purposes of marketing, meaning they would more than likely want to drive traffic directly to their main website located at Delta.com. 

# The Surface
Now I'm curious, so I pull up Wireshark and start sniffing my own traffic while I browse through the site.

> It should be noted that I should have done this in a VM. It is very possible that it could have been a drive by malware attack, meaning my computer would have been infected as soon as I visited the site...aaaand later you'll see why this matters. 

![](https://thepracticaldev.s3.amazonaws.com/i/ecvvd6g4xm2hqtu74x2r.png)

Immediately I see that this site isn't secure (no HTTPS). I clicked through the questions, and reached a page that urged me to share the link on Facebook, Like a page (I never did find out what Page it wanted me to Like), and then I would somehow get the tickets. Since there was no way I was going to Share the link, this was my stopping point.

> I looked up whether or not it would be possible to trick the site into thinking the link was shared, but I didn't see any hacky javascript to check that. It would have to be something hacky because you can't really track whether or not a user shared a Facebook post without having the user authenticate to your site using Facebook. (Correct me if I'm wrong here. I'm not an expert on Facebook's Share tracking)

At the bottom of the page, there were Facebook comments from "users" confirming that they receive tickets. This is a common method scammers use in an attempt to legitimize their site.

# A Peek Under The Hood
I took a minute to look through the source code for the site and the first thing I noticed was that everything was hard coded, even the so-called Facebook comments. The "user" images came from a site called randomuser.me a.k.a. stock photos. 

![](https://thepracticaldev.s3.amazonaws.com/i/jyzfch1w7ozjp0hnspre.jpg)

I know it's a little hard to see (feel free to zoom in), but these are all hard coded comments found on the page.
![facebook-comments](https://thepracticaldev.s3.amazonaws.com/i/cpnsz1n41rfvrv93x4b5.PNG)

And then here is a closer look. You can see where they hard coded the number of likes the comments have, along with the age of the comments. 
```
<div id="fb1" class="item hidden">
    <img class="profileimg" src="https://randomuser.me/api/portraits/women/53.jpg" />
    <p class="comtxt"><span class="name">Radford Sarah</span> Wow, i won a free tickets from Delta Airline. </p>
    <p class="combot"><span class="ago">Just Now</span> Â· <span class="fblike">Like</span></p>
</div>
<div class="item">
	<img class="profileimg" src="https://randomuser.me/api/portraits/women/46.jpg" />
    <p class="comtxt"><span class="name">Deleon Sandra</span> Such a Great Service! Thanks Delta Airline.</p>
    <p class="combot"><span class="ago">11 minutes ago</span> Â· <span class="fblike">Like</span><span class="likes totlikes">267</span></p>
</div>
<div class="item">
    <img class="profileimg" src="https://randomuser.me/api/portraits/women/89.jpg" />
    <p class="comtxt"><span class="name">Brenda Vaughn</span> I am finally going  to France with my friends.. Thanks Delta Airline!</p>
    <p class="combot"><span class="ago">17 minutes ago</span> Â· <span class="fblike">Like</span><span class="likes totlikes">63</span></p>
</div>

```
For an extra treat, the page had some Javascript that made a new comment appear to make it look like the Facebook comments were being actively updated and added by other users. It also allows the user to add their own comments and fades it into the comment list, even though there isn't any indication that the comments is persisted anywhere. 

The more interesting part about this is that the site never asked for any information from me and based on the source code, I don't think it was ever going to. Based on the code below, it seems as though the host just wants you to share the link. It doesn't have a way to verify that you actually did it, and there aren't any conditional statements to advance the user to another section. No matter what the user did, they would always get a pop-up telling them to complete Step 1 when they tried to progress to Step 2. If getting personal information from the user isn't the objective here, then this site isn't a phishing site. It's more than likely used to deliver malware. 

```
<div id="final">
    <p align="center" class="prodname">Step 1</p>
    <p align="center" class="prodname">Share this page by clicking "SHARE" button and type "Thanks #Delta Airline!" in the comments field!</p>
    <p align="center">
        <a id="go" href="javascript:void(0)" onClick="gt=window.open('https://www.facebook.com/sharer/sharer.php?u=' + link + '', 'gt','top=176,left=500,toolbar=no,location=yes,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=800,height=50'); gt.onload = function () {gt.focus();}; return false;"><strong><img src="http://i.imgur.com/xzmclDm.png" align="top" border="0"></strong></a>
    </p>
    <div class="cont clearfix">
		</br>
		</br>
		<p align="center" class="prodname">Step 2</p>
		<div align="center">
			<p align="center" class="prodname">Click Like</a></p>
			<a id="to" href='javascript:window.alert("Complete Step 1 to get the Coupon!");'> <br/><img src="http://i.imgur.com/7FesHcD.jpg"> </a>
			<div class="loading-wrap">
				<p align="center" class="prodname">Verifying steps </p>
                <img src="http://i.imgur.com/x557web.gif" height="75" alt="Loader image not found">
            </div>
        </div>
    </div>
</div>
```

I also went back through the site with Google Chrome's inspection tool to watch network traffic and found that the site was pulling information about my browser and operating system, as well as information about my mouse movements. The site also collected information about my geographic location. All of this seems to be in line with my theory about the site delivering malware. Collecting information about browser version and operating system could be used to determine whether or not the user's machine is vulnerable and code on the backend could be making a decision about whether or not to deliver the malware. 

I ran the host through a malware scanner called VxStream (hosted on Hybrid-Analysis.com) and found that if the user is running Internet Explorer the website actually does something more interesting. It launched another instance of Internet Explorer. Read through a bunch of registry settings, including security settings for the system. It requested access to the rasman service, which is used to establish remote connections to a service, and dropped a few files. It does look like it was preparing to install something if the user was running the operating system and browser, but I can't be entirely sure. I was in a sandbox and that isn't always reliable if the malware is used evasion tactics. 

# Conclusion

* Server IP: 104.18.58.70
* Hosted by: Cloudflare
* Web server: nginx
* Domain: Deltaa-com.us


I did a WHOIS lookup on the domain and found out that our registrant didn't bother to obscure his personal information.

![](https://thepracticaldev.s3.amazonaws.com/i/kncxi8pm3friopewl6zi.jpg)
I blacked out his phone number, mailing address, and email address, but...you know...it's public information so if you want to find it... that's not my business.
![](https://thepracticaldev.s3.amazonaws.com/i/159u0vyousxl3udzat06.png)

For this investigation, my results are inconclusive. I'm fairly confident that this site does distribute malware, but I cannot say what kind and what it does other than establishing a connection to a remote host (possibly a botnet?). VirusTotal now has 2 URL scanners that have identified this host as malware (when I first checked it didn't have any hits). 
* [virustotal.com/en/url/97553c0...](https://www.virustotal.com/en/url/97553c0d99127df64d5fa948df91f7ece116264e7cf10dbc8619c7021899bb2c/analysis/1496672894/)

It has also now been blacklisted on Sucuri's Sitecheck. 

* [sitecheck.sucuri.net/results/deltaa-com.us](https://sitecheck.sucuri.net/results/deltaa-com.us)

I assume it's only a matter of time now before Cloudflare shuts down the host, but it will probably pop up again somewhere else with a different IP address and/or hostname. This is the game of Wack-A-Mole that happens all of the time with these types of sites. 

Have you guys seen any particularly nasty scams on Facebook? What was the most outrageous claim?

**Update 06/12** This host is a known affiliate link site. The user makes money when others share the their link. Harmless to the user.