<?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 Bassem M Bazzoun on Medium]]></title>
        <description><![CDATA[Stories by Bassem M Bazzoun on Medium]]></description>
        <link>https://medium.com/@bazzounbassem?source=rss-62936289dba0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tfGg0NRU-emimYZ0RK4DqQ.jpeg</url>
            <title>Stories by Bassem M Bazzoun on Medium</title>
            <link>https://medium.com/@bazzounbassem?source=rss-62936289dba0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:17:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bazzounbassem/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[Could a Simple IDOR Vulnerability in Facebook Affects the Outcome of US Elections?]]></title>
            <link>https://medium.com/@bazzounbassem/could-a-simple-idor-vulnerability-in-facebook-affects-the-outcome-of-us-elections-c17bc5e12e30?source=rss-62936289dba0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c17bc5e12e30</guid>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[us-election-2024]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Bassem M Bazzoun]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 13:33:45 GMT</pubDate>
            <atom:updated>2024-10-31T13:33:45.160Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*3zPzkSpo-C13mI_uIc4LEw.png" /></figure><p>In this blog, I will discuss how a security vulnerability I discovered a year ago in Facebook/Meta could be used to affect the US election and how a simple IDOR vulnerability could have a major impact.</p><p>Before we start, let’s remember what happened in the 2016 US election and how Cambridge Analytica helped Donald Trump win.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*IX9xYq9mmZ6iDbsFStUZ2A.gif" /></figure><h3>How Cambridge Analytica Shaped Trump’s Victory in the 2016 Election?</h3><p>In the lead-up to the 2016 US presidential election, Cambridge Analytica which is a political consulting firm that specialized in data analysis and targeted advertising played a significant role in shaping Donald Trump’s campaign strategy. The firm collected data from millions of <strong>Facebook</strong> users, often without their consent, to build detailed psychological profiles. This information enabled them to create highly targeted advertising that appealed to specific voter segments, influencing their opinions and behaviors.</p><p>Cambridge Analytica utilized techniques like micro-targeting to deliver personalized messages on issues that resonated with individual voters, which many believe helped Trump gain crucial support in key battleground states.</p><p>For example, let’s consider a state in US where it’s data collected shows that most residents love playing basketball. Cambridge Analytica could then target those voters with ads featuring Trump playing basketball or discussing his support for the sport. This approach could help create a connection, making voters feel like they share an interest with him, which might influence them to consider supporting him in the election.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MmFwoIqlcsZIKdEw.jpg" /></figure><p>These strategies had a major impact, as they contributed to Trump’s narrow victories in critical states. In the aftermath, Facebook faced intense scrutiny over its data privacy practices, leading to congressional hearings where executives were questioned about the misuse of user data and the platform’s role in elections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N2lJBk6RIRBdjAce.jpg" /><figcaption>Mark Zuckerberg questioned by US senators in Congress regarding the Cambridge Analytica incident</figcaption></figure><h3>Could a Simple IDOR Vulnerability in Facebook Affects the Outcome of US Elections?</h3><p>About a year ago, I was testing on Facebook to find a security vulnerability to report it to their bug bounty program; when I came across the option “Liked Reels”, which allows users to view the reels they have liked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*lenr--5ikQfWjjlCXbH28w.png" /><figcaption>Liked Reels Section — Facebook App</figcaption></figure><p>This information is considered private and sensitive, as stated in the section “Liked reels are only visible to You”, meaning no one else should be able to see the videos you’ve liked. However, I discovered that the request responsible for fetching liked reels was vulnerable and could be exploited to retrieve all the liked reels of any Facebook user.</p><p>While liked reels are on public videos, querying all the reels liked by other users would typically be challenging without this vulnerability. For example, if someone wanted to view the liked reels of a specific user, they would generally have to check each uploaded reel on Facebook, making it nearly impossible. However, with this vulnerability, we can query all the liked reels of any user with just one request.</p><p>Liked reels, although public, are both valuable and sensitive. As mentioned earlier, locating liked reels for each user is difficult, so this method could be exploited by certain analytics attackers, similar to what Cambridge Analytica did.</p><p>Analytics companies, like Cambridge Analytica, actively seek out such information to target user’s interests on social media platforms and analyze their behavior. Accessing liked reels enables them to understand a victim’s preferences, helping them discern what users love or dislike and their areas of interest. This vulnerability could be exploited by malicious actors to run queries on a large list of Facebook IDs based on US states, revealing what residents in each state like.</p><p>So, suppose we targeted a state in the US and collected a large number of Facebook profile IDs from that area. By exploiting this vulnerability, we could gather all the liked reels from users in that state, providing us with data to analyze. We might discover that many users have a strong interest in food, particularly burgers, especially McDonald’s. With this information, we could create targeted campaigns that tap into the state’s love for McDonald’s, using ads and messages that highlight their favorite foods to resonate with those users. This approach could increase engagement and potentially influence their voting behavior by aligning with their interests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/0*YSmPzlHLdDLleLT8" /><figcaption><em>Donald Trump cooks, serves fries at McDonald’s in Pennsylvania during campaign stop — US Election 2024</em></figcaption></figure><p>In conclusion, sometimes a simple IDOR vulnerability can have a significant impact, <strong>potentially playing a role in deciding the president of the country</strong>. This shows the importance of understanding and addressing security vulnerabilities within major platforms like Facebook. As we’ve seen with Cambridge Analytica, the misuse of personal data can lead to targeted campaigns that sway public opinion and influence election outcomes.</p><h3>Technical Details</h3><p>This vulnerability was reported to the Meta Bug Bounty Program, and it has since been fixed, making it no longer reproducible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*Crf44fRzJvv-TipQ8q2oBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*dVN6GzECfzsa1-Fk4PmUKA.png" /></figure><blockquote>Querying All Liked Reels of any Facebook Users</blockquote><p>Using the attacker’s Facebook access token, send the below POST /graphql request to graph.facebook.com and manipulate the profile_id parameter to the target victim’s ID in order to query their liked reels:</p><pre>{<br>  &quot;variables&quot;: {<br>    &quot;params&quot;: {<br>      &quot;is_on_load_actions_supported&quot;: true,<br>      &quot;params&quot;: &quot;{params:{\&quot;server_params\&quot;:{\&quot;profile_id\&quot;:USER_VICTIM_ID}},}&quot;,<br>      &quot;bloks_versioning_id&quot;: &quot;7beecfbd585d44f595e55b724a4de3282abe233664e920de772d477dc082c369&quot;,<br>      &quot;app_id&quot;: &quot;com.bloks.www.bloks.fb.profile.reels.liked_reels&quot;<br>    },<br>    &quot;scale&quot;: &quot;2&quot;,<br>    &quot;nt_context&quot;: {<br>      &quot;styles_id&quot;: &quot;1610d0f6c47062027525f7606f43033e&quot;,<br>      &quot;using_white_navbar&quot;: true,<br>      &quot;pixel_ratio&quot;: 2,<br>      &quot;is_push_on&quot;: true,<br>      &quot;bloks_version&quot;: &quot;7beecfbd585d44f595e55b724a4de3282abe233664e920de772d477dc082c369&quot;<br>    }<br>  },<br>  &quot;client_doc_id&quot;: &quot;REDACTED&quot;<br>}</pre><p>The response will return a JSON object that contains the CDN URL of the liked reels. [https://scontent.fbey.…]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*lenr--5ikQfWjjlCXbH28w.png" /></figure><p>I hope you found this blog enjoyable! Thanks for reading!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*BHSnh8cAfI6Z_05e.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c17bc5e12e30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bypass Two-Factor Authentication of Facebook Accounts ($25,300)]]></title>
            <link>https://medium.com/@bazzounbassem/bypass-two-factor-authentication-of-facebook-accounts-25-300-7ae152d7836a?source=rss-62936289dba0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ae152d7836a</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Bassem M Bazzoun]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 16:13:42 GMT</pubDate>
            <atom:updated>2023-08-21T23:26:44.002Z</atom:updated>
            <content:encoded><![CDATA[<p>In this writeup, I will explain how I discovered a Two-Factor Authentication bypass in Facebook during Meta bug bounty Researchers conference in Seoul, South Korea, 2023 where I was awarded for $25,300 and ranked 2nd place on the conference Leaderboard. If you’re curious about the technical details, this writeup is for you!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GP1s9Y4J1MyyapskuSZssw.png" /></figure><blockquote><em>Meta Bug Bounty Researchers Conference</em></blockquote><p>Last June, I received an invitation from Meta (Formerly Facebook) to attend their annual researchers conference known as Meta Bug Bounty Researchers Conference (Formerly BountyCon). The most accomplished researchers of Meta bug bounty program, Google bug bounty program and other programs would receive an exclusive invitation to attend the conference; It includes a live hack, informative talks, and valuable networking opportunities with fellow researchers and the Meta security team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*-vcbp34KO9R0GBESme0X-Q.gif" /></figure><blockquote><em>How I found it?</em></blockquote><p>Three weeks before the conference, the pre-submission window opened up, giving us the opportunity to submit security vulnerabilities in advance. My primary aim was to concentrate on submitting critical bugs to Facebook. As a result, my focus was primarily on searching for vulnerabilities related to Account takeover, 2FA bypass, and Contact Point disclosure.</p><p><em>Before we dive in, it’s important to know that Facebook assumes the victim’s email address and password are set up for 2FA bypass. The purpose of 2FA bypass is to prevent hackers from gaining access to your account even if they manage to steal your credentials. They would encounter the two-factor authentication screen and would be unable to enter your account until they add the correct verification code that you receive. So, Let’s start!</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUqxVRm1IaaIGk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FUqxVRm1IaaIGk%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FUqxVRm1IaaIGk%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="268" frameborder="0" scrolling="no"><a href="https://medium.com/media/37952f7373a41ddd3dd79a23d2aefb44/href">https://medium.com/media/37952f7373a41ddd3dd79a23d2aefb44/href</a></iframe><p>I started digging into the login pages and recovery flows of both Facebook and Instagram. My exploration led me to the sign-up page of Instagram, where I observed the following behavior: When you sign up to create a new Instagram account and you enter the same phone number and password as that of an already existing account, Instagram permits you to log into the existing account instead of creating a new one.</p><p>To illustrate:</p><p>Consider you already have an instagram account with these credentials (e.g: phone number: +1123456 password “password123”)</p><p>If you try to create a new instagram account using +1123456 phone number and same password of your account; Instagram will let you logging into your existing account rather than creating a new one.</p><p>Well, so first thing will come into your mind now is what? You will try to create an Instagram account using the victim’s credentials to see if Instagram will let you login to the victim account instead of creating a new account and maybe without requiring a 2FA code. However, this approach will not work. The reason for this is that the behavior of letting you log in instead of creating a new account is tied to the specific device and network. In other words, it only works if you have already logged in from this device/network before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/0*Rwrv7B3pCk0IxJ8r" /></figure><p>After spending multiple days researching and testing these endpoints, It all started when I discovered a vulnerable enpoint on Instagram’s sign-up page that lacked proper rate limiting <strong><em>(This vulnerable endpoint was like a needle in the haystack)</em></strong>. This endpoint was responsible for creating a new Instagram account using a given phone number and verification code. By bruteforcing the verification code, I was able to create a new Instagram account linked to the target victim’s phone number. This will end up with a bounty of ~$3000 for confirming any number on Instagram since I still cannot bypass 2FA and instead just bypassing the phone number confirmation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/0*CFptwrQZrTFZIv_F.jpg" /></figure><p>So, I continued my research and tried to esclate it to 2FA bypass. After some investigation, I found myself within the <a href="https://www.facebook.com/help/943858526073065">Facebook account center</a>. I speculated that if I connected the newly created Instagram account with my Facebook account (both belonging to the attacker), the confirmed phone number from the Instagram account (the victim’s number) might be transferred to my Facebook account without asking to reverifying the phone number. Given that the phone number had already been confirmed on Instagram, I reasoned that this transfer could occur.</p><p>And yes, my idea turned out to be correct! Linking the Instagram account successfully transferred the phone number to the account center. Consequently, I could add the phone number to my Facebook account without being asked for a re-verification prompt. Adding the phone number to my Facebook account will remove the phone number from the victim’s account, which will disable the 2FA and … BOOM! Two Factor Authentication is disabled/removed and we can enter the victim account!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*YYY3Ck-vQWvKa4FelDPcDg.gif" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FX8omQqfFyeq1a%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FX8omQqfFyeq1a%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FX8omQqfFyeq1a%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/3ee0d7f5a9d6c03a23b839091941db87/href">https://medium.com/media/3ee0d7f5a9d6c03a23b839091941db87/href</a></iframe><p>I discovered the 2FA bypass at ~5:00 AM and woke up my brother (<a href="https://bugreader.com/kbazzoun"><em>Kassem Bazzoun</em></a>) to tell him about it since we had been discussing the need to escalate it to a 2FA bypass for the past few days; The excitement kept us awake until 9:00 AM. Then, I reported it to Facebook directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*K3M090aMZpGyp8XiSJCYvw.gif" /></figure><p>The below images will summarize everything and how the attack work:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*swhvh2GTSE25lpjt.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SKFJirz_qm3flg6fEvDCYg.png" /></figure><blockquote>Reproduction Steps:</blockquote><p>1- Send the verification code to the target victim phone number:</p><pre>POST /api/v1/accounts/send_signup_sms_code/ HTTP/2<br>Host: i.instagram.com<br>-other headers-<br><br>signed_body=SIGNATURE.{<br>  &quot;phone_id&quot;: &quot;redacted&quot;,<br>  &quot;phone_number&quot;: &quot;TARGET_PHONE_NUMBER&quot;,<br>  &quot;guid&quot;: &quot;redacted&quot;,<br>  &quot;device_id&quot;: &quot;redacted&quot;,<br>  &quot;android_build_type&quot;: &quot;release&quot;,<br>  &quot;waterfall_id&quot;: &quot;redacted&quot;<br>}</pre><p>2- Brute force the verification code that will create an Instagram account with the victim phone number</p><pre>POST /api/v1/accounts/create_validated/ HTTP/2<br>Host: i.instagram.com<br>---Other headers<br><br>signed_body=SIGNATURE.{<br>&quot;verification_code&quot;: &quot;CODE_TO_BRUTE_FORCE&quot;,<br>&quot;enc_password&quot;: &quot;ENCRYPTED_PASS&quot;,<br>&quot;phone_number&quot;: &quot;VICTIM_PHONE_NUMBER&quot;,<br>&quot;username&quot;: &quot;USERNAME_OF_THE_NEW_ACCOUNT_TO_CREATE&quot;,<br>&quot;first_name&quot;: &quot;&quot;,<br>----other params<br>}</pre><p>3- Go to <a href="https://accountscenter.facebook.com/meta_verified">https://accountscenter.facebook.com/</a> and link the instagram account created in step 2 with your Facebook account (“Add accounts”) which will transfer the phone number of the victim confirmed in step 2 to the account center “Personal details”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8Bi1U1CYdOcRKe55Skrwg.png" /></figure><p>4- Now, the victim phone number will show up in the “Personal Details” section; Click Personal details, and add the phone number to your Facebook account; Facebook will not ask to reverify the phone number and this step will remove the phone number from the victim Facebook account and therefore disabling the 2FA!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*voyLrXFbFa_V3zcbR0nQSw.png" /></figure><p>Facebook rewarded me for a bounty of 20,000 which is the <a href="https://www.facebook.com/whitehat/payout_guidelines/mfa_bypass">maximum payout for a 2FA bypass</a> + Hacker Plus Bonus + Conference Bonus. (Making the total bounty $25,300)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_u8bbRRJlFLJB1jGlMoG3A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0t_4-nBN-5QSBk1qFo1vIw.png" /></figure><p>I hope you enjoyed reading the writeup! If you are interested in reading about how I was able to delete any video/reel on Facebook feel free to check out the link below.</p><p><a href="https://bugreader.com/social/write-ups-general-delete-any-video-or-reel-on-facebook-11-250--100965">Delete any Video or Reel on Facebook (11,250$)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/0*G-KuT4Kvkkz8k5TZ" /></figure><p>The tools that I used: <a href="https://portswigger.net/burp/communitydownload"><em>Burp suite</em></a>, <a href="https://portswigger.net/bappstore/9abaa233088242e8be252cd4ff534988"><em>Turbo Intruder</em></a>, <a href="https://www.genymotion.com/"><em>Genymotio</em></a>n</p><p><strong>Linkedin: </strong><a href="https://www.linkedin.com/in/bassembazzoun/">https://linkedin.com/bassembazzoun</a></p><p><strong>For business inquiries:</strong> <a href="https://academy.semicolonlb.com/">https://academy.semicolonlb.com/</a></p><p><strong>Facebook: </strong><a href="https://www.facebook.com/bassemmbazzoun">https://www.facebook.com/bassemmbazzoun</a></p><p><strong>Instagram: </strong><a href="https://www.instagram.com/bassembazzoun/">https://www.instagram.com/bassembazzoun/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ae152d7836a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>