<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Section 9 Labs on Medium]]></title>
        <description><![CDATA[Stories by Section 9 Labs on Medium]]></description>
        <link>https://medium.com/@S9Labs?source=rss-32671d079e9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wgshzQcn5XtB4BYXaSlZqw.png</url>
            <title>Stories by Section 9 Labs on Medium</title>
            <link>https://medium.com/@S9Labs?source=rss-32671d079e9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:17:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@S9Labs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Subsidizing the rise of the machines]]></title>
            <link>https://medium.com/section-9-lab/subsidizing-the-rise-of-the-machines-3a59b606e91e?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a59b606e91e</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Thu, 06 Oct 2016 23:43:30 GMT</pubDate>
            <atom:updated>2016-10-07T16:13:00.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ku9KE-_XbmqNRAAFmD4mug.jpeg" /><figcaption>Source: <a href="https://cdn0.vox-cdn.com/thumbor/B5qsqRsniTeqR3Khwa14msYu-TU=/0x24:1200x824/1280x854/cdn0.vox-cdn.com/uploads/chorus_image/image/49212331/d153dd31563275.565618dfca873.0.0.jpg">https://cdn0.vox-cdn.com/thumbor/B5qsqRsniTeqR3Khwa14msYu-TU=/0x24:1200x824/1280x854/cdn0.vox-cdn.com/uploads/chorus_image/image/49212331/d153dd31563275.565618dfca873.0.0.jpg</a></figcaption></figure><blockquote>Kick-starting your automation with “cheap labor” as a service.<strong> The rise of machines by </strong>companies developing disruptive technologies and changing the world.</blockquote><h4><strong>The Background</strong></h4><p>In the case of Security, one could argue that the Uber of this industry are <strong><em>Bug Bounty</em></strong> companies. They took an industry controlled by consultant security companies reporting vulnerabilities and getting paid on an engagement base payment into what some people call a “democratized world” where responsible disclosure became the world of “<strong>civilized mercenaries</strong>” or as many bug bounty like to put it they give everyone a change to get paid for their job.</p><blockquote>But, is it really what Bug Bounty companies are here for ? A lot of them keep on spreading to other areas, selling “<strong><em>engagements</em></strong>” or even venturing in the profitable yearly PCI penetration tests arena.</blockquote><p>Investors are not here to help anyone, clearly not here to help any poor researcher doing its best job from some random country to find vulnerabilities and make a living nor to make their customers more secure. Investors are here to make <strong><em>$$$$$</em></strong>. This drive to take businesses to new levels and maximize earnings, regardless of who is reporting the vulnerabilities is what I believe is going to support the rise of the machines, as it is happening with Uber replacing drivers with self-driving cars in the medium-long term future.</p><blockquote>Machines are replacing humans, so why not hackers …</blockquote><h4>The Security World</h4><p>Just like Uber, this “<em>independent</em>” AKA W9 work force is here just to pay for the long-term inevitable end-to-end automation in order to scale and maximize earnings. So as much as the Bug Bounty industry might deny it or <em>even potentially don’t even realize it yet</em>, they are only <strong><em>using</em></strong> researchers for the time being until the day autonomous bots/machines/AIs are good enough to find and report vulnerabilities on new companies.</p><p>So is this a bad thing, are these companies evil. No, by no means, this is just inevitable. Evolution at its best. Cars will drive by itself, supermarkets will at some point remove all humans employees, and more and more jobs through time will be replaced by non-humans <em>machines</em> that will in time keep getting “smarter” and smarter.</p><p>When it comes to security, we hackers tend to think we have a very special job that only a human can do, and to some respect it is true. But with time that edge will disappear and more and more of the vulnerabilities will be easily found by computers and bug bounty companies — or some competitor — will sell them to companies in the form of bounties or whatever they might be call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*GGonrgh-wvXRddxHHQYAkQ.png" /><figcaption>Source: images.google.com</figcaption></figure><p>I am sure some of the best bug bounty researchers already use automated-scripts or applications to find new vulnerabilities, next step will be to automate the reporting and after that these systems will be absorbed into the bug bounty companies and with time the same people that kick-started these companies will either evolve or will get replaced by the same companies they help create.</p><p>Irony is a <strong><em>biatch</em></strong>, but again, I am against this progress?. Hell no, I am a <strong>HUGE</strong> fun of Artificial Intelligence and I think it will help the world be a better place, if we use it correctly. What is more, ever since I joined the security industry I always wanted to work and develop technologies to run me out of a job. I have developed some automation tools, but very basic. So if I, a person without any scholar teaching in the world of artificial intelligence, can develop basic tools, I have no doubt people will eventually force me to evolve and/or leave me outdated, slow and out of a job.</p><blockquote>I do not think for now AIs are capable of performing human level out-of-the-box thinking required to find new clever vulnerabilities.</blockquote><p>Humans hackers will still exists for a long time in Bug Bounty programs, but the big mass of researchers will be replaced by an elite of skillful hackers capable of finding new and complex vulnerabilities that AIs cannot find.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3NuFjFgyywzsHi70UqiKw.jpeg" /><figcaption>Source: ttps://cdnb3.artstation.com/p/assets/images/images/002/791/871/large/jules-marais-bouriaud-marais-archi.jpg?1465763886</figcaption></figure><p>Although, with time that edge will keep on getting smaller and smaller up to the point that the technology will get good and cheap enough companies can directly build these technologies themselves and no longer depend on the experienced BugBounty firms.</p><h3>Final thoughts</h3><p>In any case, this rant is not about wether Bug Bounties are good or bad nor whether what companies are doing is even unstoppable, but to provide my humble crazy opinion on where I think this is going and to allow others to look at the past/present/future options and decide wether you want to support this evolution and understand the consequences. Or maybe you will realize you want also do these yourself and create the next wave of penetration testing and bug bounty companies that will take us into a new age of truly <strong>Artificial Intelligence based automated security</strong>, which I can’t wait to see come a reality and stop being a cyberpunk dream ….</p><blockquote><em>In other words where are my Hacking Assistant AKA Tachikoma ???</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNV0qSrkalGc-3dMavRQqQ.png" /><figcaption>Source: Screenshot from: Ghost in the Shell — Stand Alone Complex</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a59b606e91e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/section-9-lab/subsidizing-the-rise-of-the-machines-3a59b606e91e">Subsidizing the rise of the machines</a> was originally published in <a href="https://medium.com/section-9-lab">Section 9 Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cartero — Automating Phishing Mail <Forms> requests]]></title>
            <link>https://medium.com/section-9-lab/cartero-automating-phishing-mail-forms-requests-258e441ac808?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/258e441ac808</guid>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Mon, 23 Mar 2015 21:20:57 GMT</pubDate>
            <atom:updated>2015-03-23T21:20:57.837Z</atom:updated>
            <content:encoded><![CDATA[<h2>Cartero — Automating Phishing Mail &lt;Forms&gt; requests</h2><blockquote>Many websites [un]willingly allow users to send emails through a simple web request. Knowing this we can automate phishing campaigns with Cartero exploiting the vulnerable web forms to send emails.</blockquote><p>While performing WebApp penetration tests, more than one of us have come across those “share this” buttons that generate a mail form allowing users to share data. With some digging around plenty actually give attackers enough variables to send arbitrary emails using the websites’s as a source.</p><p>After one engagement where that was useful. I always kept a little script hanging around that would easily allow me to send emails that way. One thing left to the other and <a href="https://section9labs.github.io/Cartero">Cartero Framework</a>, ended up having a reincarnation of it.</p><p>In any case, these requests, sometimes do come handy, because servers do not block or even check emails coming from those servers, since they “should” be trusted and they are used internally.</p><h3>Cartero WebMailer</h3><p>Let us discuss the process to setup and launch an attack using Cartero’s WebMail command, using the freely available send-email.com mail service as an example. <strong><em>Note: This is not a vulnerable url, but it will serve as a good example to show the process.</em></strong></p><h4>—[ Step 1: Obtain webmail POST/GET request</h4><p>Once we have found a vulnerable site, it is time — with the help of chrome dev tools, burp or any other tool capable of showing us the request — to copy the request and use it to extract the information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*woncQIX0ztd4ETDMokX4gw.png" /><figcaption>Chrome Network view of POST Request</figcaption></figure><blockquote><strong>Note:</strong> This could also easily be copied using Burp or any other proxy.</blockquote><h4>—[ Step 2: Create a webmail server config</h4><p>In order to generate a server configuration out of the data we just obtained, let us create one using the Server command on Cartero.</p><pre>❯❯❯ ./cartero Server --add webmail -T webmail</pre><p>This will create and we can populate it as it is shown below; making all the necessary changes, add any cookies, and special headers needed on the request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*boXV1L57GW0iC6ainD078w.png" /></figure><h4>—[ Step 3: Generating a body payload</h4><p>Now it is time to take your email and make into a template. For people familiarized with ERB, this should be easy.</p><pre>❯❯❯ cat sample.web _token=WYEwpMnaU5GRKumTpYiRna6W7XixoMgygH8wXfHu&amp;emailTo=&lt;%= ERB::Util::url_encode self[:email] %&gt;&amp;replyTo=&lt;%= ERB::Util::url_encode self[:reply_to] %&gt;&amp;subject=This+is+a+test+&lt;%= ERB::Util::url_encode self[:name] %&gt;&amp;message=Hola+&lt;%= ERB::Util::url_encode self[:name] %&gt;%2C%0D%0AThis+email+needs+to+be+displayed+as+HTML.+This+is+an+automated+email+to+your+email+&lt;%= ERB::Util::url_encode self[:email] %&gt;.+In+addition%2C+this+email+can+also+be+displayed+securely+on+<a href="http://192.168.1.216:8080/click?key=%3C%=">http://192.168.1.216:8080/click?key=&lt;%=</a> ERB::Util::url_encode self[:payload] %&gt;</pre><h4>— [ Step 4: Launch the Attack</h4><p>Testing the command, will provide us with a useful help</p><pre>❯❯❯ ./cartero WebMailer<br>Usage: Cartero WebMailer [options]<br> -R, --raw [RAW_REQUEST_FILE] Sets WebMail Raw Request<br> -S, --server [SERVER_NAME] Sets WebMail server to use<br> -U, --url [URL:PORT] Sets WebMail server url to use<br> -H [HEADER:VAL\nHEADER:VAL], Sets WebMail Headers to use<br> --headers<br> -C, --cookies [COOKIES] Sets WebMail Cookies to use<br> -D, --data [DATA_FILE] File containing template data sets<br> -s, --subject [EMAIL_SUBJECT] Sets Email subject<br> -f, --from [EMAIL_FROM] Sets Email from<br> -r, --reply-to [EMAIL_REPLY_TO] Sets Email reply-to<br> -b, --body [REQUEST_FILE_PATH] Sets Email Text request query Body<br> -p [PORT_1,PORT_2,..,PORT_N], Sets Email Payload Ports to scan<br> --ports</pre><pre>Common options:<br> -h, --help Show this message<br> --list-options Show list of available options</pre><p>Now using our usual <strong><em>sample.json</em></strong> datasets, we launch the attack as follows:</p><pre>❯❯❯ ./cartero WebMailer -D accounts.json -b sample.web -S webmail</pre><ul><li><strong>-D </strong>, is the dataset containing the people you want to send the email to and any other data you want to auto-populate on your email templates.</li><li><strong>-b </strong>, it is the template body you want to use, which is the actual query-string POST or GET you will be sending the servers to create the emails, as we showed above.</li><li><strong>-S </strong>, the server template containing the server configuration</li></ul><h4>— [ Step 5: Pwning</h4><p>Sit back, relax and Enjoy your … 😃</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*08MczMfERyWI2iZ-u4nYEA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=258e441ac808" width="1" height="1" alt=""><hr><p><a href="https://medium.com/section-9-lab/cartero-automating-phishing-mail-forms-requests-258e441ac808">Cartero — Automating Phishing Mail &lt;Forms&gt; requests</a> was originally published in <a href="https://medium.com/section-9-lab">Section 9 Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploiting Lync for iOS to gather OSINT and force join conference calls.]]></title>
            <link>https://medium.com/section-9-lab/exploiting-lync-for-ios-to-gather-osint-and-force-join-conference-calls-7de0d31bb943?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7de0d31bb943</guid>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Fri, 02 Jan 2015 14:15:49 GMT</pubDate>
            <atom:updated>2015-01-02T14:15:49.109Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Based on our research reported about url-handlers on FaceTime and Messages, here comes the “Enterprise version”. Hacking MSFT through iOS to steal Contact Cards and forcing people to join meetings, has its beauty ☺</blockquote><h3><strong>Background</strong></h3><p>As we will be discussing on this and other posts — all part of some social engineering research being done in Section9Labs for our newly released <a href="http://section9labs.github.io/Cartero/"><strong>Cartero Framework</strong></a><strong> — </strong>we have found several interesting issues and attack vectors abusing url-handlers and iOS applications. When we got to check “enterprise” applications on my iPhone app list, I was already high on url-handers and for each application installed, I had the <strong><em>need</em></strong> to decrypt and throw it into IDA to understand how the exposed url scheme worked and what could be done with them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*n4pIh9xj-Q55f1uahsR2Yw.png" /><figcaption>Office 365 application family</figcaption></figure><p>In the case of Microsoft Lync 2013 for iOS there was no documentation that could be easily found through some quick Google searches and searching in some forums, so the only way was to reverse engineer the app and see what was there.</p><p>A quick check on the plist file confirmed what we had found through quick and dirty try/fail attempts, the url handlers supported were <em>lync://</em> and <em>sip://</em>.</p><p>Now, it was time to determine what exactly could be done with lync://. Searching on the internet produced no useful information. A more technical approach was required, and a few minutes later we had the binary in IDA Pro, simple analysis was performed and a quick search for strings lead us to the following method:</p><p><strong>CMJoinMeetingDataManager + (char)handleOpenURL: (id)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*Wa6iQX6LF6yyt-w7jiiKmA.png" /><figcaption>IDA Pro flow showing what the method in question</figcaption></figure><p>This method told us that the lync url-handler was using the <strong>confjoin </strong>path which in addition took a <strong>url </strong>parameter — most surely a URL for the online meeting provided by Lync conference calls.</p><p>With help of a friend we quickly realized, by experimentation and testing, that the url passed would be the Lync Server conference room URI. In the case of office365 they would look like:</p><p><strong>lync://confjoin?url=</strong><a href="https://meet.lync.com/company/test/XXXXXX"><strong>https://meet.lync.com/company/test/XXXXXX</strong></a></p><p>where <strong><em>company</em></strong> would be the name of the domain or company name, <strong><em>test</em></strong> the username and <strong><em>XXXX</em></strong> the unique ID for that conference call. It was time to see if we could exploit this in the same way we exploited Chrome, Safari and FaceTime ( video and audio calls ).</p><h3>Attack — Proof of Concept</h3><p>Let us discuss how we can exploit this and what is necessary to do so.</p><h4>Setting up the attack infrastructure</h4><p>I gotta say it is a little ironic to use office 365 owns free trials to attack this, but hey why not, it is free, cloud and I have no need to host anything. Besides a burner phone an attacker does not need to leave anything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*YdLPkGJcDUomoPO05mAlHQ.png" /><figcaption>Office 365 Small Business trial no Credit Card needed</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5yOewg8k0vxALsObNSJxRw.png" /><figcaption>Meeting set by malicious account.</figcaption></figure><p>Anyhow, after a few simple clicks and steps we had a free trial office365 account without any credit card or complicated setup. All it was needed was a non-voip SMS line to receive a confirmation code — burner phones anyone ?</p><p>Once we had the account running, we found that without even having to configure a proper domain, users or emails servers we had a working office 365 account capable of reaching calendar and lync account — This was done by completing step one of the email setup clicking on the first step and saving to continue later ☺</p><p>Right after that, <strong>Calendar tab </strong>was enable and an arbitrary meeting was setup and we were able to create an online meeting for which a link was provided to use and abuse, as it is shown on the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2NbbuhYmiKBCnqN-ffeJQ.png" /><figcaption>Ishikawa attacker starts web Lync Interface</figcaption></figure><p><strong>Note: </strong>It is important to notice that this information leak can be mitigated by Office 365 Administrators to only be susceptible to internal meetings only; if they uncheck the default <strong>External Communication </strong>option, under <strong>IM, Meeting and conferencing, </strong>but sadly by default, most surely to provide a better office365 experience, it comes <strong>ON </strong>by default — <em>great for social engineers bad for enterprise customers.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*xSuanEnBrnQgKFk6YTth9A.png" /><figcaption>External communication default setting</figcaption></figure><p>It is worth nothing that we did not tested this on self-hosted Lync servers, and we assume the vulnerability will still be present, but we guess it will require users domains to be federated. Nevertheless, this limitation could potentially be bypassed by reusing an old valid meeting ID, among other things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*OiuThfxSdGfZCipPK9wa7w.png" /><figcaption>Victim Jon Doe from lyncl33t.com domain</figcaption></figure><h4>Payload</h4><p>Once we had a full url, all we needed was to craft our malicious automated url-handler site ( <a href="http://evilrovot.com/lync.com">http://evilrovot.com/lync.com</a>) that will trigger the vulnerability when visited the site — worth noting this could be easily exploited with a XSS vulnerability and/or by controlling the content of a site in some other way.</p><p>lync.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*VC9Uj4f6aumrefLoKZFoUA.png" /><figcaption>proof of concept exploited based on previous research by <em>@</em><a href="https://twitter.com/neculaesei"><em>neculaesei</em></a></figcaption></figure><p>A quick Message with the url, and after we clicked the application Lync was launched and the application automatically joined the conference without any confirmation or interaction. <strong>w00t</strong> !</p><p>Now, what else could we obtain this is an enterprise MSFT product there has to be some other interesting piece of data available to us besides being able to force someone into calling into an arbitrary conference call.</p><p>Bingo, there is a participants tab that shows all of the participants that have joined the meeting and the mobile application actually even keeps their contact cards with all of their information for history records. OSINT treasure found and <em>then some more</em> … :-)</p><p>In any case, the attacker could be using the <strong>Web meeting page</strong> or he could be using the <strong>mobile app</strong> as well. It is important to notice that the Lync app allows you to keep records of all your calls and information. So you can browse the calls you maliciously created and then go to Participants and obtain the information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*LBXPrT4HjnsZ9vGd5Q1d0w.png" /><figcaption>List of participants</figcaption></figure><p>If you click in one of the participants, i.e. office 365 office fake person:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*81FyPo5y6BY2Ntxzp9qr0A.png" /><figcaption>Fake Persona using Office 365 default configurations</figcaption></figure><p>Last, but not least, we decided to do a real example call to see if our assumptions were correct using real people:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*e1LinUd0brD__QXn_PfZzw.png" /><figcaption>Conference Call with Travis</figcaption></figure><p>The information leak depends a lot on the information the person — or organization— is sharing by default, but the fact that any attacker can force any office 365 Lync user to join a call by just visiting a website resulting in not only listen in what the victims are saying for a moment, but also obtain the contact information from the victim to completely identify who he/she is. It does raises a very significant information leak.</p><p>Now, it is worth noting that the actual vulnerability or “abuse of features” exists on the fact that the mobile and other applications do not prompt the user before joining a meeting, if a correct prompt screen would pop-up before the meeting joins this will be easily prevented.</p><h3>Final Thoughts</h3><p>This vulnerability at first might not seem important, but any crafty social engineer targeting a specific company that users office 365 or Microsoft technology stack could use this vulnerability to compromised by means of creating a malicious office365 account and easily steal user information among other things without almost any human interaction. In any case, <em>a very interesting way to perform OSINT. ☺</em></p><p>Special Thanks to <strong>Travis Morrow </strong><a href="http://twitter.com/wired33">@wired</a>33 for all the help while researching and testing the vulnerability. You are a good friend and hacker.</p><p><em>Sympathy for </em><strong><em>evil</em></strong><em>, the nature of our game.</em></p><h3>Timeline</h3><p>9/16/14 — Issue was reported to Microsoft</p><p>9/17 /14— Issue assigned internal case 20384</p><p>9/23 /14— Update provided — Still researching issue</p><p>10/6/14 —More information and details requested by Microsoft</p><p>10/6/14 — Detailed information provided, including a yet more detailed step-by-step Proof of Concept</p><p>10/13,20,24..etc/14 — Update requested with no answer.</p><p>12/15/14 — Email sent to Microsoft with notice of 90 days.</p><p>12/31/14 — No update provided. Issue will be made public due to lack of fixing and response from team.</p><p>1/2/2015 — Section9Labs makes issue public.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7de0d31bb943" width="1" height="1" alt=""><hr><p><a href="https://medium.com/section-9-lab/exploiting-lync-for-ios-to-gather-osint-and-force-join-conference-calls-7de0d31bb943">Exploiting Lync for iOS to gather OSINT and force join conference calls.</a> was originally published in <a href="https://medium.com/section-9-lab">Section 9 Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paid apps, do come with a price …]]></title>
            <link>https://medium.com/section-9-lab/paid-apps-do-come-with-a-price-bc0533a94ff9?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc0533a94ff9</guid>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Mon, 13 Oct 2014 19:00:01 GMT</pubDate>
            <atom:updated>2014-10-13T19:00:01.210Z</atom:updated>
            <content:encoded><![CDATA[<h2>Paid iOS browsers, do come with a price …</h2><blockquote>Paid does not necessarily means better, faster or more secure. Exploiting URL handlers in alternative web-browsers to trigger FaceTime and Telephone Calls</blockquote><h3>Background</h3><p>Continuing with the Web Browsers &amp; url-handlers research that started with <a href="https://medium.com/section-9-lab/abusing-ios-url-handlers-on-messages-96979e8b12f5">Google Chrome</a>, we decided to expand it into other, not mainstream, web browsers (Atomic and Mercury) to check if they were susceptible to the same type of issues and then some more. Even though, these might not have the install base other popular browsers do, they still have thousands of downloads and recommendations which makes them an interesting jumping point to trigger attacks as we did with Chrome.</p><h3>Exploitation</h3><p>It is pointless to describe and cite of all of the previous research that went into this; but If you want that please refer to the link mentioned above. To make a story short, we had all of the research and scripts already built for chrome and 90% of it could be reused. We efectively had half of the work done, no need to create any exploitation web sites, all were ready for testing:</p><p><strong>Tests 1: </strong>FaceTime calls <a href="http://evilrovot.com/test.html">http://evilrovot.com/test.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*y4OEzIas6FaLvaFmr8Yr_g.png" /><figcaption>FaceTime Call Proof of Concept</figcaption></figure><p><strong>Tests 2: </strong>FaceTime-Audio calls <a href="http://evilrovot.com/ft_audio.html">http://evilrovot.com/ft_audio.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*GJzbgsOM0p_U1_4zWTMexg.png" /><figcaption>FaceTime Audio Proof of Concept</figcaption></figure><p><strong>Test 3: </strong>Telephone Calls <a href="http://evilrovot.com/tel.html">http://evilrovot.com/tel.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*rDPTm02NqnueSUtY_biD1w.png" /><figcaption>Telephone Proof of Concept</figcaption></figure><p>Now, it was time to find out wether or not these applications were vulnerable to one of our attacks and if they were we needed to investigate if the web browsers in question had a url-handler themselves to be used as a jumping point from other applications. Nothing a quick Google search — <em>if we are lucky ☺</em> — and/or the decrypted application could not tell us.</p><h4>Mercury Web Browser</h4><p>We started testing <a href="https://mercury-browser.com/">Mercury Browser</a>, this is a know browser that apparently connects to many Social Networks for quick sharing —we did not tested those features but they do sound like an interesting attack vector. Anyhow back to what we were doing, We quickly found that Mercury was not vulnerable to FaceTime calls ☹ but it was vulnerable to both FaceTime audio and Telephone calls. <strong>w00t!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*LLSaZXmm3IydaaavZwqoxA.png" /><figcaption>Mercury Web Browser</figcaption></figure><p>This time we got lucky and a simple google search allowed to find the Mercury url handler <strong>merc:// </strong>and a few click later we had a <strong>Proof of Concept attack </strong><a href="http://evilrovot.com/mercury.html">http://evilrovot.com/mercury.html </a>up and running to send as a test in Messages App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*J-ZuPQdfEeYVe6kAEaITdg.png" /><figcaption>Mercury Browser Proof of Concept Attack</figcaption></figure><pre>❯❯❯ ./cartero IMessage -d messages_accounts.json -b malicious_message.imsg</pre><p>In shorts, Mercury Browser was vulnerable to one of the worse type of url-handler vulnerabilities allowing arbitrary phone calls being initialized by an attacker. This could allow an attacker to force users to call pay lines and mine money in that way. In addition, it is worth noting that iphone supports entering options to phones by using <strong><em>+1234;7868</em></strong> allowing to extend the attack possibly further. Last, but not least, the browser will automatically re-execute the last open page it was left on the browser, re-initializing the attack over an over every time the users re opens the browser until the user closes the vulnerable tab.</p><h4>Atomic Web Browser</h4><p><a href="http://atomicwebbrowser.com/">Atomic Web Browser</a> was our second browser tested. We performed all of our tests using the lite version, although the browser comes in two flavors Lite and full.</p><p>As with our previous tests we started by performing the tests to quickly check wether or not the browser was vulnerable to any of our known attacks vectors and to our surprise. Atomic was vulnerable to ALL of them. ☹</p><p>An attacker will be able to trigger</p><p>When performing our tests we found that the applications had two different url handlers <strong>atomic:/</strong>/ and <strong>atomiclite:// </strong>by searching the web and later decrypting the application and finding the url-handler atomiclite:// on the free application which was not as public as the atomic:// one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*GNKnpFsGYE2XZW6Wqa04kw.png" /><figcaption>Atomic Web Browser Lite</figcaption></figure><p>In order to test our Cartero phishing attack we created a new <strong>proof of concept attack </strong><a href="http://evilrovot.com/atomic.html">http://evilrovot.com/atomic.html</a> page which we once more sent it as an SMS message and it perfectly triggered the attack.</p><pre>❯❯❯ ./cartero GoogleVoice -d messages_accounts.json -b malicious_message.imsg</pre><p>Messages App → Atomic Web Browser Lite → Telephone App</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*r9BmAszEOvPF4_MrQtVrLg.png" /><figcaption>Atomic Web Browser Proof of Concept</figcaption></figure><h3>Final thoughts</h3><p>Once more, as we concluded with our previous report, we feel this is not a critical finding on itself, but it does raises a broader issue flowing around mobile platforms on how trust boundaries are important when it comes to IPC — url-handlers — between apps.</p><p>Having said that, for this two browsers we are dealing with Telephone calls being vulnerable, resulting into attackers possibly using this in paid phone calls mining phishing attacks by email, SMS, etc to steal money, or by using cartero, for example we could generate a changing payload that will pass a unique identifier to the phone system linked to a unique. (i.e. tel://+0000;UNIQUE_ID ) to send emails messages to obtain valid phone numbers for those victims rendering the site on an iOS device that has atomic or atomic lite installed.</p><h3>Timeline</h3><p>Sadly, even though both of the vendors were contacted and the vulnerabilities were correctly reported, we received no response from any of them. With Mercury we tried hard ☹, their Contact Us url does not work, we send them twitter messages and we ended up finding their main company website Contact Us, but no answer was provided either.</p><p>We are publishing this in hope that the vulnerabilities once they are made public they will be fixed, although we are not sure this will happen, so you might want to be careful if using these browsers. ☹</p><ul><li>Mercury vulnerability <a href="https://github.com/Section9Labs/advisories/blob/master/CVE-2014-7305.md">CVE-2014–730</a>5</li><li>Atomic Lite vulnerability <a href="https://github.com/Section9Labs/advisories/blob/master/CVE-2014-7306.md">CVE-2014–730</a>6</li></ul><p><em>Sympathy for </em><strong><em>evil</em></strong><em>, the nature of our game…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc0533a94ff9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/section-9-lab/paid-apps-do-come-with-a-price-bc0533a94ff9">Paid apps, do come with a price …</a> was originally published in <a href="https://medium.com/section-9-lab">Section 9 Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abusing iOS url handlers on Messages]]></title>
            <link>https://medium.com/section-9-lab/abusing-ios-url-handlers-on-messages-96979e8b12f5?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/96979e8b12f5</guid>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Tue, 23 Sep 2014 16:23:51 GMT</pubDate>
            <atom:updated>2014-10-07T19:54:24.957Z</atom:updated>
            <content:encoded><![CDATA[<h2>Abusing iOS url handlers on Apple’s Messages</h2><blockquote><em>Exploiting iOS Chrome and FaceTime url-handlers to automate attacks on FaceTime calls. How to create a Social Engineering attack using known iOS issues and cartero.</em></blockquote><p><em>Work based on @</em><a href="https://twitter.com/neculaesei"><em>neculaesei</em></a><em> work on how to use iOS applications url handlers to make Phone calls on other applications, besides Messages. Update: Also apparently on some similar work presented by </em><a href="https://twitter.com/gepeto42">@gepeto</a>42 on BSidesLV 2014.</p><h3>Background</h3><p>As part of developing new and interesting ways of social engineering people, at Section9Labs we introduced a new Framework called <a href="http://section9labs.github.io/Cartero"><strong>Cartero</strong></a> — a simple multi-platform CLI modular social engineering Framework — that allows people to perform several attacks. Our last addition to the list of attacks is the<strong> IMessage</strong> command that allows Security Researchers to send massive amounts customized “templated” messages through Apple’s Messages automatically.</p><p>In addition to the command, we wanted to look for ways to exploit url-handlers that have always been considered a weak point in iOS — <strong>Gracias Ariel for the idea</strong> <strong>☺</strong>. We embarked on a quest to find an interesting attack vector as a proof of concept for our tool and to prove that weaponing Apple’s Messages was indeed useful not only to send spam.</p><h3>Research work</h3><p>The first url scheme tested was <strong>tel:// </strong>and quickly realized that things had been improved significantly lately on Messages and basic attacks were not working as expected. In addition, we found as part of our research an interesting post by @<a href="https://twitter.com/neculaesei">neculaesei</a> pointing out a resent 0-day vulnerability on a big amount of applications,. We immediately saw an opportunity to use this as a proof of concept, but sadly the author claimed that the attack was not working on Messages. “que cagada” ☹</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*bPLRyhFEOVLCC212ezC2zw.png" /><figcaption>safari correctly asks for asks confirmation before starting any call or FaceTime call</figcaption></figure><p>But hey, we are as we say “hard-headed” and given that he mentioned that he did not did extensive research into other apps, we said, why not, It is clearly that messages, will not work, but other apps most surely will have the vulnerability, so we raised the question: <em>is there a way to link the two and display a link to a user that will trigger the exploit ?</em>.</p><p><strong>MESSAGES → handler:// → APP → handler:// EXPLOITED_APP</strong></p><p>We began by sending test.html attachments with a known working payload but the Messages’ preview view will not render javascript correctly.After a few tries we decided to call it a FAILURE and tested our attack using a bridge or secondary app that will render and trigger the exploit.</p><p><strong>Our first guess ended up being the correct one</strong>. What application is massively installed on iOS, renders websites very well and has a complete set of url-handlers.<strong> Google Chrome ☺</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*b7fVWN3zMsKAqeTWzIooiQ.jpeg" /><figcaption>Original Image from → <a href="http://img.applesfera.com/2012/07/chromeios.jpg">http://img.applesfera.com/2012/07/chromeios.jpg</a></figcaption></figure><p>Google Chrome comes with an extensive list of url-handlers googlechrome:// , googlechromes:// , <em>googlechrome-x-callback://, etc</em></p><p>The first thing we tested were things such as:</p><p><strong><em>googlechrome://tel://1111</em></strong></p><p><strong><em>googlechrome://tel</em>%3A%2F%2F+1111</strong></p><p><strong><em>googlechrome-x-callback://x-callback-url/open/?x-source=Phone&amp;x-success=tel%3A%2F%2F%2B1111&amp;url=http%3A%2F%2Fwww.google.com</em></strong></p><p>but the all ended up in FAILURE ☹. Theywill be interpreted as <strong>tel//1111 </strong>and/or they will trigger a pop-up message that will require people to click and loose the purpose of an “automated” attack.</p><p>It also looked like we could launch attacks, by jumping through google-chrome and force other urls using x-success, but yet again, it required the user to click on a button, it could potentially work as a social engineering attack, but it involves more user interaction, in addition to a click.</p><p>Now, having family abroad, I actually use FaceTime more than the actual phone app itself, besides having grandfathered unlimited data plan on the phone, helps a LOT ☺ Anyhow, back to the point, We decided to test these attacks with <strong>facetime://</strong> and <strong>facetime-audio://</strong> and to my surprise they worked. “<em>vamos carajo!!!</em>”</p><p>This is not the greatest vulnerability given that there are not pay per use FaceTime numbers and criminals could not use this to steal money, but by all means it could be used to automatically launch video and audio to users with a single click and possible capture video and audio for a few seconds until users realize what has happened and prove a point and possibly automate screen captures on our end.</p><h3><strong>Proof of Concept attack:</strong></h3><p>Using the already documented attacks, we simply need a vulnerable site with a XSS or page construction capabilities, that would allow us to render the following code. Once a victim clicks on a link <a href="http://evilrovot.com/hack.html">hxxp://evilrovot.com/hack.html</a> the victim iOS device, will open safari because URLs automatically recognized by Safari and rendered, the site, will automatically click on a google chrome url handler.</p><p>step1.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*NXQPuf02fPvawgSkWcbwhg.png" /><figcaption>First URL that renders in safari and</figcaption></figure><p>Once the code above renders, will redirect us to Chrome if we have it installed and it land on the second page, which will execute the vulnerability on Chrome and it will automatically dial <strong>facetime://</strong> call without asking the user to confirm or deny.</p><p>step2.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*lSaPAY687M1tSqMvba4eMg.png" /><figcaption>Second URL that will render in Chrome</figcaption></figure><p><strong>Proof of Concept video</strong></p><p>The video below shows how a simple click on a message link will initialize the multiple jump attack and initialize a FaceTime call without any user interaction.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDKREPr2hQ04%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDKREPr2hQ04&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FDKREPr2hQ04%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/537aeea5b166d1a975f2e8cd811dcd7a/href">https://medium.com/media/537aeea5b166d1a975f2e8cd811dcd7a/href</a></iframe><p>In addition, this or any other url-handler issue can easily be weaponized and sent to hundred, thousands or millions of accounts using custom scripts or our own project Cartero with the <a href="http://section9labs.github.io/Cartero/#imessage">IMessage</a> command as it is shown on the shell snippet below:</p><pre>❯❯❯ ./cartero IMessage -d messages_accounts.json -b malicious_message.imsg</pre><p>Now, as we like to think, if we found these issues -<em>yes, more are coming</em>- and we can easily weaponize it to send it to that many people, most surely there has to be someone is already <strong>exploiting</strong> these bugs in the form of malware (Skype vulnerability a while back — <a href="http://software-security.sans.org/blog/2010/11/08/insecure-handling-url-schemes-apples-ios/">http://software-security.sans.org/blog/2010/11/08/insecure-handling-url-schemes-apples-ios/</a>) to perform calls to pay lines, to control, change or overwrite files or events, exploiting possible actual vulnerabilities on the code (i.e. overflows), redirect attacks from safari to a vulnerable app, etc. We have only scratched the surface of the URL handlers and we are sure there are many more documented and undocumented handlers waiting to be exploited.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/1*flad5j_24DOB1G7t-7bpcg.png" /><figcaption><strong>Skype automatically initiating a call on iOS after being invoked by a malicious website</strong></figcaption></figure><h3>Final thoughts</h3><p>Finally, we think this is not a critical finding on itself, but it does raises a broader issue flowing around mobile platforms on how trust boundaries are important when it comes to IPC —url-handlers — between apps. These should not trust input or external calls without due diligence and the necessary security checks. It also raises a lot of questions about how far can we take these types of attacks and what can we do using social engineering tools like Cartero and other url-handler issues out there yet to be found …</p><p><strong>Update: </strong>As of 9/22 Google published a new version — V<strong>ersion: 37.0.2062.60—</strong> of Google Chrome for iOS that contains the fixes for these vulnerability above reported. Anything before that is vulnerable, so it is highly recommended to update.</p><p><em>Sympathy for </em><strong><em>evil</em></strong><em>, the nature of our game…</em></p><h3><strong>Timeline</strong></h3><p>8/24 — Issue was reported to Google</p><p>8/27 — Expanded bug to add facetime-audio as well</p><p>8/27 — Both issues were accepted and tracked.</p><p>9/10 — Status update communication with team.</p><p>9/12 — Migrated to Chromium project.</p><p>9/12 — Issue fixed on Chromium open source project.</p><p>9/22 — Google Chrome for iOS update available</p><p>9/23 — Section9Labs makes issue public.</p><p>10/7 — Google makes vulnerability public CVE-2014–3187</p><p><strong>UPDATE: 10/7/1</strong> <a href="http://googlechromereleases.blogspot.com/2014/10/chrome-for-ios-update.html">http://googlechromereleases.blogspot.com/2014/10/chrome-for-ios-update.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96979e8b12f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/section-9-lab/abusing-ios-url-handlers-on-messages-96979e8b12f5">Abusing iOS url handlers on Messages</a> was originally published in <a href="https://medium.com/section-9-lab">Section 9 Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated LinkedIn Social Engineering Attacks]]></title>
            <link>https://medium.com/section-9-lab/automated-linkedin-social-engineering-attacks-1c88573c577e?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c88573c577e</guid>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Mon, 01 Sep 2014 22:39:16 GMT</pubDate>
            <atom:updated>2014-09-03T19:54:06.977Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Social Networks and Social Engineering were meant for each other. Nowadays, people willingly share their private information contact networks, updates, feelings, pictures and files through these networks, basically everything a social engineer perpetrator ever wanted …</blockquote><h3>Background</h3><p>Corporations perform penetration tests on their network, web applications, physical infrastructure in order to find and fix vulnerabilities. In the same, way for the last decade these institutions have also been testing their <em>workforce infrastructure</em> to get an idea how aware and prepared they are against social engineering attacks. Sadly, even though you can have the strongest technical security mechanism, it keeps on getting proved that “human stupidity” will bypass any and all protections given a good enough and believable ruse.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*Hiv7aJ98BeXmaTR-SUvc-w.jpeg" /><figcaption><a href="https://www.palfinger.com/usa/-/media/North%20America/Pictures/Career/palfingerna_career_yourwaytopalfinger_web.jpg?la=en-US&amp;mw=564">Original Image</a></figcaption></figure><p>In addition, in the past few years social networks have grown to be one of the strongest nodes on the internet, with sites like Facebook, LinkedIn and Google+ on the lead. These networks are a perpetrator wonderland for data and victims — LinkedIn being the perfect phishing place for corporate victims. Company employees connect to co-workers and friends and automatically generate phishing networks for attackers that want to target a specific <strong><em>corporate network.</em></strong> In addition, to updates it provides methods such as InMail, groups, search filters, among other features to weaponize attacks on a specific company or group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*AUlmlPfSJMOsXaZ-aZ5DYw.jpeg" /><figcaption><a href="http://stellarbluetechnologies.com/wp-content/uploads/2014/04/LinkedIn-Post-Pic.jpg">Original Image</a></figcaption></figure><p>Furthermore, if not attacking through Social Networks, these are still a great source for <strong>OSINT</strong>, allowing malicious people to obtain sensitive information about people, that they will be able to use on other on later stages of their attacks, but we will get into this techniques on a different post, to talk about some <a href="https://github.com/FreedomCoder/esearchy_mirai">tools</a> we created to do just that.</p><p>With all this information, security researchers and criminals find these a great land of opportunities. At <strong>Section9Labs </strong>we always want to bring the the most realistic attacks to our clients hence we been exploiting these vectors to offer Targeted Social Hacking services (TASH) to our clients and to expand research on these areas because we believe it is and will be a useful attack vector for years to come.</p><h3>Attacks</h3><p>Targeted Social Hacking, social network social engineering, or however people might call it, remain a very manual job within the Security Consulting arena, with the lack of open source tools capable of controlling accounts and tools capable of weaponizing these accounts.</p><h4>Account Creation</h4><p>First, accounts are needed, so an attacker or a consultant needs to create them by using manual or automated ways. Currently in order to do so, we either need to go through the process manually and create an account, buy them online and/or use some sort of automating script/tool capable of creating an account, usually through headless browsers such as watir, selenium or phantomjs — cough cough — <em>we will be releasing a new tool sometime later this year.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*RFUApxOaq3vdU8kPP7F1JQ.png" /><figcaption><a href="http://linkedin.com/">http://linkedin.com</a> default landing page</figcaption></figure><p>Once you have one or more accounts, you need to start populating them with connections. Depending on the target (corporate or individual) you will start populating your fake PERSONA with easy to trick people, usually sales contacts, recruiters, and other people that are not tech-savy and that depend on having a massive amount of contacts on their networks.</p><p>This will allow you to have a respectable amount of contacts to stop looking “<em>phishy</em>” for more security aware contacts that could easily target your impersonation at first but once you have a solid connection base and possibly other social networks linked to them, you might be able to trick most people.</p><p>Moving several step forward for the sake of this blog spot and who ever is reading it, let us assume we have a good fake profile waiting to be used.</p><h4>Attack vectors</h4><p>We have several ways of attacking a specific individual or group of individuals:</p><p><strong>a) Internal Messages or InMails </strong>Send internal phishing emails just like you would for normal phishing emails, with the advantage that corporations would not be able to filter these messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*3QhZoIPOM67WkYKhWXX1DQ.png" /><figcaption>New LinkedIn message window</figcaption></figure><p><strong>b)</strong> <strong>Status Updates</strong>, allows the attacker to distribute attacks through news and updates that could lead the user to a vulnerable or malicious website or resource that the perpetrator controls — this is useful when attacking without really caring who you target. These updates could potentially be shared by your contacts and the attack could get out of hand or expand out of control. Not recommended if performing a targeted attack against a small group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*Xjt942KZJsy32Bqqmlkwnw.png" /><figcaption>Random Status Update from one of our fake profiles.</figcaption></figure><p><strong>c)</strong> <strong>Group messages or updates, </strong>This is ideal to target a specific group. An attacker could join or create a new private group and have full control of the extend of his/her attack and contain it within the boundaries of the private group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*xgyv8iDDgk1pmd6oImnNTg.png" /><figcaption>LinkedIn groups</figcaption></figure><p><strong>d)</strong> <strong>Advertisement</strong> Potentially we could use internal LinkedIn ads with malicious content, but given this is a paid service we decided to stay away from it for the time being. Although, given it is paid, it does raises the believe of being truthful and possibly could become a successful attack vector.</p><p><strong>e) Job Postings </strong>Yet another possible way of reaching a desire audience, nevertheless, we have not use this attack vector and we will not discuss it further.</p><p>Having done these attacks manually several times we decided to start automating them through our newly created social engineering <strong>Cartero</strong> framework. Let us discuss what we currently have and what can be done with it.</p><h3>Cartero</h3><p>A robust Social Engineering Framework built around a CLI tool with multiple commands and operations. The framework is a direct result of work necessities at S9L on projects for our clients. Even though we use and know of very good projects out there, we were not able to find a fully customizable &amp; suitable solution capable of solving our specific requirements.</p><p>The framework is divided into commands that perform independent tasks (i.e. Mailer, Cloner, Listener, AdminConsole, LinkedIn, etc…). Each command is a fully independent application on itself, but still able to work as a full stack solution for social engineering attacks.</p><p>For example, if we wanted to clone gmail.com, we simply have to perform the following commands.</p><pre><strong>❯❯❯ </strong>cartero Cloner --url https://gmail.com --path /tmp --webserver gmail_com<br><strong>❯❯❯ </strong>cartero Listener --webserver /tmp/gmail_com -p 9090<br>Launching mongodb<br>Puma starting in single mode...<br>* Version 2.8.2 (ruby 2.1.1-p76), codename: Sir Edmund Percival Hillary<br>* Min threads: 4, max threads: 16<br>* Environment: production<br>* Listening on tcp://0.0.0.0:9090<br>Use Ctrl-C to stop</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVwpf7E3rfQmv51-mhM-qw.png" /><figcaption>malicious gmail.com website, which could contain different exploits and payloads.</figcaption></figure><h4>LinkedIn Command</h4><p>The LinkedIn command is the first Social Network addition to the <strong>Cartero</strong> Framework allowing attackers to use the application platform to send messages and attack users.</p><pre>❯❯❯ cartero LinkedIn<br>Usage: Cartero LinkedIn [options]<br> -D, --data [DATA_FILE] File containing template data sets<br> -S, --server [SERVER_NAME] Sets Email server to use<br> -s, --subject [MESSAGE_SUBJECT] Sets LinkedIn Message subject<br> -b, --body [FILE_PATH] Sets LinkedIn Message Body<br> -l, --list [CONNECTIONS|GROUPS] List json of (connections or groups)<br> --send [MESSAGE|GROUP_UPDATE]<br> Send one or more (message/s or group/s updates)<br> -o, --save [FILE_PATH] Sets LinkedIn Message Body<br><br>Common options:<br> -h, --help Show this message<br> --list-options Show list of available options</pre><p>The command does requires a developer API and oauth key on the attackers profile, but this can be easily obtained in</p><p><a href="https://www.linkedin.com/secure/developer">https://www.linkedin.com/secure/developer</a></p><p>and a new server templates can be created with the <strong>Servers</strong> command as it is shown on the snippet below:</p><pre><strong>❯❯❯ </strong>cartero Servers --add linkedin_xyz -T linkedin<br>Server linkedin_xyz Created. </pre><pre><strong>❯❯❯ </strong>cat ~/.cartero/servers/linkedin_xyz.jon</pre><pre>{<br>  &quot;<strong>name</strong>&quot;: &quot;linkedin_xyz&quot;,<br>  &quot;<strong>type</strong>&quot;: &quot;linkedin&quot;,<br>  &quot;<strong>options</strong>&quot;: {<br>    &quot;<strong>api_access</strong>&quot;: &quot;api_access_key&quot;,<br>    &quot;<strong>api_secret</strong>&quot;: &quot;api_secret_key&quot;,<br>    &quot;<strong>oauth_token</strong>&quot;: &quot;oauth_token_key&quot;,<br>    &quot;<strong>oauth_secret</strong>&quot;: &quot;oauth_secret_key&quot;<br>  }<br>}</pre><p>Once we have a “server” or “API LinkedIn User”, we can now simply refer to this configuration and use it— yes, I’m lazy. This was created this way so we can create as many configurations and programmatically script them out if necessary.</p><p>Technically speaking we only need to create one developer key for one user and obtain <em>oauth_token</em> and <em>oauth_secret</em> for the other users, but this does limit the extend of our attack and allow LinkedIn to quickly identify and delete the application API if found to be “malicious” in nature.</p><p>Going forward, as we mentioned we have multiple ways of interacting with users and performing social engineering attacks with our LinkedIn victims. Currently Cartero supports <strong>A</strong> “Messages” and <strong>C</strong> “groups”. <em>Note: We could easily implement status updates, but we have not done it yet. ☺</em></p><p>In order to send a message there are several ways of doing it, but the basic command requires a <strong>server </strong>[-S], a <strong>data</strong> <strong>set</strong> [-d], a <strong>message</strong> [-b or pass the “message” : “” on one or more data entity] and a <strong>subject</strong> [-s or pass it as “subject” : “” for one or more data entity]</p><p>The data sets can be downloaded using one of the LinkedIn options [—list connections|groups] depending on what you want to send messages or group_updates</p><pre><strong>❯❯❯ </strong>cartero LinkedIn -S linkedin --list connections -f linkedin_data.json<br>❯❯❯ cat linkedin_data.json<br> {<br> &quot;<strong>id</strong>&quot;: &quot;XXXXXXXXX&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;John&quot;,<br> &quot;<strong>last</strong>&quot;: &quot;Carter&quot;,<br> &quot;<strong>title</strong>&quot;: &quot;DevOps at Company X&quot;<br> },<br> {<br> &quot;<strong>id</strong>&quot;: &quot;YYYYYYYY&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;Chris&quot;,<br> &quot;<strong>last</strong>&quot;: &quot;Doe&quot;,<br> &quot;<strong>title</strong>&quot;: &quot;Security Engineer at Company X&quot;<br> },<br> {<br> &quot;<strong>id</strong>&quot;: &quot;ZZZZZZZZ&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;Javier&quot;,<br> &quot;<strong>last</strong>&quot;: &quot;Doe&quot;,<br> &quot;<strong>title</strong>&quot;: &quot;Engineer at Company X&quot;<br> },<br> {<br> &quot;<strong>id</strong>&quot;: &quot;WWWWWWWW&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;Horacio&quot;,<br> &quot;<strong>last</strong>&quot;: &quot;Ninguno&quot;,<br> &quot;<strong>title</strong>&quot;: &quot;Business Admin at Company X&quot;<br> },</pre><pre>❯❯❯ cartero LinkedIn -S linkedin --list groups -f linkedin_group.json<br>❯❯❯ cat linkedin_group.json </pre><pre>[<br> {<br> &quot;<strong>id</strong>&quot;: &quot;37658&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;Black Hat&quot;<br> },<br> {<br> &quot;<strong>id</strong>&quot;: &quot;1403037&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;Malware Virus and Exploits&quot;<br> },<br> {<br> &quot;<strong>id</strong>&quot;: &quot;762347&quot;,<br> &quot;<strong>name</strong>&quot;: &quot;Over The Wire&quot;<br> }<br>]</pre><p><strong>Messages — </strong>In order to send a message we use the [—send <strong>MESSAGE</strong> ] option and add the above mentioned data as was shown above. If a data set is not yet obtained the command provides a simple way of downloading the relevant information and storing it in a usable format.</p><pre>❯❯❯ cartero LinkedIn -S linkedin_xyz -D linkedin_data.json --send MESSAGE --body message_body.template --subject &quot;Testing Cartero&quot;</pre><p><strong>Group Updates — </strong>The concepts and requirements from the above mentioned command are required but the target changes using the [—send <strong><em>GROUP_UPDATE</em></strong> ] option, as it is shown on the snippet below:</p><pre><strong>❯❯❯ </strong>cartero LinkedIn -S linkedin_xyz -D linkedin_group.json --send GROUP_UPDATE --body body_message.template --subject &quot;Testing Cartero&quot;</pre><h3>Final Thoughts</h3><p>Social networks are a great place for social engineers and as the world gets more interconnected more and more attack vectors will show up and become mainstream ways of attacking people and corporations.</p><p>After using the tool we know there is a lot more work that could and should be done— <em>there is always is</em> ☺; but we felt it was important to share it given that it is an interesting starting point for automation in the social engineering arena.</p><p><em>Sympathy for </em><strong><em>evil</em></strong><em>, the nature of our game.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c88573c577e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/section-9-lab/automated-linkedin-social-engineering-attacks-1c88573c577e">Automated LinkedIn Social Engineering Attacks</a> was originally published in <a href="https://medium.com/section-9-lab">Section 9 Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Section9Labs in Medium]]></title>
            <link>https://medium.com/@S9Labs/section9labs-in-medium-ec898aaeb499?source=rss-32671d079e9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec898aaeb499</guid>
            <dc:creator><![CDATA[Section 9 Labs]]></dc:creator>
            <pubDate>Wed, 27 Aug 2014 22:12:26 GMT</pubDate>
            <atom:updated>2014-08-27T22:12:26.601Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sympathy for evil, the nature of our game.</h4><h3><em>Stories, Research and other things to come</em></h3><p>stay tuned — new things coming soon …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec898aaeb499" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>