<?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 Mohab Hassan on Medium]]></title>
        <description><![CDATA[Stories by Mohab Hassan on Medium]]></description>
        <link>https://medium.com/@mohabhassan0601?source=rss-d3b78f4a28ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IS3A1gCCJIUsLOfk</url>
            <title>Stories by Mohab Hassan on Medium</title>
            <link>https://medium.com/@mohabhassan0601?source=rss-d3b78f4a28ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:21:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohabhassan0601/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[I Almost Got Hacked Without Entering My Password — Here’s How Consent Phishing Works]]></title>
            <link>https://medium.com/@mohabhassan0601/i-almost-got-hacked-without-entering-my-password-heres-how-consent-phishing-works-7c5b9cd6df13?source=rss-d3b78f4a28ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c5b9cd6df13</guid>
            <category><![CDATA[oauth2]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <dc:creator><![CDATA[Mohab Hassan]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 22:54:58 GMT</pubDate>
            <atom:updated>2026-03-11T22:54:58.586Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days ago, I was reading about a cyberattack that genuinely surprised me. The attacker got full access to someone’s email account. They could read emails, send emails as the victim, access files, &amp; everything.</p><p>But here’s the strange part: <strong>the victim never gave away their password.</strong></p><p>No fake login page. No credential theft. The victim just clicked “Allow” on what looked like a normal app permission screen.</p><p>That attack is called <strong>Consent Phishing</strong>, and in this article I will break it down simply so you actually understand how it works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*H7k-L8cVE5DlEWef" /><figcaption>OAuth Consent Phishing</figcaption></figure><h3>First, Let’s Talk About OAuth</h3><p>Before we get to the attack, you need to understand OAuth because that’s what the attacker exploits.</p><p>You’ve seen OAuth hundreds of times. Every time you see a button like:</p><ul><li>“Sign in with Google”</li><li>“Continue with Microsoft”</li><li>“Login with Facebook”</li></ul><p>That’s OAuth in action.</p><p>OAuth was created to solve a real problem. In the old days, if you wanted an app to connect to your Gmail, the app would literally ask for your Gmail password. If the app gets hacked, your password is exposed.</p><p>OAuth fixes this. Instead of sharing your password, Google shows you a permissions screen that says something like:</p><blockquote>“This app wants to read your emails and access your contacts.”</blockquote><p>If you click <strong>Allow</strong>, Google gives the app a special token (not your password). The app uses that token to access your data.</p><p>Your password stays safe with Google. The app just gets limited access through the token.</p><p>This system is used everywhere — Microsoft 365, Google Workspace, GitHub, Slack, Dropbox. It’s how modern apps connect to each other.</p><h3>So What Is Consent Phishing?</h3><p>Consent phishing is when an attacker <strong>abuses the OAuth system</strong> to trick you into giving their malicious app access to your account.</p><p>The key thing to understand: <strong>the attacker never needs your password.</strong> They just need you to click “Allow” on a permissions screen.</p><p>Here’s how the attack actually works, step by step.</p><h3>The Attack, Step by Step</h3><p><strong>Step 1 — The attacker creates a fake app</strong></p><p>Anyone can register an app on Microsoft Azure or Google Cloud. It’s free and takes about 10 minutes. Microsoft and Google allow this because thousands of real companies need to build apps that connect to their services.</p><p>The attacker registers an app with an innocent name like “SharePoint Document Viewer” or “DocuSign” or “File Sync Tool”. They then set the permissions they want, things like:</p><ul><li>Read your emails</li><li>Send emails as you</li><li>Access your files</li><li>Read your contacts</li></ul><p><strong>Step 2 — They send a phishing email</strong></p><p>The attacker sends you an email. It looks completely normal — maybe it says a document needs your review, or your password is about to expire, or someone shared a file with you.</p><p>The email has a link. You click it.</p><p><strong>Step 3 — You see a real Microsoft (or Google) page</strong></p><p>This is the clever part. You’re not taken to a fake login page. You’re taken to a <strong>real, legitimate Microsoft permissions page</strong>. The URL is actually login.microsoftonline.com.</p><blockquote>“Permissions requested. This app would like to: Sign you in and read your profile.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*X6LfzdO4YsRyGcgE" /><figcaption>DocuSign — unverified” requesting permissions</figcaption></figure><p>Notice that word — <strong>unverified</strong>. Most people ignore it.</p><p><strong>Step 4 — You click “Allow”</strong></p><p>Because you see this type of screen almost every day at work, it doesn’t feel suspicious. You click Allow and expect to see a document.</p><p>Instead, you get an error message saying the file can’t be opened right now. You think it’s just a technical glitch and move on.</p><p><strong>Step 5 — The attacker is in</strong></p><p>The moment you clicked Allow, Microsoft sent an <strong>authorization code</strong> to the attacker’s server. The attacker exchanged that code for an <strong>access token</strong>.</p><p>Now he has persistent access to your account. No password needed. No MFA needed.</p><h3>Why MFA Doesn’t Protect You Here</h3><p>This is one of the most important points.</p><p>Multi-factor authentication (MFA) protects the <strong>login process</strong>. It adds a second verification step when someone tries to sign in with your credentials.</p><p>But in consent phishing, <strong>there is no login</strong>. You were already signed in to Microsoft or Google. The attacker never tried to sign in as you. They just got you to hand them a token through the normal OAuth system.</p><p>MFA has no way to detect this. The whole transaction looks completely legitimate.</p><h3>What the Attacker Can Do With That Token</h3><p>Depending on which permissions you approved, the attacker might be able to:</p><ul><li>Read all your emails</li><li>Send emails from your account (making you look like the sender)</li><li>Set up inbox rules to hide their tracks</li><li>Access files stored in OneDrive or SharePoint</li><li>Read your contacts list</li></ul><p>And if the attacker requested the offline_access scope? They get a <strong>refresh token</strong>, which means their access keeps refreshing automatically. They could maintain access for months — even if you change your password.</p><h3>Why Security Tools Miss This</h3><p>Traditional security tools are designed to catch things like:</p><ul><li>Malware attachments</li><li>Fake login pages</li><li>Suspicious login attempts from unknown locations</li></ul><p>But consent phishing looks completely clean to most security systems. The email might look legitimate. The OAuth permission screen is a real Microsoft page. The user authorized the access themselves.</p><p>From a security log perspective, it just looks like a user connected a new app to their account. Nothing unusual.</p><h3>A Real Example</h3><p>The screenshot in Image 2 is a real example of what this looks like. Someone receives a phishing email claiming to be from DocuSign. They click a link and see this Microsoft permissions screen.</p><p>Notice a few things:</p><ol><li>The app name is “DocuSign” but it says <strong>unverified</strong> in blue underneath</li><li>It says “This application is not published by Microsoft or your organization”</li><li>Microsoft even asks: “Does this app look suspicious? Report it here”</li></ol><p>Microsoft does add these warnings. But when you’re in a rush or used to clicking through permission screens, it’s easy to miss them.</p><h3>How to Protect Yourself (and Your Organization)</h3><p><strong>For regular users:</strong></p><p>Before you click Allow on any permissions screen, take 5 seconds to check:</p><ul><li>Is the publisher name exactly right (not a slight variation)?</li><li>Does it say “unverified”?</li><li>Are the permissions it’s asking for reasonable for what you’re trying to do? (A document viewer doesn’t need to send emails as you.)</li></ul><p>If something feels off, cancel and report it.</p><p><strong>For IT and security teams:</strong></p><ul><li><strong>Restrict OAuth app consent</strong> so users can’t approve apps without admin approval</li><li><strong>Audit existing app permissions</strong> check which third-party apps currently have access to email, especially Mail.Send and Mail.ReadWrite</li><li><strong>Watch for dangerous scopes</strong> in logs — offline_access combined with Mail.Send is a red flag</li><li><strong>Configure conditional access policies</strong> to limit app permissions to verified publishers only</li></ul><h3>The Main Takeaway</h3><p>Consent phishing is not about stealing your password. It’s about stealing your <strong>authorization</strong>.</p><p>The attacker uses the legitimate OAuth system — the same one that powers “Login with Google” to trick you into giving their malicious app a valid token.</p><p>No password stolen. No MFA bypass needed. Just one click on “Allow.”</p><p>That’s what makes it dangerous, and that’s why understanding it matters whether you are a security professional, an IT admin, or just someone trying to stay safe online.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c5b9cd6df13" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>