<?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 Kunal Agarwal on Medium]]></title>
        <description><![CDATA[Stories by Kunal Agarwal on Medium]]></description>
        <link>https://medium.com/@kunala?source=rss-a9a43ab43b06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*H3InHPl8kpyJx0bOfRCq7g.jpeg</url>
            <title>Stories by Kunal Agarwal on Medium</title>
            <link>https://medium.com/@kunala?source=rss-a9a43ab43b06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:58:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kunala/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[Interview: How to Become a CISO with Ty Sbano (Vercel)]]></title>
            <link>https://medium.com/dopesecurity/interview-how-to-become-a-ciso-with-ty-sbano-vercel-945f050dde65?source=rss-a9a43ab43b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/945f050dde65</guid>
            <category><![CDATA[network-security-engineer]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ciso]]></category>
            <category><![CDATA[security-engineering]]></category>
            <dc:creator><![CDATA[Kunal Agarwal]]></dc:creator>
            <pubDate>Mon, 18 Sep 2023 21:57:20 GMT</pubDate>
            <atom:updated>2023-09-18T21:57:20.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tBCoY1GNi9pLICvdzDUgXw.jpeg" /></figure><p>CYBERSECURITY started as an underground vibe — <em>cool,</em> but once upon a time it was home to those who just weren’t that social, kind of nerdy, and just needed an escape to feel at home at 3AM (like me!)</p><p>Today is different. It’s a critical business function, and <strong>core</strong> to keeping the company steady. It all falls to the Chief Information Security Officer (CISO) who creates the strategy to secure the organization from cyberattack. It overlaps with IT in many ways too.</p><p>I sat down with <strong>TY SBANO</strong> to get the scoop on how should someone become a CISO, and much more! (Full YouTube <a href="https://www.youtube.com/watch?v=hTsDo66CKiQ">here</a>)</p><h3>1: “Empathy is important to anything that we do in life.”</h3><p>Ty jumped into my car with the swagger of a college kid, donning a classic <strong>DOPE</strong> jacket. Even in the 20-odd years in cyber, he still gets his hands dirty when working at Vercel. I always jump into a rapid fire mode of questions, especially into something I know well 🤓</p><blockquote>So, Ty, what do you say is the biggest problem with cybersecurity products?</blockquote><p>“If you are more concerned about who’s going to buy your product rather than who should benefit from it, then you’re missing the mark,” he responded.</p><p>With the mass consumption of cyber products, there’s been a disconnect between the end-user and the person who’s building the product. Ultimately, the creator needs to understand the user’s world.</p><p>He asserts, “But if you’re not going to take their feedback seriously, if you’re not going to think about their use cases and you’re just building a product …. who’s going to buy it?”</p><p>In other words: <strong>put yourself into the shoes of the person who is going to be using the product you’re building.</strong></p><h3>2: “Do I actually want to be a CISO or do I want to grow my career?”</h3><p>We were almost stopped by the police, so I had to take the plunge quickly!</p><blockquote>So, Ty, why Vercel? And, how can someone become a CISO like you?</blockquote><p>Ty chuckled. “Why am I at this company? Because I want to make my community happier.” There’s a ton of organizations that depend on Vercel to host and deploy their front-ends &amp; other components, it’s a dream job to be helping build the security practices on this.</p><blockquote>Okay, how should someone become a CISO?</blockquote><p>“First, I’d question their sanity,” he says, “Do I actually want to be a CISO or do I want to grow my career?” It’s two very different things, and can be a very stressful to jump into these roles! You can have career growth without necessarily trying to climb the ladder too.</p><h4>Ty’s top 3 recommendations:</h4><ol><li>Get Educated: get the certifications or education around cybersecurity whether it’s individually or through a program</li><li>Work: put in the work and grind to understand how would you build a team or implement a tool or build functions</li><li>Get Detailed: understanding is different than managing.</li></ol><h3>3: “Understand your crown jewels”</h3><p>We came close to finishing off, so I wanted to get some special knowledge from Ty on actually *being* a CISO</p><blockquote>If you became this CISO, what would you do next?</blockquote><p>“Ask yourself the questions,” he responded, “And, understand:”</p><ol><li>What are your crown jewels?</li><li>What’s the threat model?</li><li>Where are your secrets?</li><li>What would happen if something is compromised?</li></ol><p>etc.</p><p>“Step zero to security hygiene is making sure single-sign on is rolled out as effectively as possible,” Ty said. “Then, understand what your assets are and manage them.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GRECZzA951uC5BNOGaVxDA.jpeg" /></figure><p>Ty’s approach is about identifying business risks first, only then propose solutions. It needs to be pragmatic. Choose products that not only solve your security issues, but also align with your company’s budget, scale, and future goals.</p><p>And, that’s all folks! Give it a watch!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FhTsDo66CKiQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhTsDo66CKiQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FhTsDo66CKiQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/145db0c5ef8d3f8430b3a01fe9936428/href">https://medium.com/media/145db0c5ef8d3f8430b3a01fe9936428/href</a></iframe><p>— kunala</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945f050dde65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dopesecurity/interview-how-to-become-a-ciso-with-ty-sbano-vercel-945f050dde65">Interview: How to Become a CISO with Ty Sbano (Vercel)</a> was originally published in <a href="https://medium.com/dopesecurity">dope.security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-time Policy Updates for Secure Web Gateway ]]></title>
            <link>https://medium.com/dopesecurity/real-time-policy-updates-for-secure-web-gateway-fd91011c9f61?source=rss-a9a43ab43b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd91011c9f61</guid>
            <category><![CDATA[urlfiltering]]></category>
            <category><![CDATA[secure-web-gateway]]></category>
            <category><![CDATA[swg]]></category>
            <category><![CDATA[sase]]></category>
            <dc:creator><![CDATA[Kunal Agarwal]]></dc:creator>
            <pubDate>Wed, 26 Jul 2023 21:03:15 GMT</pubDate>
            <atom:updated>2023-07-27T02:13:24.455Z</atom:updated>
            <content:encoded><![CDATA[<h3>Real-Time Policy Updates 🤩</h3><h4>AKA don’t wait an hour to update your policy anymore!</h4><p><em>If</em> you’ve edited a policy on a “legacy” secure web gateway (or most security products) before, I’m sure you have suffered the pain:</p><ol><li><strong>Trying</strong> to edit something (where each page takes 10 seconds to load)</li><li><strong>Hitting</strong> save (then waiting 10 seconds for it to finally save)</li><li><strong>Waiting</strong> ~1 hour while the change “propagates”</li></ol><blockquote>Yeah, it’s the worst. The UX is 🤮. But, <strong>&gt;&gt; why &lt;&lt; </strong>does it take so long?</blockquote><h4>“Do things not because they’re easy, but because they’re hard.”</h4><p>Every cyber product has a console to configure things and see whats going on, and the workers — could be endpoints, or hardware boxes, or similar. Naturally, the two entities have to get updates from one another.</p><p>So, when developing the product, you have two options:</p><ol><li>Polling every 30 minutes (old school ’90s approach)</li><li>Pushing a policy down (like a push notification)</li></ol><p>Let’s take a closer look.</p><h3>1. Polling for a policy (what everyone typically does)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*suDpF3RGYxQfjyulFBNkMw.jpeg" /><figcaption><strong>Exhibit A.</strong> This is why it’s typically so slow</figcaption></figure><p>Seeing this diagram, you’ll notice this is the easiest way to implement a policy update mechanism. Have your legacy SWG poll the API every hour, and it’ll grab all of the latest and greatest configuration from the management console.</p><p>The downside? It takes a lot of ~<strong><em>time~</em></strong> before changes take effect!</p><h3>2. Pushing a policy — the <strong><em>dope</em></strong> way</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*guzkBPbykw2lsh9oqZSayw.jpeg" /><figcaption><strong>Exhibit B.</strong> This is like a push notification on your iPhone</figcaption></figure><p>Now, to make the admin’s life easier, you have to do a lot more work: push notifications. Honestly, it’s bread &amp; butter in the consumer world, but an exquisite luxury (for some reason) in cybersecurity.</p><blockquote>Could you imagine if you didn’t have push notifications for messages or email or some other app?</blockquote><p>Of course, at dope.security, we had to do this <strong>right</strong>. So, we used off-the-shelf <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html">AWS WebSockets</a> to make our life easier. By spending the time on this, we achieved a real-time policy update. Point, click, and you’re done!</p><p>See the real-time for yourself:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*iNEuQs9N7mO5m4U2G7290A.gif" /><figcaption>This is not sped up, try it for yourself, it actually is that fast.</figcaption></figure><p>I feel weird talking about features that are literally the bare minimum of a good product. But, it never surprises me that most cybersecurity PMs don’t care to prioritize these small little things.</p><p>And it’s these small little things that make me most proud of <a href="https://dope.security/">dope.security</a>. We’re pretty much the only cybersecurity company that offers an instant free trial. All you need is a Google or Microsoft company account.</p><p>Thanks!</p><p>— kunala</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd91011c9f61" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dopesecurity/real-time-policy-updates-for-secure-web-gateway-fd91011c9f61">Real-time Policy Updates for Secure Web Gateway 🤩</a> was originally published in <a href="https://medium.com/dopesecurity">dope.security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blocking Personal Gmail/Hotmail/Outlook at a company]]></title>
            <link>https://medium.com/dopesecurity/blocking-personal-gmail-hotmail-outlook-at-a-company-3fcff05d7aff?source=rss-a9a43ab43b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fcff05d7aff</guid>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Kunal Agarwal]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 18:16:11 GMT</pubDate>
            <atom:updated>2022-12-22T18:16:11.487Z</atom:updated>
            <content:encoded><![CDATA[<p>THIS is probably one of the simplest use-cases you can imagine for an organization. Imagine you’ve given out 300, 1000, or even 10,000 laptops, and now, all of your employees can access their personal Gmail on the work laptop.</p><blockquote>It sounds “fine”. What’s the big deal, kunala?</blockquote><p>Well, it is so simple for a user to take a bunch of PDFs, Powerpoints, and Word docs, and upload them to their personal Google Drive, or email it to themselves.</p><p><strong>What would you do? You’d never know someone is doing this!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*4dR9GNIqMSbXhCy49ev_SA.png" /><figcaption>Oops, let me just go ahead and get over to that personal Google Drive.</figcaption></figure><p>I’ve seen this happen <strong>tons</strong> of times. You take a few documents over to your next company. It might be harmless (maybe personal items), but it could be architecture documents, emails, etc! So, how can we stop it?</p><p>Be forewarned, this is typically super hard to do. You have to go and buy some CASB, some SWG, read a terrible user manual, pay a ton of money, and maybe get it to work after months of hard work.</p><h4>What if we could do this in 3 clicks?</h4><h3>Part 1 — Seems interesting, how does it work under the hood?</h3><p>Service providers (Google Workspace, Microsoft 365, slack, etc.) have documented mechanisms to perform this kind of cloud application control.</p><p>For example, Google has an attribute that must be injected into the HTTP headers, called <em>X-GoogApps-Allowed-Domains</em>. Microsoft has a different one, called <em>Restrict-Access-To-Tenants.</em></p><pre>HTTP Methods (GET / POST etc)<br>Target Injection URLs: *.google.com<br><br>Header{X-GoogApps-Allowed-Domains} =&gt; dope.security, kunalagarwal.com<br><br>## Only *@dope.security, or *@kunalagarwal.com will work</pre><p>Injecting content into an encrypted SSL stream requires a <strong>Proxy</strong> and <strong>SSL Inspection — </strong>this is typically referred to as a <em>Secure Web Gateway (SWG)</em>. So all you have to do is pop open SSL, inject the headers (<em>example above</em>), and bingo-bongo you are blocking personal email! Yet, your corporate one, <strong>still works!</strong></p><blockquote>Blargh, now how should I do all this?</blockquote><p>Well, maybe it is not so straightforward… there’s the SSL inspection, key management, all the devices have to be consistent, there’s a policy, maybe some groups of users need exceptions…</p><h4>If only there was something that could do all of this for you ♥</h4><h3>Part 2— dope.security, the fly direct swg</h3><p>It’s such an important security control, so we had to make it super easy to do without any knowledge about the underlying technical mechanism. That plus no months of back and forth and negotiations with some old, legacy cyber security company.</p><h4>You can do-it-yourself in 2 min.</h4><p>That’s because: dope.security <a href="https://dope.security/"><strong>*is*</strong></a> a proxy and does SSL inspection, but rather than doing it in a remote datacenter (a stopover), you do it directly on your device via an agent that is installed on all of your employee’s devices. The end result is that web traffic is decrypted to perform URL filtering, anti-malware, and cloud app controls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWFmvomcwpDABN3WVM1_pg.png" /><figcaption>This is the cloud console that lets you configure it. Hope you like the dark theme ;-)</figcaption></figure><p>So, once you’ve installed the endpoint agent:</p><ol><li>Choose the cloud app control, Google or Microsoft (or another one)</li><li>Type in the domains you want to allow (maybe accenture.com)</li><li>Decide if consumer login (gmail.com, live.com, outlook.com, hotmail.com) is <strong>ON </strong>or<strong> OFF</strong></li></ol><p>Hit save.</p><h4>That’s it! How dope is that?</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F783477359%3Fh%3D3bcf58cb57%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F783477359&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1572966192-69b6c17baf02462e4fffdb8005f46dd2d46d74b6dbae6a547af2ba46591e5116-d_960&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1080" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/5653420d9a87cca5234f671ddffd2898/href">https://medium.com/media/5653420d9a87cca5234f671ddffd2898/href</a></iframe><p>Building cybersecurity products at places like Symantec and Forcepoint taught me so many things. But, I could never get it out of my head on how complex it ended up being for the administrator (customer). That’s why as you can see above, it’s <em>a lot</em> easier.</p><p>You can try it for yourself in seconds on <a href="https://dope.security/">dope.security</a>. We’re pretty much the only cybersecurity company that offers an instant free trial. All you need is a Google or Microsoft company account.</p><p>Have fun!</p><p>— kunala</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fcff05d7aff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dopesecurity/blocking-personal-gmail-hotmail-outlook-at-a-company-3fcff05d7aff">Blocking Personal Gmail/Hotmail/Outlook at a company</a> was originally published in <a href="https://medium.com/dopesecurity">dope.security</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I hacked Dil Mil (Indian dating app) to expose a user’s exact location]]></title>
            <link>https://medium.com/@kunala/how-i-hacked-dil-mil-indian-dating-app-to-expose-a-users-exact-location-3eb09bfc3fcd?source=rss-a9a43ab43b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/3eb09bfc3fcd</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[dating-app]]></category>
            <category><![CDATA[kunal-agarwal]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Kunal Agarwal]]></dc:creator>
            <pubDate>Thu, 09 Apr 2020 05:47:12 GMT</pubDate>
            <atom:updated>2020-04-09T05:51:25.884Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aKp61hrDa6-RBMU_jnn_nA.jpeg" /></figure><p><strong>FROM </strong>a very young age, I always liked computers. I started off with piracy, Gameboy emulators, Xbox hacking, and moved to the more ‘hard’ stuff — malware, botnets, financial stuff — I even contributed code to PopcornTime, our favorite Netflix piracy app! But, that life was behind me… until I recently came upon this wonderful app <strong>Dil Mil </strong>aka Tinder for South Asians.</p><h3>Dil Mil <strong>fast-tracks you </strong>to marriage (shaadi).</h3><p>I know five people who have gotten engaged on it in the last year!</p><p>I am a bit of a hopeless romantic and old-fashioned, so I am more tuned to that “love at first sight”... plus, there are no aliens on dating apps. <strong><em>But</em></strong>, I decided to see wsup, and take a proper look myself.</p><blockquote>What could be the worst that could happen?!</blockquote><p><em>&gt; </em><strong><em>The vulnerabilities discussed below have been fixed</em></strong><em> in collaboration with Dil Mil engineer Jeremiah. Their CEO, KJ Dhaliwal, is a very kind man and has helped make a ton of </em><strong><em>happily ever afters</em></strong><em> — I am honored to help him and users safely find love.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6YVdqYdRL3ksAsxxyT5wrg.jpeg" /><figcaption>Exhibit A. Cold Kunala looking for alien (not human)</figcaption></figure><p><strong>IF YOU HAVE </strong>never used online dating before, it is sort of like an arranged marriage. Your parents build a ‘bio-data’ or resume with pictures. See below:</p><pre># |      Arranged Marriage       |          Dil Mil           |<br># |------------------------------|----------------------------|<br># | 1. Mom makes biodata         | Setup profile on app       |<br># | 2. Sent to aunties           | Use app to search profiles |<br># | 3. Put into Yes or No pile   | Swipe right                |<br># | 4. Meet human                | Meet human                 |</pre><p>And, let me tell you — this app is hot. Even the aunties are talking about it! The primary basis for its popularity in the US is that most dating apps do not allow ethnicity filtering. Instead, Dil Mil has carved out a niche to empower humans in quickly finding mates of South Asian descent.</p><h4>Alright Kunal, let’s get to the point.</h4><p>Well, the truth is that many of these apps these days (Houseparty, Zoom too…) are built for features and delivery. Security and privacy are not the top concern, and it is the responsibility of individual developers to practice secure code.</p><p>Dil Mil is not different here. It collects a ton of personal information about you and references it into swipable profiles for potential matches. I decided to explore two primary areas:</p><ol><li>Is it possible to perpetually be the top profile on Dil Mil</li><li>How much can I know about a potential match?</li></ol><h3>The Potential Match (Stalker Status)</h3><p>It’s helpful to think of Dil Mil as a front-end that prettifies data. As you interact with the app, the app downloads more data and shows it to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LkxqIXx3-BCWdyJAU5ya_A.jpeg" /><figcaption>Mobile App Architecture</figcaption></figure><p>It’s pretty evident when you open it for the first time. It’ll make a request to the cloud services, then pull down all of the latest information about you as well as related images. This is how most mobile apps and modern websites work.</p><p>These APIs (Application Programming Interfaces) are incredibly useful and are the basis for machine to machine communication.</p><h4>Let’s get some matches!</h4><p>Sadly, I had no matches in my profile to begin with. (Honestly, I doubt I will find anyone after this blog)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ZGzrYixWfcSQa5d_aYxSVg.jpeg" /><figcaption>No matches :-(</figcaption></figure><p>Lucky for us, Dil Mil has a handy dandy feature called <em>boosts </em>that allow a user to become the top profile on the app for an hour or so.</p><p>Naturally, applications do not expose <strong>everything </strong>the APIs return — only what is needed for functionality. However, getting insight into the actual API communication can be straightforward; I like to use a tool called Charles Proxy.</p><p>Proxies are used to direct traffic through a specific pivot point. In this case, the proxy was present on my laptop so that I could tamper and view all communication between the application and the cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOfEfiSwPgi_K5YOWliA4A.png" /><figcaption>Screenshot from my Charles Proxy session. You can see all of the Kunal data including my email.</figcaption></figure><p>Through some clever scripting and tampering the data received from the APIs — I got several of these <em>boosts </em>for free 🥳🥳🥳</p><p>Success! Within a couple of hours, we can see the matches start rolling in:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FXDLQrCdZOM0xOEgSyB%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FXDLQrCdZOM0xOEgSyB&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FXDLQrCdZOM0xOEgSyB%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="139" frameborder="0" scrolling="no"><a href="https://medium.com/media/78edbbcbd240b92055421356b73aa006/href">https://medium.com/media/78edbbcbd240b92055421356b73aa006/href</a></iframe><h4>Okay, but what about the exact location of the humans?</h4><p>The first phase of ‘hacking’ or penetration testing starts with reconnaissance. Let’s take a look at the API calls that the Dil Mil app uses to grab matches and potential matches:</p><pre>$ GET /get_matches_sorted # return all confirmed matches<br>$ GET /get_potential_matches # return all swipe left/right potential</pre><pre>{<br> &quot;guid&quot;: &quot;77e4dd94-4a8f-4447-84fe-32b46ad8b65f&quot;,<br> &quot;client&quot;: &quot;ios_1908151600&quot;,<br> &quot;skip&quot;: 0,<br> &quot;count&quot;: 25,<br> &quot;user&quot;: &quot;U.NCOUPETGOGGEAWTGFU&quot;,<br> &quot;excludeIds&quot;: [&quot;&quot;]<br>}</pre><p>I started to delve deeper into the API responses returned with all of my potential matches, things got quite scary. It contained a treasure trove of data on each of the individuals ranging from necessary information like name and city, to some more dangerous items… Now remember — these are people I <strong>have not</strong> <strong>matched with yet</strong>.</p><blockquote>This means that this user didn’t consent to me or even see my profile!</blockquote><p>They are only folks eligible to be swiped left/right.</p><p>Example 1: <strong>Exposed birthdate</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*3UVxGH05S9HgTeqhbOvlnA.png" /></figure><p>Example 2: Algorithms for Matching</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*qRJ5Nkrbh8ox4gQQqM8vNQ.png" /></figure><blockquote>LOL, apparently, they cut you off from matching with folks if you are not high enough on the hotness scale. 😂 Specifically for the chut-boi’s (chutiya + fuckboi)</blockquote><p>Example 3: Exposed Facebook, Instagram and <strong>Location</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ie8R6hUk0UKU7BVrCM1vrQ.jpeg" /><figcaption>Exp0sed Facebook ID, Instagram Handle, Latitude and Longitude</figcaption></figure><p><strong>This is scary!</strong> Imagine your exact location being accessible to an end-user who (a) you have not matched with, and (b) you don’t even know!</p><p>The issue boils down to latitude and longitude being lifted directly from the phone up to 13 digits of precision. Out of the ten I checked, many were at residential locations like home, or dorms at school. You could even see what room in the home they were at!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vtCfXWlNXwapGlzZN0PWkA.png" /><figcaption>Except this person who was at In-N-Out Burger</figcaption></figure><p>Thank god I am not a stalker…</p><h3>The Fix</h3><p>Ethical hacking always has a happy ending. I spoke with a smart Dil Mil engineer, Jeremiah, who was able to quickly remedy the issue in early October by truncating the latitude and longitude to two digits. He pushed to production within a couple days of me reporting the issue. Sincere gratitude to him.</p><p>I verified the fix from my end as well.</p><h3>The Lesson</h3><p>Building an app or start-up isn’t easy, but we absolutely have to respect the users who make the product big. It was great that Dil Mil fixed this as fast as they did, and I hope that developers continue to improve their security and preserve consumer privacy hygiene.</p><p>California recently launched the California Consumer Privacy Act (CCPA) which grants strong privacy rights to consumers and how company’s are using our data. This has had a ripple effect that raises consumer rights around the world. You might have seen the opt-out messages everywhere on the web.</p><p>I hope you learned something new today! Keep smiling and have a wonderful day 😀</p><p>— Kunal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3eb09bfc3fcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[juvenile delinquent: the official guide on how to hack schoolloop]]></title>
            <link>https://medium.com/@kunala/juvenile-delinquent-the-official-guide-on-how-to-hack-schoolloop-8540230f6bc1?source=rss-a9a43ab43b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/8540230f6bc1</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[schoolloop]]></category>
            <dc:creator><![CDATA[Kunal Agarwal]]></dc:creator>
            <pubDate>Tue, 16 Jun 2015 06:28:16 GMT</pubDate>
            <atom:updated>2015-06-16T06:50:42.907Z</atom:updated>
            <content:encoded><![CDATA[<p>by kunal agarwal</p><p><strong>FROM </strong>a very young age, I had always liked to tinker. <em>understand</em>, <strong><em>exploit</em></strong>, <em>reward</em>, <em>repeat</em>.</p><p>Most of the time this meant things like:</p><ul><li><strong>modding</strong> Halo to always win</li><li><strong>pirating</strong> movies back in 2001</li><li><strong>sell</strong> pirated GameBoy games on floppy disks in second grade (20$ / each)</li></ul><h4>And it gave me the most awesome high.</h4><p><strong>BUT WHEN</strong> I was fifteen years old, I took things to a bit of a new level. Rules and barriers were made to jump around, and the natural next step was to take a look at this shiny new toy founded, &amp; unveiled, at Evergreen Valley High School.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vbX0xmj_1amXjIMwHLDjoA.png" /><figcaption>schoolloop circa 2007.</figcaption></figure><p>I’m sure this is a familiar page to most of you.</p><p>This became the engine of almost a thousand schools by my third year in high school. For those of you unfamiliar with Schoolloop, it is a grading, homework/agenda website. It even <strong>pushes grades downstream </strong>to SASI — Schools Administrative Student Information systems, where your attendance, class selection, transcripts, etc were generated.</p><p>Basically: Your grade on Schoolloop becomes the grade on your transcript. It was a very innovative and inspiring concept, and revolutionized a lot of a schools’ web presence in this technology centric world we know today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WWkRzEAThjYFXx8xM0_lPw.png" /><figcaption>My Schoolloop Page</figcaption></figure><h4>Alright Kunal, let’s get to the point.</h4><p>The truth is… Schoolloop was (<em>&amp; still is</em>) <strong>fucked</strong>. The amount of vulnerabilities on this site would make Sony look like an impenetrable fortress. It was without a doubt the <strong>least secured website</strong> for the amount of personal information on it.</p><p>Exactly six years ago, I decided to use Schoolloop as a real-world website for learning about network security. A lot happened after this, and unfortunately, I couldn’t speak about it until now when my lawyer okayed me because of the statute of limitations.</p><p>So, I’ve eloquently summarized my experience and what I learned in this article, and without further ado, introducing:</p><h3>1. The Vulnerability Disclosure</h3><p>Everything is simple when you’ve seen the solution, so let’s start with the problem. A user gets a login screen and they’re essentially stuck in front of a security guard; that is, unless you know the username and password. So how does he get into an account that doesn’t belong to him?</p><p>That would depend on how smart the security guard at the login screen is.</p><h4>Option 1: Steal another User</h4><p>There is a concept of remote administration trojans. These are programs that run on a victim’s machine and allow you to do some crazy stuff (Activate Webcam, Keystroke Logging, Upload Files etc)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*kaGtHd1F9bt9d105NviIHw.gif" /><figcaption>This is a popular one I checked out in 2006.</figcaption></figure><p>Naturally, these programs have to be ingested and executed on the victim’s machine. Getting someone to run this secretly is quite bold. It is a direct violation of someone’s privacy and quite personal for sure. You would use the trojan to record keystrokes. Every key you tap on your computer will be logged and uploaded back to the attacker.</p><p>The result is the username and password coming back to you the next time a victim logs in. This can be adapted in many ways to trick the victim to running the program.</p><blockquote>Hi, here is the pdf of my homework assignment, please open it. Oh it doesn’t work? Hm, that’s weird. Let me send it again.</blockquote><p>I didn’t really go down this route.</p><h4>Option 2: Sneak past the gatekeeper</h4><p>Alternatively, we have to see how smart this gatekeeper really is. As I mentioned earlier, there are soooooo many vulnerabilities past and present, but we will only go over those that are <strong>for sure</strong> patched/non-existant…</p><p>At least, I would hope.</p><p><strong>Method 1</strong>: Kunal’s <em>auto_login </em>Cookie Manipulation Privilege Escalation</p><p>So this one was my personal favorite, because it’s relatively simple to understand.</p><ul><li>Kunal’s <em>(It is my Discovery)</em></li><li>auto_login <em>(cookie we will fuck with)</em></li><li>privilege escalation <em>(access </em><strong><em>any</em></strong><em> user account)</em></li></ul><p>So just a refresher: ANY website you access on the web formulates a series of cookies on your local machine. These cookies contain parameters that the website reads and decides things about a user (usually the session). In Schoolloops case:</p><blockquote>GET <a href="http://evhs.schoolloop.com/">http://evhs.schoolloop.com/portal/login</a></blockquote><blockquote>auto_login: false</blockquote><blockquote>SLID: 1232325874409</blockquote><blockquote>Username: kagarwal</blockquote><p><strong>The Response would be: </strong>redirect to login screen</p><p>Ok Kunal, let’s use some brain here. How about this?</p><blockquote>GET <a href="http://evhs.schoolloop.com/">http://evhs.schoolloop.com/portal/login</a></blockquote><blockquote>auto_login: true</blockquote><blockquote>SLID: 1232325874409</blockquote><blockquote>Username: cvaeth</blockquote><p><strong>The Response would be: </strong>Success, you are now logged into Schoolloop!</p><p>Oh my days. Really? Well hell, that was easy. Suddenly I had access to Ms. Vaeth’s account. (High School Principal)</p><p>I wish I had screenshots of this, because from here we could actually navigate <em>through </em>this one admin account to any other account in the tenant high school.</p><p>From there, you could actually reset another administrators password so that you can always have a handy dandy account in case they fix this vulnerability. :)</p><p><strong>Method 2</strong>: Kunal’s predictable session IDs</p><p>I know. The last exploit was lame. You changed false to true. Big deal. So after you would send those logins requests we talked about earlier, Schoolloop would assign you a <em>JSESSIONID.</em></p><p><em>JSESSIONID </em>is how Schoolloop knows you are still the same person to be authenticated. It’s like a signed token that used to be 10 characters long, like: <em>acrx85cn00.</em></p><p>Long story short, we could actually grab these from the wireless networks at school. This is why everyone always says to use HTTPS all the time. People can steal your session and start masquerading as you.</p><p>There was one more massive vulnerability, and that was the ability to <strong>predict</strong> these sessions. I had created a script to generate various Session IDs and hit the server to see if any are valid. This ran during the day time, (only teachers would be online) which means you would always get a privileged account. From there you could pivot to anyone you wanted to be.</p><p>It’s been a really long time since this all happened, and I can’t remember the exact web framework that they used (it was Java), so I’m sorry I cannot give the specifics.</p><h3>2. Juvenile Delinquency</h3><p>On a somber note, my intent to do this was always to learn. I always studied very hard, so I didn’t really feel the need to change my grades or anything like that. It was all fun and games.</p><p>That changed when the administration didn’t find it so funny that someone had guessed (keylogged, maybe?) their teachers’ computer about a year after I started snooping around.</p><p>I used to use this as a test system for learning, so naturally when they started combing the logs they found that some of my logins (stupid me) were very close to teachers’ logins.</p><p>They brought in about 20 people with similar cases, and without them even asking, me being the sorry guy told them everything. How I had gone into Schoolloop, used my love for computers to actually get into the accounts of all these different users. I mentioned how sorry I was and that I didn’t have any <strong>bad intentions</strong> here. Just a kid being a kid.</p><p>Unfortunately for me, I never watched much TV in high school, and I didn’t realize that interrogators lie … a lot. So when the guy said, “just come clean, we will make sure nothing happens to you”. He was fucking lying through his teeth. This school police officer, who finally got some action in his life, rose a shitstorm, handcuffed me, locked me in a room for 12 hours, and had all of the administration do everything they can to make my life hell including:</p><ul><li><strong>Prosecution </strong>from the DA</li><li><strong>Expulsion</strong> so that I wouldn’t see my friends again</li><li><strong>Emailing</strong> all teachers (not just mine) about the incident and my personal information (this part’s actually illegal)</li><li>And more…</li></ul><p>Seriously? I really think this was overkill.</p><p>So what have I learned from this experience? The first three rules of life:</p><blockquote><strong>Deny, Deny, Deny.</strong></blockquote><p>Haha, just kidding — although if I <em>had</em> denied it I would have gotten away with everything. Lucky for me, the DA saw that me going to juvenile hall was probably not a good use of time or resources, and probably wouldn’t teach me much at all. I might have even gotten worse!</p><p>So I got put in to a diversion program that would ensure that as long as I kept out of trouble I would be alright from a legal perspective.</p><h3>3. Aftermath</h3><p>I learned a lot from the aftermath of this fiasco. My 12th grade teacher once kicked me out of her class just for my history. This may not seem like much now, but for a kid I just felt disenfranchised. I just wanted to learn, succeed and put this behind me, but they were depriving me of even that. The counselors wouldn’t write me recommendations, the principal even got me temporarily expelled for a second time! (I didn’t even do anything this time!)</p><p>But through the trudges and chills of certain individuals, there were others who supported and guided me to a better path. A couple of my old high school friends (Jamie, Alicia) kept in touch and I made some new ones as well. Some teachers (like my Physics teacher Mr Lubbs, and my Chemistry teacher Mr Cervantes) actually supported me in creating a credit card security science fair project. With their support and my work throughout the year, I became a finalist at the Intel ISEF (International Science Fair)! My PE teacher Mr Bean (RIP) coached me to get through these hard times where teachers would mock me and give me bad grades on purpose.</p><p>In a time where I felt like the entire world was against me, I realized everyone has people around them to lend a hand.</p><p>Though arduous times were about, by the end of high school, I was pretty proud of myself. I had founded a non-profit Infotech Outreach to teach senior citizens how to use computers, and I was set to attend UC Berkeley under the Regents and Chancellors Scholarship.</p><p>I guess the story has a happy ending. There’s so many morals to this story could have, but whats the point of reading all those books in high school if you can’t figure them out for yourself ;)</p><p>— Kunal.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8540230f6bc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>