<?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 Asish Shaji Thomas on Medium]]></title>
        <description><![CDATA[Stories by Asish Shaji Thomas on Medium]]></description>
        <link>https://medium.com/@asishshaji?source=rss-4b50d1b29c49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HdoGNoxmBYzqtVTYMZaPcg.jpeg</url>
            <title>Stories by Asish Shaji Thomas on Medium</title>
            <link>https://medium.com/@asishshaji?source=rss-4b50d1b29c49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 22:48:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asishshaji/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[MediChain — POC]]></title>
            <link>https://asishshaji.medium.com/medichain-poc-179931c87347?source=rss-4b50d1b29c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/179931c87347</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[medical-records]]></category>
            <dc:creator><![CDATA[Asish Shaji Thomas]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 04:52:52 GMT</pubDate>
            <atom:updated>2020-07-02T05:00:50.417Z</atom:updated>
            <content:encoded><![CDATA[<h3>MediChain — POC</h3><blockquote>Data is the new oil.</blockquote><p>Recent pandemic has lead to masses realizing the essential need of securing their medical data. Current scenario stores in the medical records of an individual in a centralized database. The patient might not have full control over their data. Most of the hospitals often sell these medical records to research firms. If me being a patient and if my data is being sold, I should be able to control who has access to my record, and I should even be incentivized for the data that I’ve given.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FMVgBbtMBGQTi6og4mF%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FMVgBbtMBGQTi6og4mF%2Fsource.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FMVgBbtMBGQTi6og4mF%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/a84d7200fa85ef1109dc2ae225bf6ea0/href">https://medium.com/media/a84d7200fa85ef1109dc2ae225bf6ea0/href</a></iframe><p>This is where the use of blockchain comes in. Patients decide who can access their medical records. Patients can add other individuals who can access the data. A role-based access control system is introduced. And If the patient decides to sell the medical records, he is incentivized with the inbuilt cryptocurrency.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fo0BN7hFNoBs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Do0BN7hFNoBs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fo0BN7hFNoBs%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/6da01f0f169acabe7b173b536e934e4f/href">https://medium.com/media/6da01f0f169acabe7b173b536e934e4f/href</a></iframe><p>Code is available at <a href="https://github.com/asishshaji/MediChain">https://github.com/asishshaji/MediChain</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=179931c87347" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[D-valuation for KTU]]></title>
            <link>https://asishshaji.medium.com/d-valuation-for-ktu-a13813e6efb2?source=rss-4b50d1b29c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/a13813e6efb2</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Asish Shaji Thomas]]></dc:creator>
            <pubDate>Sat, 25 Apr 2020 10:37:35 GMT</pubDate>
            <atom:updated>2020-04-25T10:50:52.246Z</atom:updated>
            <content:encoded><![CDATA[<p>We all had moments when our grade improved from F to A. And let me ask this, have you got your money back? You get the money, but you have to chase after the office staff, right? <br>What if all these valuation processes were automated to some extent.</p><p>What if you knew..</p><p><strong>If the college submitted your paper?<br>If the valuators checked the paper?<br>What were the marks assigned by each valuator?<br>Could I raise a dispute (Apply for revaluation) on the go?<br>Can I get a copy of my answer sheet at any point in time without having permission from college or university?</strong></p><p>Entering blockchain…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FMVgBbtMBGQTi6og4mF%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FMVgBbtMBGQTi6og4mF%2Fsource.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FMVgBbtMBGQTi6og4mF%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/a84d7200fa85ef1109dc2ae225bf6ea0/href">https://medium.com/media/a84d7200fa85ef1109dc2ae225bf6ea0/href</a></iframe><p>What if we can create a supply-chain for answer paper? Allowing the students to know the status of the valuation. All the details are stored permanently in an immutable ledger. And the best part is you don’t have to see this anymore. 🌚🌚</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*xHeKu4nbsvjLbUuyAGlMNg.jpeg" /></figure><p>The data is available 24*7 on the blockchain.</p><p>I’ve used ethereum blockchain for building this supply-chain. <br>The asset involved is obviously the paper. The actors involved are college, evaluators, reviewers, and university.</p><p>The college will upload the answer paper of each student into <a href="https://ipfs.io/">I</a>PFS. The returned hash is stored in the blockchain. So here’s how my implementation works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*8c4nC0wJeFxdhq5QrnA0Zg.png" /></figure><p>This is the basic data structure of the asset involved. When a paper is submitted by the college, from a pool of evaluators randomly two of them are selected and are assigned to the instance of the paper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bgi3PuQpwyQ-qJj2f1o_Ow.png" /></figure><p>Each paper instance is assigned with two evaluators drawn in random from a pool of evaluators.</p><p>At any instant, a student can know the status of the paper by calling getResultForStudent along with their id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQg-P304KQsLIUO5EsYgpQ.png" /></figure><p>If their status is marked as evaluated and if the student is not satisfied with the result, he/she can raise a dispute. And from the same pool of evaluators, a random evaluator is assigned the status of the reviewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*d5wSJraSudYM7zLBVNOUOg.png" /></figure><p>The reviewer will then review the paper and submit the marks. Later if the student is satisfied with the result, he/she can mark the paper as accepted. And if the student hasn’t raised a dispute, 4 ethers are sent to the evaluators. The one’s how made mistake will have their end of money reduced as penalization. And the money will be sent to the reviewer.</p><p>So that’s it.</p><p>Code is available <a href="https://github.com/asishshaji/D-valuation">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a13813e6efb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I “hacked” into Etlab.]]></title>
            <link>https://asishshaji.medium.com/how-i-hacked-into-etlab-d91c26bf9cc1?source=rss-4b50d1b29c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/d91c26bf9cc1</guid>
            <category><![CDATA[twilio]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Asish Shaji Thomas]]></dc:creator>
            <pubDate>Fri, 29 Mar 2019 09:29:10 GMT</pubDate>
            <atom:updated>2019-03-29T09:30:09.501Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>The term “hacker” seems to have originally developed decades ago at the Massachusetts Institute of Technology in the United States, a fabled source of geek wisdom and wizardry. There a hacker was a fairly general term for any kind of enthusiastic amateur expert. A computer hacker was someone who really knew computers, loved computers, and threw their time wholeheartedly into exploring them and their possibilities.</blockquote><blockquote>The term evolved a bit over the years. Before the word was usurped, calling someone a computer hacker meant that they were an agile, seat-of-the-pants developer, knocking out one ingenious thing after another. “Hacking” described the gleeful programming style of such people or, quite often, could be just a synonym for any kind of programming. And the term “hack” is commonly used by programmers to refer to a quick-and-dirty (but not destructive) fix for a problem.</blockquote><p>By “hacked” I never meant that I gained access into their server. I simply created a program, that could send your attendance as an SMS to your mobile phone.</p><p><strong>I repeat, I never gained access into their servers.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_VFV9WL9HiB9BRLadGDPw.png" /></figure><p>I wrote a python script to get the student’s attendance. Then I integrated a twilio account to send the attendance as an SMS to the student’s phone.</p><p>The libraries I used for the scripts are requests, BeautifulSoup and twilio.</p><p>Requests is a Python HTTP library, released under the Apache 2 License. <br>Beautiful Soup is a Python package for parsing HTML and XML documents. It creates a parse tree for parsed pages that can be used to extract data from HTML, which is useful for web scraping.</p><p>I used <strong>session</strong> available in requests to persist parameters across the request. And I used post method to send the request, which have payload with username and password.</p><p>I scraped the attendance page (https://nssce.etlab.in/ktuacademics/student/results?sem_id=239) and the sem_id seems to change for different branches. E.G sem_id for civil is 239 and for electrical it is 238.</p><p>From the attendace table I scraped subject name and attendance percentage for those subjects for which the student has an attendance below 80%.</p><p>Now I had to use some gateway to send the attendance as SMS. So I searched on the internet and I found twilio. Setting up twilio was pretty much straightforward. They have a good documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Hh1_niJg0UZkdwGcoFRUA.png" /><figcaption>Twilio</figcaption></figure><p>And that was it. I am now able to send the attendance that I have scraped using twilio api. Twilio also have a whatsapp feature.</p><p>It would be pretty slick if you get your attendance daily as a whatsapp message. You wouldn’t have to check your Etlab app daily to see your attendance. For this, the script has to be run on a server and the twilio account I used here is only a trial version.</p><p>And this is the result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*i-8HIBuBfA6Z-qHw5NNqbw.jpeg" /><figcaption>SMS from twilio</figcaption></figure><p>The code I used is available on my github account.</p><p><a href="https://github.com/mrkai1253/etlab-notification">https://github.com/mrkai1253/etlab-notification</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d91c26bf9cc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we got into their google drive.]]></title>
            <link>https://medium.com/nivata-infosec/how-we-got-into-their-google-drive-d5a809defb0?source=rss-4b50d1b29c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5a809defb0</guid>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Asish Shaji Thomas]]></dc:creator>
            <pubDate>Sun, 03 Mar 2019 15:34:24 GMT</pubDate>
            <atom:updated>2019-03-03T15:34:24.157Z</atom:updated>
            <content:encoded><![CDATA[<p>In our<strong> </strong><a href="https://medium.com/nivata-infosec/how-we-hacked-into-our-first-website-8c116146f5d6"><strong>previous blog</strong></a> we wrote how we got access into a server by exploiting file upload vulnerability. After reporting the vulnerability we did a dirb bruteforce scan on the website and we found two interesting files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mQnejhKHTD4ouETcGH_Aw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQ5qIMcHmzkfh7bpNzTIhg.png" /></figure><p>They had these files in their server so that they could automatically upload the files directly to their google drive.</p><p>We thought of writing a POC to gain access into their google drive. So we ended up writing the POC in Node.js . And it’s showtime</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FQNFhOolVeCzPQ2Mx85%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FQNFhOolVeCzPQ2Mx85%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExOG5kMzd4aDI4dTlieTU4OTBqdm91N3R3a2dqN3U3dDIzc3Q3NzlvaSZlcD12MV9naWZzX2dpZklkJmN0PWc%2FQNFhOolVeCzPQ2Mx85%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="246" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c80ca27351469987bc3d3feda596cc5/href">https://medium.com/media/3c80ca27351469987bc3d3feda596cc5/href</a></iframe><p>The code is available at <a href="https://github.com/mrkai1253/POC">https://github.com/mrkai1253/POC</a> . And that was it, we were able to list all their files, upload new ones and even delete the files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dh3c0kyoPD0GPmDsnDALQ.png" /><figcaption>The data dump</figcaption></figure><p>We quickly reported this vulnerability and it’s now mitigated.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5a809defb0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nivata-infosec/how-we-got-into-their-google-drive-d5a809defb0">How we got into their google drive.</a> was originally published in <a href="https://medium.com/nivata-infosec">Nivata InfoSec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we “hacked”  into our first website]]></title>
            <link>https://medium.com/nivata-infosec/how-we-hacked-into-our-first-website-8c116146f5d6?source=rss-4b50d1b29c49------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c116146f5d6</guid>
            <dc:creator><![CDATA[Asish Shaji Thomas]]></dc:creator>
            <pubDate>Fri, 01 Mar 2019 16:49:59 GMT</pubDate>
            <atom:updated>2019-03-03T04:16:43.877Z</atom:updated>
            <content:encoded><![CDATA[<h3>How we “hacked” into our first website</h3><p>Many websites require file upload functionality for their users. Social networking websites, such as Facebook and Twitter allow their users to upload profile pictures. Job portals allow their users to upload their resumes. File upload functionality is crucial for many web applications. At the same time, it is a big risk to the application as well as to the server if proper security controls are not implemented on file uploads.</p><p>The website we encountered had the same file upload vulnerability. They had a direct file upload vulnerability. They never validated the type of file being uploaded (More on that later). The below screenshot shows the file upload field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5XEt2O2z6LCvp4lZKMRbQ.jpeg" /></figure><p>So we intuitively fired up weevely (<a href="https://github.com/epinna/weevely3">https://github.com/epinna/weevely3</a>) . Weevely allows us to create a php webshell which is then uploaded to the target server to get a remote shell access. And the shell was uploaded to /uploads/ endpoint.</p><p>And that was it, we were in. The first thing we did was, we read how the upload was being handled and we found this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*QzgrXEpD1cas_f2VqrDP0g.png" /></figure><p>If the uploaded file is a doc file then it’s uploaded to the google drive which is configured on the server else the file is saved in the uploads directory.</p><p>This allowed our backdoor to persist on their server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*dDx7-8hUckLpXcpL2ZKJnQ@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c116146f5d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nivata-infosec/how-we-hacked-into-our-first-website-8c116146f5d6">How we “hacked”  into our first website</a> was originally published in <a href="https://medium.com/nivata-infosec">Nivata InfoSec</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>