<?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 @thanhlocpanda on Medium]]></title>
        <description><![CDATA[Stories by @thanhlocpanda on Medium]]></description>
        <link>https://medium.com/@thanhloc.cybersec?source=rss-a2b278e656c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*8fJJyLuyr7ovd0zTnOBpAQ.png</url>
            <title>Stories by @thanhlocpanda on Medium</title>
            <link>https://medium.com/@thanhloc.cybersec?source=rss-a2b278e656c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 00:05:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thanhloc.cybersec/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[Be careful! Your company could be a victim from Email Phishing]]></title>
            <link>https://medium.com/@thanhloc.cybersec/be-careful-your-company-could-be-a-victim-from-email-phishing-7d6da4fb0e5d?source=rss-a2b278e656c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d6da4fb0e5d</guid>
            <category><![CDATA[email-spoofing]]></category>
            <category><![CDATA[emailphising]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[thanhlocpanda]]></category>
            <dc:creator><![CDATA[@thanhlocpanda]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 17:50:35 GMT</pubDate>
            <atom:updated>2019-11-04T01:52:35.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/425/0*3yVMws2JitYWFWUx.jpg" /><figcaption>Image Source: <a href="https://www.hungerford.tech/">https://www.hungerford.tech/</a></figcaption></figure><p>What would you do if you received an email from your superior asked to transfer money to his bank account or your bank asked to send your information for verification? One will not follow the email instruction, another one will. For those who followed the email, what if the the actual email sender is not your superior or bank? The answer is “You and your company are the victims of email phishing”.</p><p><strong>Email Phishing</strong></p><p>In fact, email phishing is just a way to trick users to follow the email instruction they receive. However, with the proper security awareness training, most users are warned about checking sender information before following with email requirements, but what if the sender information is also fake?</p><p>End user will say “It’s impossible. Although it can be performed by hacker, I believe I am protected well by my company or Gmail”. In this article, I will show you how easily you can perform an email phishing by my approach even though you don’t know any cyber security knowledge.</p><p><strong>Email Spoofing</strong></p><p>“Email spoofing is the forgery of an email <a href="https://whatis.techtarget.com/definition/header">header</a> so that the message appears to have originated from someone or somewhere other than the actual source. Email spoofing is a popular tactic used in <a href="https://searchsecurity.techtarget.com/definition/phishing">phishing</a> and <a href="https://searchsecurity.techtarget.com/definition/spam">spam</a> campaigns because people are more likely to open an email when they think it has been sent by a legitimate or familiar source.”</p><p>At this moment, I have found 2 approaches to spoof emails:</p><ol><li>Connect with telnet to the SMTP server then send the SMTP packet which changes the FROM and TO in the envelope.</li><li>Spoofing email via a Relay Server.</li></ol><p><strong>First approach — Spoofing email via SMTP Server (Without authentication)</strong></p><p>With the first approach, you have to find the open port of SMTP server and then if you are lucky more, you can send spoofed email by telnet or netcat if it does not require authentication.</p><p><em>*Example from: </em><a href="https://www.codetwo.com/">https://www.codetwo.com/</a></p><p>In the example below, user1@domain128.lab impersonates user3@domain128.lab and sends an email to user2@domain128.lab. After user1 found the IP and open port of SMTP Server, he could connect to the server and performs a spoofing email.</p><p>Telnet <strong>192.168.23.2</strong> 25</p><p><strong>HELO</strong> domain128.lab (connects to your domain)</p><p><strong>MAIL FROM</strong>: user3@domain128.lab (address of the user you want to impersonate)</p><p><strong>RCPT TO</strong>: user2@domain128.lab (your victim’s address)</p><p><strong>DATA</strong>: it enables you to specify subject and body of your email. Enter a full stop (<strong>.</strong>) in a new line to finish data input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/0*hyUXnyKj0cDpFm61.png" /><figcaption>Source: <a href="https://www.codetwo.com/">https://www.codetwo.com/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*qq0qRRrzvKwK2Zmq.png" /><figcaption>Source: <a href="https://www.codetwo.com/">https://www.codetwo.com/</a></figcaption></figure><p>However, the first approach is unlikely to be success. Most of the organizations restrict user to access ports on SMTP server. If SMTP server has the ports that you can access, you have to authenticate by your credentials and make sure the sender email mapped with your email before sending any email by command line. It is not easy to perform a spoofing email by this approach.</p><p><strong>Second approach — Spoofing email via Relay Server</strong></p><p>This approach can send spoofed emails in spite of the advanced spam filtering technology adopted by email service provides like Gmail, Yahoo etc.</p><p>A relay server is an <a href="https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP Server</a>, which is trusted by major companies as an authorized sender of the email. Henceforth, when you send an email using a relay server, the email service providers like Yahoo and Gmail blindly accept the emails and deliver it to the inbox of the recipient.</p><p>All we have to do is find a trusted SMTP server so as to send spoofed emails successfully. Usually, all the emails that are sent from web hosting providers are trusted and authorized.</p><p>You can use <a href="https://github.com/PHPMailer/PHPMailer">PHPMailer</a> to create a spoofed email and build a web application to send it from a web hosting.</p><p>I have tested some companies and almost of them easily can be phished with a spoofed email. I built a web application for spoofing email, you can demo a phishing email with your email company by <a href="http://thanhloc-sp00fm4il.000webhostapp.com/">http://thanhloc-sp00fm4il.000webhostapp.com</a> .As I mentioned, the following video will show you how easily you can perform a spoofing email.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dts9q2CWCO6w&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fts9q2CWCO6w&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a394013b7a44a2b5189c1519a263f7a/href">https://medium.com/media/3a394013b7a44a2b5189c1519a263f7a/href</a></iframe><p><strong>How to check if your company can be spoofed email.</strong></p><p>Most of the organizations can be a victim of spoofing email. I have checked several large ones, it appears that they are exposed to email phishing. The reason why allows you can spoof your company email by my web application is the weak configuration of SPF and DMARC records. You can check your email domain by a tool from <a href="https://github.com/BishopFox/spoofcheck">https://github.com/BishopFox/spoofcheck</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*7XpMvMFnm7qzh8SK.PNG" /></figure><p>If the result is “Spoofing possible for {your domain}&quot;, it means you can use my web application to spoof company email.</p><p><strong>Mitigation</strong></p><p>Your organization should deploy SPF or DKIM, DMARC policy to prevent email phishing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*H4s6mrmLM-ks5dmv.png" /></figure><p><em>*Thanks for Vu Thanh Phong help me to </em>proof read<em>.</em></p><p><strong>References:</strong></p><ul><li><a href="https://www.codetwo.com/admins-blog/how-to-prevent-internal-email-spoofing-in-exchange/">How to prevent internal email spoofing in Exchange</a></li><li><a href="https://github.com/BishopFox/spoofcheck/">BishopFox/spoofcheck</a></li><li><a href="https://security.stackexchange.com/questions/166751/how-a-spoofing-email-site-such-as-emkei-works">How a spoofing email site such as emkei works</a></li><li><a href="https://www.gohacking.com/send-spoofed-emails-anonymously/">How to Send Spoofed Emails Anonymously</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d6da4fb0e5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I hacked E-learn course — Flash exploitation.]]></title>
            <link>https://medium.com/@thanhloc.cybersec/how-i-hacked-e-learn-course-flash-exploitation-6599ad8ec07c?source=rss-a2b278e656c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6599ad8ec07c</guid>
            <category><![CDATA[exploitation]]></category>
            <category><![CDATA[decompile]]></category>
            <category><![CDATA[flash]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[elearn]]></category>
            <dc:creator><![CDATA[@thanhlocpanda]]></dc:creator>
            <pubDate>Thu, 10 Oct 2019 03:51:47 GMT</pubDate>
            <atom:updated>2019-10-10T08:19:34.456Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I hacked E-learn course — Flash exploitation.</h3><p>I am a member of cyber security team but I work at one of big four firms in Assurance aspect. On my firm, they force employee to do e-learn course, if you do not complete it, you&#39;ll be punished. The E-learn course is so boring, they give assurance’s knowledge which is not necessary for me. Finally I decided to hack it.</p><p>First of all, they used web application to perform the course and there is an exam at the end. I used Burpsuite to intercept the request and response. It’s so sad to recognize that Web application used flash to perform the course and I  could not read the javascript to find the question and answer keys.</p><p>There were many flash files, I was stuck to find and detect the flash file which contained question and answer keys. After a long time to analyze all files and I found no result with my disappointment, I found a file whose name was very suspicious — data.swf. I decided to check this file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0C9Wi6CTTX7YisFh5kVPGg.png" /><figcaption>data.swf file</figcaption></figure><p>I downloaded the flash file from Burpsuite then used <strong>JPEXS free flash decompiler</strong> to decompile the flash (<a href="https://www.free-decompiler.com/flash/">https://www.free-decompiler.com/flash/</a>). Finally, I found my dream, there were data whose format was XML contained the question. It was on file <strong>“data”</strong> on folder <strong>“script”</strong>. I formatted the data as XML standard to view then “bravo”, I have the question and answer keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*86ErdOEvBTI_xhesKHYnVQ.png" /><figcaption>Decompile flash</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JZg6Bg-6lOU9EwTaBCT68w.png" /><figcaption>XML data contain answer key</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOIx80xH0Mq_ns6TeiU6Zw.png" /><figcaption>answer keys after formatting the XML</figcaption></figure><p>After that E-learn course on my firm, I try this exploitation with another E-learn courses performed by flash. And bingo, It has the same situation. I try to hack the E-learn course on <a href="https://safeguardelearning.com/">https://safeguardelearning.com/</a>, and I easily to get the answer keys by this approach. I have sent an email for them about this vulnerability, however i did not receive any response from them. In general, I think many E-learn course performed by flash can be exploited by this approach. If you are lazy to complete your course — Try it — Good luck :))</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6599ad8ec07c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>