<?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 Bahtiyar Istiyarno on Medium]]></title>
        <description><![CDATA[Stories by Bahtiyar Istiyarno on Medium]]></description>
        <link>https://medium.com/@bahtiyar.ist?source=rss-b0fa84d94073------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jd0vrbs43-xr-r8vaOSKNw.jpeg</url>
            <title>Stories by Bahtiyar Istiyarno on Medium</title>
            <link>https://medium.com/@bahtiyar.ist?source=rss-b0fa84d94073------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:58:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bahtiyar.ist/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[[SecNotes #1]  How To Get Fresh APK from Playstore]]></title>
            <link>https://medium.com/@bahtiyar.ist/secnotes-1-how-to-get-fresh-apk-from-playstore-bd20ce7edb50?source=rss-b0fa84d94073------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd20ce7edb50</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Bahtiyar Istiyarno]]></dc:creator>
            <pubDate>Tue, 23 Jun 2020 19:52:39 GMT</pubDate>
            <atom:updated>2020-06-23T19:52:39.674Z</atom:updated>
            <content:encoded><![CDATA[<h3>[SecNotes #1] How To Get Fresh APK from Playstore</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8rBT18xClki_uWi3go4t7A.jpeg" /></figure><p>Assalamu ‘alaikum Wr. Wb</p><p>following my recent testing, I’m often stressed out to get fresh apk to test it, I’m usually downloading in google and/or use firefox addons to redirect me to download link if i open an application in playstore, but that method gets some deficiency.<br>1. the apk isn’t really most updated apk<br>2. lack of download speed<br>3. i’m not really sure the apk is safe<br>4. sometime apk error when i try to install</p><p>so, i dedicate to search more about it, then i think “where the apk’s when i install from playstore ?”. from that curious question, then i search it in google, and got nice information, so, that information is source of this note (or article). this the information/source : <a href="https://gist.github.com/ctrl-freak/24ac0e61b7cf550a6945">https://gist.github.com/ctrl-freak/24ac0e61b7cf550a6945</a></p><p>i’m using genymotion to emulated android device, so i’m a little bit used to adb. for who don’t know about adb, this information maybe can little bit give a imagine what is adb.</p><blockquote>Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.<br><a href="https://developer.android.com/studio/command-line/adb">https://developer.android.com/studio/command-line/adb</a></blockquote><p>for the information, following my previous statement i use genymotion (emulator), so i don’t understand how this tutorial will work with physical phone, cause im never try to my phone. And then genymotion also include adb in their tool so i can use it.</p><p>so, after everything is clear, let’s do a try !</p><p>1. open emulator phone, i’m use android 8, make sure playstore is installed in, and make sure an application installed too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*_szsw4__EK3jSdlb-ugqmA.png" /></figure><p>2. connect device/phone to adb.</p><p><em>adb connect [ip]:5555</em> (command to connect adb with device)<br><em>adb devices</em> (command to make sure device is connected)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*usQuxWEnv_EyG09GFxTEIg.png" /></figure><p>3. get package name of the application, use grep to make searching easier</p><p><em>adb shell pm list packages</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*bQjDfFsqNKPFg1Z8o55Xeg.png" /></figure><p>4. get path of apk</p><p><em>adb shell pm path [package name]</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*tSN0-qq1CST4ufvqoUx4KQ.png" /></figure><p>5. base.apk is the apk from the application who i install from playstore, and next move that apk to computer with adb pull</p><p><em>adb pull /[path]/base.apk</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tInPYRQ4XOpvPSc6VMObwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*_pggk0VDrdSg-nxVqOdidg.png" /></figure><h3>note :</h3><p>if we find a case like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*so2d_QARVYmbqPbYjP4MHg.png" /></figure><p>don’t worry, main apk still base.apk, we can pull it and the push it if we have modif the apk so it seems as install it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ge70CGx4gPgEUp15OJMgw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd20ce7edb50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local File Disclosure Pada Salah Satu Situs Belanja Online Indonesia]]></title>
            <link>https://medium.com/@bahtiyar.ist/local-file-disclosure-pada-salah-satu-situs-belanja-online-indonesia-a6a3aa390fcd?source=rss-b0fa84d94073------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6a3aa390fcd</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[web-apps]]></category>
            <dc:creator><![CDATA[Bahtiyar Istiyarno]]></dc:creator>
            <pubDate>Thu, 04 Apr 2019 19:28:58 GMT</pubDate>
            <atom:updated>2026-01-19T09:46:24.412Z</atom:updated>
            <content:encoded><![CDATA[<p>Selamat malam, salam bahagia semuanya..</p><p>Disini saya mau sharing tentang penemuan saya bulan februari lalu, dimana saya menemukan celah keamanan disalah satu situs belanja online besar indonesia, celah keamanan itu adalah LFD atau local file disclosure, celah keamanan ini hampir sama seperti local file inclusion tetapi bedanya pada celah keamanan ini, file tidak dapat ditampilkan pada browser, file hanya bisa didownload.</p><p>Oke, sedikit cerita, saya sudah 4 hari melakukan riset pada website tersebut dan menemukan 12 vulnerability, tetapi saya tulis tentang celah ini terlebih dahulu, karena menurut saya celah ini memiliki severity high-critical.</p><p>Di ▇▇▇▇▇▇.com terdapat subdomain ▇▇▇▇.▇▇▇▇▇▇.com yangmana subdomain tersebut adalah marketplace baru yang dibuat oleh ▇▇▇▇▇▇.com. Saya mencoba beberapa fiturnya dan mendapatkan sesuatu yang menarik pada fitur wishlist.</p><p>Saat saya coba fitur wishlist, saya menemukan request ini burp suite saya.</p><p>url : https://▇▇▇▇.▇▇▇▇▇▇.com/?dir=shop&amp;menu=ajax&amp;sub=requestWish</p><p>method : POST</p><p>data :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*kIlVAgqj8s_3hw_nEOqGyA.png" /></figure><p>Yang menarik dari request diatas adalah pada parameter itemImageUrl, dimana saya dapat mengeditnya. Tetapi saya coba lakukan request terlebih dahulu untuk melihat hasilnya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*jxFlntl2rVJ1wYpD9MDT5w.png" /><figcaption>Response dari request diatas</figcaption></figure><p>Kemudian saya coba lakukan request dengan memodifikasi parameter itemImageUrl dengan url dari luar, saya ambil contoh gambar ini.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*hVnzqkrEqAiZ6Z1rSnLxTg.png" /></figure><p>Kemudian saya coba lakukan request, tetapi id nya harus diubah, karena jika tidak maka request akan gagal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*Ihy6IOlH_Sraz-ho2JDmvw.png" /></figure><p>Saya coba lihat halaman wishlist diprofile saya, dan ternyata saya menemukan sesuatu yang lebih menarik, karena ternyata gambar yang saya upload melalui url tadi, ternyata dikompres oleh sistem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*a-kcrjEmMVg9h3VjcxU-LA.png" /></figure><p>Kita dapat lihat pada potongan halaman diatas, bahwa ada id barang yang saya set menjadi id untuk gambar gif.</p><p>Dan ini adalah hasilnya setelah saya cek url gambar diatas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*ojBlE1V1Si-1C5DnPU8SzQ.png" /></figure><p>Saya langsung kepikiran tentang lfd, apakah mungkin dapat melakukan request dengan url local file server misal file:///etc/passwd.</p><p>Hmm.. here we go..</p><p>Request :</p><p>https://▇▇▇▇.▇▇▇▇▇▇.com/?dir=shop&amp;menu=ajax&amp;sub=requestWish</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*fClkNhMhwj8iqiiTha_nJg.png" /></figure><p>Response :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*jxFlntl2rVJ1wYpD9MDT5w.png" /></figure><p>Di halaman wishlist :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*dRjpsw3mZHKT6UnmIeRcrg.png" /></figure><p>Saat dicek :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*qqG3rkh8QT1woMQuODH6vg.png" /></figure><p>Walaupun saat dicek, gambar tidak dapat dibuka dengan browser, tetapi saya berhasil mendownloadnya dengan wget dan membukanya.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*R8feCydWg2rKsLcLuSmuAw.png" /></figure><p>Kemudian saya siapkan beberapa wordlist untuk sedikit pembuktian.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/165/1*0gqPW4H4fTr9g6c4C0pDpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*R7arlNQpaObgWr8G22T-jw.png" /></figure><p>Apakah saya melaporkannya ? ya tentu saja !</p><p>Timeline :</p><blockquote>Feb 26, 2019 : report ke support ▇▇▇▇.com</blockquote><blockquote>Feb 26, 2019 : dibalas oleh customer support</blockquote><blockquote>Feb 27, 2019 : menanyakan update</blockquote><blockquote>Mar 04, 2019 : menanyakan update</blockquote><blockquote>Mar 05, 2019 : menanyakan update</blockquote><blockquote>Mar 05, 2019 : customer support memberitahu bahwa tidak ada reward untuk penemuan bug</blockquote><blockquote>Mar 05, 2019 : saya mengatakan bahwa saya tidak meminta reward, tetapi menanyakan update hanya untuk mengetahui sudah dipatch atau belum, dan saya ingin melakukan re-test. Saya juga meminta untuk bagian teknis yang membalas email saya.</blockquote><blockquote>Mar 05, 2019 : customer support memberikan email tim security</blockquote><blockquote>Mar 05, 2019 : saya mem-forward report pertama saya ke tim security mereka</blockquote><blockquote>Mar 08, 2019 : saya membalas lagi email customer support dan cc ke tim security mereka untuk menanyakan update.</blockquote><blockquote>Mar 18, 2019 : saya mengirimkan gif ke mereka atas ekspresi lelahnya saya menunggu.</blockquote><blockquote>Apr 05, 2019 : menulis artikel ini.</blockquote><p>Saya berharap saat artikel ini dipublish bug tersebut sudah diperbaiki.</p><p>Dan ini adalah vulnerability yang saya temukan di website mereka.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*HTf7NDlkL967DcJmyx8a6A.jpeg" /></figure><p>Dan terimakasih mbak QA ▇▇▇▇▇▇.com yang telah mengunjungi linkedin saya, sehari setelah pelaporan, tetapi tidak meng-email saya, hehehe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*2Rg0_22nBMdWXf6FwHbDrQ.jpeg" /></figure><p>Btw, terimakasih telah membaca tulisan saya, semoga bermanfaat..</p><p>Kalo tidak berkenan dengan tulisan saya, silahkan tuliskan dikomentar ya.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6a3aa390fcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>