<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vinay Bomma</title>
    <description>The latest articles on DEV Community by Vinay Bomma (@vinaybomma).</description>
    <link>https://dev.to/vinaybomma</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F883725%2F6336ef80-dee5-4677-b730-abaa59094414.JPG</url>
      <title>DEV Community: Vinay Bomma</title>
      <link>https://dev.to/vinaybomma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vinaybomma"/>
    <language>en</language>
    <item>
      <title>How I broke SonyLIV's Premium feature</title>
      <dc:creator>Vinay Bomma</dc:creator>
      <pubDate>Tue, 28 Jun 2022 01:46:49 +0000</pubDate>
      <link>https://dev.to/vinaybomma/how-i-broke-sonylivs-premium-feature-3487</link>
      <guid>https://dev.to/vinaybomma/how-i-broke-sonylivs-premium-feature-3487</guid>
      <description>&lt;p&gt;I've been planning to do a write-up about the time I found a high-level security vulnerability in SonyLIV, for quite some time now. Although this happened a couple of years ago, I feel it's still a cool vulnerability to talk about. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://sonyliv.com"&gt;SonyLIV&lt;/a&gt; for the uninitiated is a streaming platform where you can watch live sports, movies, and tv shows. I would mainly use it for streaming live football matches, especially the UEFA Champions League. Recently they had made a few changes and introduced premium subscriptions, but as a normal user, you were given a 2-minute trial while watching premium content. &lt;/p&gt;

&lt;p&gt;So here I am waiting for my favourite team's (Man Utd) match to start which was still half an hour away. As a web developer, I was curious to see how the premium feature was implemented and started poking around in the hope that I would find something interesting. I immediately ran Burp Suite and began intercepting requests to understand the flow of the app. After a few minutes, while checking how the cookies were set, I noticed something interesting in local storage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SPYe8uuk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643459789979/xsiQz2No7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SPYe8uuk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643459789979/xsiQz2No7.png" alt="Untitled.png" width="812" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The default value was set to 120, meaning 2 minutes. I modified it to 9999 (~ 166 mins). To my surprise, it didn't work. After a few minutes of tinkering I realized, it only works if we modify the value before the video gets loaded. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--602rAXTr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643465909795/-06VXME5S.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--602rAXTr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643465909795/-06VXME5S.jpeg" alt="InkedScreenshot 2022-01-29 181848_LI.jpg" width="880" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I increased the time limit for the Man Utd match and watched it for free!&lt;/p&gt;

&lt;p&gt;The next morning I made a POC and sent it to Sony. After a few days, Sony's security team acknowledged the bug and fixed the vulnerability.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--u9NTa3BR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643461718722/QC2M9Wm_R.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--u9NTa3BR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643461718722/QC2M9Wm_R.png" alt="Screenshot 2022-01-29 183816.png" width="880" height="177"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rmWqdAFg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643461791219/F6uXHeEmU.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rmWqdAFg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1643461791219/F6uXHeEmU.png" alt="Screenshot 2022-01-29 183828.png" width="662" height="56"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My main takeaway from this experience is that we grossly overestimate how difficult security vulnerabilities are to find and perform. In most cases, the more severe the issue, the simpler it is to reproduce!&lt;/p&gt;

&lt;h3&gt;
  
  
  Thank You For Reading 👍
&lt;/h3&gt;

&lt;p&gt;Check out my other articles or get to know me at &lt;a href="https://vinaybomma.github.io"&gt;vinaybomma.github.io&lt;/a&gt; &lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>cybersecurity</category>
      <category>programming</category>
    </item>
    <item>
      <title>5 nifty VScode shortcuts I use regularly</title>
      <dc:creator>Vinay Bomma</dc:creator>
      <pubDate>Tue, 28 Jun 2022 01:11:01 +0000</pubDate>
      <link>https://dev.to/vinaybomma/5-nifty-vscode-shortcuts-i-use-regularly-4ec5</link>
      <guid>https://dev.to/vinaybomma/5-nifty-vscode-shortcuts-i-use-regularly-4ec5</guid>
      <description>&lt;p&gt;In the time that I have used VScode, I have come across some cool shortcuts that have improved my workflow. Here, I have listed a few of them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### Ctrl + D - Find &amp;amp; Replace
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This shortcut is a life saver when you want to change select or all the occurences of a word. It &lt;br&gt;
selects the word at the cursor, or the next occurence of the selected word. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BNWHRjCY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1631902994629/l5WqbVvQD.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BNWHRjCY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1631902994629/l5WqbVvQD.gif" alt="multicursor-word.gif" width="607" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### Ctrl + Shift + Z - Redo &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Many people are aware of the keyboard shortcut for undoing their work, but what about redoing it! This is one of those shortcuts that you don't think you need until you start using it. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### Ctrl + ~ - Open Terminal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This keyboard sequence opens the integrated terminal of VScode. Performing the same sequence again minimizes the terminal. Use &lt;em&gt;Ctrl + Shift + ~&lt;/em&gt; for opening a new terminal.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### Ctrl + Shift + Up Arrow - Duplicate Line&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another simple and handy shortcut for duplicating a line. Use the up arrow to duplicate the above line or vice-versa.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--704wVHf7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1631904473261/Z9bJYRXDn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--704wVHf7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://cdn.hashnode.com/res/hashnode/image/upload/v1631904473261/Z9bJYRXDn.gif" alt="duplicate_line.gif" width="655" height="194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### Ctrl + / - Toggle line comment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This shortcut toggles comment for the current line. This works irrespective of the language you are using so you don't need to worry about the comment syntax, VScode handles all that for you.&lt;/p&gt;

&lt;h3&gt;
  
  
  Thank You For Reading 👍
&lt;/h3&gt;

&lt;p&gt;Check out my other articles or get to know me at &lt;a href="https://vinaybomma.github.io"&gt;vinaybomma.github.io&lt;/a&gt; &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>vscode</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
