<?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 Yücel Demir on Medium]]></title>
        <description><![CDATA[Stories by Yücel Demir on Medium]]></description>
        <link>https://medium.com/@yucel_demir?source=rss-9c6203f9042c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*YdVcZfi3L9_o-jbHhu2EfQ.png</url>
            <title>Stories by Yücel Demir on Medium</title>
            <link>https://medium.com/@yucel_demir?source=rss-9c6203f9042c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 18:53:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yucel_demir/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[CVE-2022-30525 - Zyxel Command Execution Vulnerability]]></title>
            <link>https://medium.com/@yucel_demir/cve-2022-30525-zyxel-command-execution-vulnerability-2164e743f1?source=rss-9c6203f9042c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2164e743f1</guid>
            <category><![CDATA[command-execution]]></category>
            <category><![CDATA[vulnerability]]></category>
            <category><![CDATA[zyxel]]></category>
            <dc:creator><![CDATA[Yücel Demir]]></dc:creator>
            <pubDate>Fri, 08 Jul 2022 16:42:08 GMT</pubDate>
            <atom:updated>2022-07-08T16:42:08.630Z</atom:updated>
            <content:encoded><![CDATA[<p>CVE-2022-30525 - Zyxel Command Execution Vulnerability</p><p><strong>Executive Summary<br></strong>This vulnerability is CVE-2022–30525 in elementary OS and has a CVSS score of 9.8.<br>In some versions of ZYXEL firewall, an attacker as an unauthenticated user exposes a command injection vulnerability. A command injection vulnerability found in the CGI program of some Zyxel firewall versions could allow an unauthenticated attacker to modify certain critical files on the system and then execute certain operating system commands on a vulnerable device.</p><p><strong>Introduction</strong></p><p>This error is associated with the HTTP interface of a compromised device. The vulnerability is due to the “setWanPortSt” command within the zero-touch provisioning applet. Access to the “SetWanPortSt” command is via the /ztp/cgi-bin/handler endpoint. The Shadow Server Foundation reports that the affected versions are in Italy, France, and the USA. First version released on 2022–05–12</p><p><strong>Explanation Of The Vulnerability With Its Impact<br></strong>Rapid7’s research team made the issue public on May 12, 2022. This vulnerability is exploited via the /ztp/cgi-bin/handler URI and is the result of passing unclean attacker input to the os.system method in lib_wan_settings.py. The vulnerable functionality is invoked in association with the set WanPortSt command. An attacker can inject arbitrary commands into the mtu and data parameter.<br>Affected Model<br>Affected Firmware Version<br>ZLD5.21 Patch 1 with USG FLEX 100, 100W, 200, 500, 700 ZLD5.00<br>USG20-VPN, USG20W-VPN<br>ZLD5.10 — ZLD5.21 Patch 1<br>ATP 100, 200, 500, 700, 800<br>ZLD5.10 — ZLD5.21 Patch 1<br>Users should take immediate action given the reality.<br>With Rapid7, zyxel, your device has at least 16,213 vulnerabilities open to the internet, and<br>reported to be potentially exploitable by attackers.</p><p><strong>Explanation Of The Exploit</strong><br>The vulnerability could be exploited by data supplied by os.system due to exploitation by the attacker.<br>The attack was initiated via the ztp/cgi-bin/handler endpoint. A handler is a Python that performs a wide variety of operations.<br>commands are scripts. Our Zyxel USG FLEX 100 test using firmware version 5.21 below, handler.py with supported commands (as written in handler.py):<br>By design these commands are miscellaneous for an unauthenticated user.<br>It offers interesting options. CVE-2022–30525 command is vulnerable to getWanportSt.<br>Above you can see getWanPortSt calls lib_wan_setting.getWanPortSt&gt;<br>This is implemented in lib_wan_setting.py.<br>The getWanPortSt command requires four parameters: vlanid, proto, data and vlan_tagged.<br>Additionally, it accepts an mtu parameter. Be both data and mtu.<br>Used for command injections. The data actually contains an additional JSON block, so only<br>leverage mtu.<br>Finally, after some validation, all provided parameters are combined and executed in a single file. A proof-of-concept reverse bash shell using curl looks like the following. Notice that the command<br>Added to mtu field.<br>On the attacking machine this can be caught using nc:nc -lvnp 1270.</p><p><strong>Mitigation Suggestions</strong><br>Update affected firewalls as soon as possible. Affected firewalls must have automatic updating enabled. Disable WAN access. If that’s not possible, try applying a strict IP permission.</p><p><strong>Solution<br></strong>Command injection by an unauthenticated attacker happens on certain versions of the zyxel firewall. With Patches<br>close this vulnerability, we should always do updates and pass the necessary patches released by zyxel to close the vulnerability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2164e743f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GET VE POST METODLARI]]></title>
            <link>https://medium.com/@yucel_demir/get-ve-post-metodlari-56c0b37e58f3?source=rss-9c6203f9042c------2</link>
            <guid isPermaLink="false">https://medium.com/p/56c0b37e58f3</guid>
            <category><![CDATA[get-isteği]]></category>
            <category><![CDATA[xs]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[post-isteği]]></category>
            <category><![CDATA[istek]]></category>
            <dc:creator><![CDATA[Yücel Demir]]></dc:creator>
            <pubDate>Wed, 29 Apr 2020 14:46:36 GMT</pubDate>
            <atom:updated>2020-04-29T14:46:36.857Z</atom:updated>
            <content:encoded><![CDATA[<h3>GET VE POST METOTLARI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZG7rz4ck1gj3Jt2bu2nhw.jpeg" /></figure><p>Öncelikle herkese merhaba ve bu yazımda GET ve POST metot’ları hakkında bilgi vereceğim. GET ve POST metot’ları birer istek metotlarıdır. Sunucuya istek yapıldığında bu metot’lar aracılığıyla sunucuya istek gider. GET metodu açısından bakarsak yaptığımız istek url adres satırında gider. Güvenlik açısından bakarsak, GET metodu POST metod’una göre daha güvensizdir. GET metod’unu daha çok search engine’de görürüz. POST metod’unu ise daha çok web sitelerin login kısımların’da görürüz. Aşağıdaki video’da GET metod’unun kod kısmı ve uygulaması yer alıyor.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1vb9toPH3_8&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1vb9toPH3_8&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/13b5b33cc957bd58ecfe82212c4ffa3d/href">https://medium.com/media/13b5b33cc957bd58ecfe82212c4ffa3d/href</a></iframe><p>Bir diğer metot olan POST metodu ise istek gövdesi içinde gider. POST metodu’nun GET metod’una göre bazı avantajlar vardır. GET metodu’nda karakter sınırlaması varken bu sınırlama POST metodu’nda yoktur. POST metodu’nda dosya işlemleride yapılabilir. Aşağıdaki video’da ise POST metodunun kod ve uygulaması yer alıyor.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRviBH4HmREE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRviBH4HmREE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRviBH4HmREE%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/be587331cca77d86eefeff54fc850283/href">https://medium.com/media/be587331cca77d86eefeff54fc850283/href</a></iframe><p>GET metodu yapısı gereği hızlıdır. Ancak güvensizdir. POST metodu ise yavaştır. Ancak güvenlidir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56c0b37e58f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Temel Msfvenom Kullanımı]]></title>
            <link>https://medium.com/@yucel_demir/temel-msfvenom-kullan%C4%B1m%C4%B1-ab8dbb53e164?source=rss-9c6203f9042c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab8dbb53e164</guid>
            <category><![CDATA[listener]]></category>
            <category><![CDATA[msfvenom]]></category>
            <category><![CDATA[reverse-shell]]></category>
            <category><![CDATA[ters-bağlantı]]></category>
            <category><![CDATA[windows-7]]></category>
            <dc:creator><![CDATA[Yücel Demir]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 19:15:04 GMT</pubDate>
            <atom:updated>2019-11-20T19:15:04.251Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba,</p><p>Sizlere temel olarak payload oluşturmak için kulanılan msfvenom aracının kullanımını göstereceğim. Msfvenom msfpayload aracının yerine çıktığını söyleyebiliriz. Birden fazla programlama dilinde oluşturulan payload’lar bulunmaktadır. Tabii ki bir payload bütün işletim sistemlerinde çalışmayacaktır. Hatta bir programın bir üst sürümünde dahi çalışmayacaktır. Bir windows cihazdan ters bağlantı almak için aşağıdaki gibi basit bir payload oluşturulmuştur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*E_vF4zc-UsZqZ53T8vc5pw.png" /></figure><p>Msfvenom Komutları:</p><ol><li>-p : Oluşturmak istediğiniz payload</li><li>-f : Hangi uzantıda oluşturacağınız(Hedefinize göre farklı uzantılar vardır.)</li><li>-o : Oluşturmak istediğiniz payload’un hangi dizinde oluşturulacağı</li><li>LHOST kullandığımız sistemin local ip’si LPORT’tan ise hangi porttan bağlantı alacağımızı belirleriz.</li></ol><p>İkinci dizinde belirttiğimiz gibi uzantılar hedefinize göre değişir.</p><p>Örneğin bir windows cihazı hedefliyorsanız exe ya da bir web sunucusunu hedefliyorsanız php kullanabilirsiniz. Payload’u oluşturduktan sonra terminal penceresinde böyle bir görüntü oluşur:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*Cy2zIgGoE67wB4rfr7E6Qw.png" /></figure><p>Payload’u oluşturduktan sonra hedef sistemden bağlantı almak için listener başlatmak gerekir. Onu da metasploit framework aracıyla yapıyoruz. Aşağıda ihtiyacımız olan aracı başlatıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*aSCzNXkwoBWUgGFVEstuAw.png" /></figure><p>Aşağıda aracımız açıldıktan sonra işlemimize başlıyoruz. Öncelikle hedef sistemde dosyaya çift tıklandığında bağlantı almak için ‘multi/handler’ exploitimizi seçiyoruz. Seçtikten sonra bir önceki adımlarda payload’u oluşturduğumuz sırada girdiğimiz parametreleri burda da giriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*iwbIKd-L1FWHcCFWF4e9Kg.png" /></figure><p>Son olarak girdiğimiz parametreleri görmek için ‘show options’ komutunu giriyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*hu7PwLq_k_QLR80C2MMhQA.png" /></figure><p>Payload’u karşı tarafa nasıl yutturacağımız bizim hayal gücümüzle sınırlıdır. Son olarak ayarları kontrol ettikten sonra ‘exploit’ komutunu yazıp payload’umuzu dinlemeye alıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*3AVNCYfOrUZgzockFAOV1w.png" /></figure><p>Hedefimiz oluşturduğumuz zararlı’ya tıkladığı zaman bağlantımızı alıyoruz. Bu adımdan sonra yapacaklarımız hayal gücümüzle sınırlıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i7rs-R1dvPRBqZB759jFDQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab8dbb53e164" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Kullanıcı Oluşturma Ve Silme]]></title>
            <link>https://medium.com/@yucel_demir/linux-kullan%C4%B1c%C4%B1-olu%C5%9Fturma-ve-silme-7d046412ba3c?source=rss-9c6203f9042c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d046412ba3c</guid>
            <category><![CDATA[parrot-linux]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[komut]]></category>
            <category><![CDATA[kullanıcı-oluşturma]]></category>
            <dc:creator><![CDATA[Yücel Demir]]></dc:creator>
            <pubDate>Tue, 02 Oct 2018 22:03:25 GMT</pubDate>
            <atom:updated>2018-10-02T22:03:25.246Z</atom:updated>
            <content:encoded><![CDATA[<p>Linux’da kullanıcı bilgileri ve kullanıcı şifreleri ‘/etc/passwd’ ve ‘/etc/shadow’ dizini altında yer alır. Linux’da kullanıcı oluşturulurken bilgiler bu dosyalara otomatik olarak işlenir. Kullanıcı şifreleri <strong>shadow</strong> dosyasına belli algoritmalara göre şifrelenerek yazılır. İki komutla kullanıcı oluşturulabilir. Bunlar useradd ve adduser komutlarıdır. Önce adduser komutundan bahsedelim. Sistemde misafir adında kullanıcı tanımlayacağız. Komutun kullanımı ‘adduser misafir’ şeklindedir. Kullanıcıyı oluşturduğumuzda ev dizini ‘/home/misafir/’ şeklinde otomatik oluşur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*YdLMq3SUPrr9GcVmVwogqw.png" /></figure><p>Kullanıcı oluşturmak için bir diğer komut ise ‘<strong>useradd -m misafir</strong>’ şeklindedir. Burada m parametresini kullanarak otomatik olarak ev dizini oluşturmasını söyledik. Bu parametreyi kullanmayarak da kendiniz ev dizinini manuel olarak oluşturabilirsiniz. Sonra ‘<strong>passwd misafir’</strong> komutuyla yeni bir şifre belirliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*oIyFmM32ddDAgz0sekzjmg.png" /></figure><p>Oluşturduğumuz kullanıcıyı silmek istediğimiz zaman iki komuttan faydalanabiliyoruz. Eğer <strong>adduser</strong> komutunu kullanarak kullanıcı oluşturduysak ‘<strong>deluser — remove-home misafir</strong>’ komutunu kullanarak silebiliyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*w3D-QAZAQwxzVMuSBZQyEw.png" /></figure><p>Eğer useradd komutuyla oluşturduysak ‘<strong>userdel -r misafir</strong>’ komutunu kullanarak kendi ev dizini ile birlikte silebiliriz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*UPL4TNGYtShWDX0fKwgXUQ.png" /></figure><p>Burada söylemem gereken şey bu işlemleri yapmak için sistemde root olmanız gerekiyor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d046412ba3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>