<?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 pad1ryoshi on Medium]]></title>
        <description><![CDATA[Stories by pad1ryoshi on Medium]]></description>
        <link>https://medium.com/@pad1ryoshi?source=rss-69a6858d5d7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FCwoaqLLRf1xsIh9GWsC5Q.jpeg</url>
            <title>Stories by pad1ryoshi on Medium</title>
            <link>https://medium.com/@pad1ryoshi?source=rss-69a6858d5d7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 10:15:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pad1ryoshi/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[Processos]]></title>
            <link>https://pad1ryoshi.medium.com/processos-95c36679102f?source=rss-69a6858d5d7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/95c36679102f</guid>
            <category><![CDATA[filosofia]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[progress]]></category>
            <dc:creator><![CDATA[pad1ryoshi]]></dc:creator>
            <pubDate>Thu, 29 Jan 2026 01:52:03 GMT</pubDate>
            <atom:updated>2026-01-29T01:52:03.733Z</atom:updated>
            <content:encoded><![CDATA[<p>Nos últimos meses eu estou tendo mais dúvidas do que certezas. Eu me pergunto se isso é normal?</p><p>Escolhi uma área em que ter “dúvidas” não é necessariamente ruim mas duvidar de si mesmo é totalmente desencorajador.</p><p>Em busca de aliviar as dúvidas que sinto de mim mesmo comecei a pesquisar e tentar entender o meu problema e, atualmente, a única solução encontrada foi <strong>aprender a gostar do processo</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WDGSOBocWZ3ybc1O.jpg" /><figcaption>Imagem do mangá Vagabond</figcaption></figure><p>Eu tenho uma tendência horrível de esperar pelo resultado final desde o primeiro momento, o que acaba gerando desconfiança em mim mesmo e me faz duvidar da minha própria capacidade depois de poucas horas nas minhas pesquisas.</p><p>É possível me livrar desse sentimento? Ou pelo menos aliviar esse sentimento? Eu diria que sim, é possível alivar. Como? Aprendendo a viver o presente e aproveitar o processo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*gXCfjtbuqVOEBEvn" /><figcaption>Imagem do mangá Vagabond</figcaption></figure><p>A ideia é simples: curta os pequenos progressos do processo e tente aproveitar ao máximo o presente.</p><p>Um dos maiores filmakers da história, <a href="https://pt.wikipedia.org/wiki/Akira_Kurosawa">Akira Kurosawa</a>, disse o <a href="https://gointothestory.blcklst.com/writing-wisdom-from-akira-kurosawa-56aecd7e2c9a">seguinte</a>:</p><blockquote>“I think young people today don’t know the trick of it. They start and want to get to the end right away. When you go mountain climbing, the first thing you’re told is not to look at the peak but to keep your eyes on the ground as you climb. You just keep climbing patiently one step at a time. If you keep looking at the top, you’ll get frustrated. I think writing is similar. You need to get used to the task of writing. You must make an effort to learn to regard it not as something painful but as routine.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CVynSy17I1iYa0lw.jpg" /><figcaption>Akira Kurosawa</figcaption></figure><p>E eu penso que a ideia é essa. Pense comigo, se existir duas pessoas que sonham com o mesmo destino qual tem a maior probabilidade de chegar? Aquele que apenas se imagina chegando no destino ou aquele que de fato caminha para o destino? Eu acho que a resposta é bem óbvia.</p><p>Eu espero conseguir aliviar cada vez mais essa dúvida da minha própria capacidade e curtir os processos das minhas pesquisas.</p><p>Para chegar no topo da montanha a gente precisa de calma, confiança e paciência.</p><p>Até a próxima.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95c36679102f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Self-XSS + CSRF = XSS Re]]></title>
            <link>https://pad1ryoshi.medium.com/self-xss-csrf-xss-re-81bac80c969f?source=rss-69a6858d5d7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/81bac80c969f</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[xss-attack]]></category>
            <category><![CDATA[csrf]]></category>
            <dc:creator><![CDATA[pad1ryoshi]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 22:47:15 GMT</pubDate>
            <atom:updated>2025-12-31T22:47:15.577Z</atom:updated>
            <content:encoded><![CDATA[<h3>Self-XSS + CSRF = XSS Refletido</h3><p>Olá, amigxs.</p><p>Venho compartilhar com vocês de forma breve uma vulnerabilidade encontrada em um programa público de Bug Bounty. Uma chain client-side bem simples mas efetiva.</p><h4>TL;DR</h4><p>Self XSS + CSRF = XSS Refletido.</p><h4>Recon</h4><p>O programa tinha como escopo todos os subdomínios (wildcard) do seu domínio principal — nesse caso usaremos <em>exemplo.com</em> para demonstração — ou seja, <strong>*.exemplo.com</strong></p><p>Existem BOAS técnicas de enumeração de subdomínios, normalmente, eu sempre começo utilizando DORKS em mecanismos de pesquisa tipo Google ou DuckDuckGo.</p><p>Algumas dorks que eu utilizo são:</p><blockquote>site:*.exemplo.com filetype:html</blockquote><blockquote>site:*.exemplo.com filetype:cfm</blockquote><blockquote>site:*.exemplo.com filetype:do</blockquote><blockquote>site:*.exemplo.com filetype:php</blockquote><p>Usando <strong>site:*.exemplo.com filetype:cfm </strong>me deparei com o seguinte resultado:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*hPnppCctrJYKIgUNUCglpw.png" /><figcaption>https://bwtt.exemplo.com/index.cfm</figcaption></figure><p>O subdomínio, em si, era relativamente simples, tratava de uma aplicação que executava uma espécie verificação sobre informações públicas de empresas específicas. A sua principal funcionalidade era um formulário em que o usuário precisava preencher o nome da sua empresa para ter acesso a informações de registro sobre a mesma.</p><h4>Descobrindo um SELF-XSS</h4><p>Ao analisar a requisição feita pelo formulário, tanto de forma dinâmica (UI do Browser) e de forma estática no web proxy (Caido), percebi que o valor controlado pelo usuário estava sendo refletido diretamente na resposta do HTML:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*Ze37k-WBtdb25Z-XrhivIg.png" /><figcaption>Código fonte da página no navegador</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKZyBb6LT9gYfGPPLGB8Ug.png" /><figcaption>Requisição e Resposta no Web Proxy (Caido)</figcaption></figure><p>Nesse cenário comecei a tentar quebrar o contexto do HTML e inserir alguma payload de XSS. A aplicação estava fazendo sanitização da tag &lt;script&gt; mas esqueceu de sanitizar eventos JavaScript em elementos HTML então eu usei a velha e boa payload: <strong>&lt;img/src=x onerror=alert(1)&gt; </strong>e recebi a famosa caixinha de alerta na tela:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*mUU7ClzvcQwWtAztyqGrDw.png" /><figcaption>Self-XSS</figcaption></figure><p>Mas temos um problema, o que conseguimos foi um SELF-XSS, ou seja, um bom gadget mas não uma vulnerabilidade. O que precisamos agora é identificar alguma forma de escalar esse Self-XSS em alguma chain de vulnerabilidades para de fato ter impacto. Esse tipo de chain depende bastante do contexto da aplicação.</p><h4>CSRF + XSS</h4><p>CSRF é uma vulnerabilidade conhecida e existem diversas formas de fazer a sua mitigação mas o que custa tentar, né?</p><p>Analisando novamente a requisição do formulário no web proxy percebi que era totalmente possível explorar CSRF pelo simples fato de que não existia nenhum tipo de mitigação, como tokens anti-CSRF ou algo do gênero.</p><p>No final, criei um trecho html simples que ficou assim:</p><pre>&lt;html&gt;<br>    &lt;body&gt;<br>        &lt;form enctype=&quot;application/x-www-form-urlencoded&quot; method=&quot;POST&quot; action=&quot;https://bwtt.exemplo.com/index.cfm&quot;&gt;<br>            &lt;table&gt;&lt;tr&gt;&lt;td&gt;companyname&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; value=&quot;&lt;img src=x onerror=alert(&#39;pad1ryoshi&#39;);&gt;&quot; name=&quot;companyname&quot;&gt;&lt;/td&gt;&lt;/tr&gt;<br>                &lt;tr&gt;&lt;td&gt;team&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; value=&quot;10&quot; name=&quot;team&quot;&gt;&lt;/td&gt;&lt;/tr&gt;<br>                &lt;tr&gt;&lt;td&gt;submit.x&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; value=&quot;72&quot; name=&quot;submit.x&quot;&gt;&lt;/td&gt;&lt;/tr&gt;<br>                &lt;tr&gt;&lt;td&gt;submit.y&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; value=&quot;15&quot; name=&quot;submit.y&quot;&gt;&lt;/td&gt;&lt;/tr&gt;<br>            &lt;/table&gt;&lt;input type=&quot;submit&quot; value=&quot;CLICK HERE&quot;&gt;<br>    &lt;/form&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*54nJ-ErrfL5dO-LGmpvwMA.png" /><figcaption>No navegador</figcaption></figure><p>Quando o usuário clicacava em “CLICK HERE” ele recebia a payload de XSS na fuça:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*9wfm38NUNXU1nmNwG2LHnQ.png" /><figcaption>uwu</figcaption></figure><h4>Fim</h4><p>Esse foi, de fato, a minha primeira publicação em português sobre algo que eu amo tanto que é segurança web e bug bounty então escolhi algo bem simples. Espero que nas próximas eu consiga trazer vulnerabilidades de impacto. Se eu consegui ensinar algo, nem que seja um pequeno detalhe ou tip, já fico satisfeito com essa publicação. Muito obrigado e aceito dicas e sugestões. Até, amigxs &gt;.&lt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/168/0*AT57_mKLvM__Ho-v" /></figure><h4>Materiais para estudo</h4><ul><li><a href="https://bxmbn.medium.com/ultimate-tips-and-tricks-to-find-more-cross-site-scripting-vulnerabilities-d2913765e2d5">Ultimate Tips And Tricks To Find More Cross-Site Scripting Vulnerabilities</a></li><li><a href="https://portswigger.net/web-security/csrf">Cross-site request forgery (CSRF)</a></li><li><a href="https://portswigger.net/web-security/cross-site-scripting">What is cross-site scripting (XSS) and how to prevent it? | Web Security Academy</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81bac80c969f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fuzzing Everything]]></title>
            <link>https://pad1ryoshi.medium.com/fuzzing-everything-67ab1c0f4b6a?source=rss-69a6858d5d7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/67ab1c0f4b6a</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[web-hacking]]></category>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[capture-the-flag]]></category>
            <category><![CDATA[fuzzing]]></category>
            <dc:creator><![CDATA[pad1ryoshi]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 21:28:59 GMT</pubDate>
            <atom:updated>2025-06-23T21:28:59.833Z</atom:updated>
            <content:encoded><![CDATA[<h3>🐈‍⬛</h3><p>Hi guys, I hope you’re all well and today I’ll show a lot of fuzzing techniques with ffuf which I use frequently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*kjNH-AwfdiEUaONAQDgZlA.jpeg" /></figure><h3>Directory Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://HOST:PORT/FUZZ -ic</pre><h3>Extension Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://HOST:PORT/DIRECTORY/indexFUZZ</pre><h3>Page Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://HOST:PORT/DIRECTORY/FUZZ.EXTENSION</pre><h3>Recursive Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://SERVER_IP:PORT/FUZZ -recursion -recursion-depth 1 -v</pre><h3>Subdomain Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://FUZZ.HOST/</pre><h3>Vhost Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://HOST:PORT/ -H &#39;Host: FUZZ.HOST&#39;</pre><h3>Parameter Fuzzing — GET</h3><pre>ffuf -w /wordlist.txt:FUZZ -u SCHEME://HOST:PORT/DIRECTORY/ENDPOINT?FUZZ=ke</pre><h3>Parameter Fuzzing — POST</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://HOST:PORT/DIRECTORY/ENDPOINT.php -X POST -d &#39;FUZZ=key&#39; -H &#39;Content-Type: application/x-www-form-urlencoded&#39;</pre><h3>Value Fuzzing</h3><pre>ffuf -w wordlist.txt:FUZZ -u SCHEME://HOST:PORT/DIRECTORY/ENDPOINT.php -X POST -d &#39;id=FUZZ&#39; -H &#39;Content-Type: application/x-www-form-urlencoded&#39;</pre><p>There are some more techniques on my blog: <a href="https://pad1ryoshi.github.io/blog/2025/06/04/fuzzing-techniques.html">https://pad1ryoshi.github.io/blog/2025/06/04/fuzzing-techniques.html</a></p><p>Thanks and I hope this blog can help you! Bye, see later :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67ab1c0f4b6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SETUID: The Art Of Priv Esc]]></title>
            <link>https://pad1ryoshi.medium.com/setuid-the-art-of-priv-esc-5b82d2528715?source=rss-69a6858d5d7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b82d2528715</guid>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[set-uid]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[pad1ryoshi]]></dc:creator>
            <pubDate>Wed, 12 Mar 2025 18:02:53 GMT</pubDate>
            <atom:updated>2025-03-12T18:02:53.459Z</atom:updated>
            <content:encoded><![CDATA[<h3>SETUID -&gt; The Art Of Priv Esc</h3><p>Hi, guys. Today I’m going to talk a a little bit about an elevation of privilege technique in Linux system’s. This short article is aimed at anyone who does security testing, plays CTF or is just curious about information technology.</p><blockquote>OBS: If you don’t understand or aren’t familiar with how file permissions work in Linux, then I recommend that you read <a href="https://www.redhat.com/en/blog/linux-file-permissions-explained">this article</a> before continuing.</blockquote><h4>So, what would “<strong>setuid</strong>” be?</h4><p><strong>Setuid </strong>(<a href="https://linuxconfig.org/how-to-use-special-permissions-the-setuid-setgid-and-sticky-bits">Set User ID</a>) is a permission bit in the Unix operating system and its derivatives, such as Linux, that allows a user to run an executable file with the permissions of the owner of that file, usually root, instead of their own permissions. This is particularly useful for tasks that temporarily require elevated privileges, such as changing passwords or sending network packets.</p><p>When the <strong>Setuid </strong>bit is set in an executable file, any user who executes that file will do so with the privileges of the file’s owner. For example, if an executable with Setuid is owned by the root user, it will run with root privileges, regardless of who runs it.</p><h4>Creating a vulnerable c program:</h4><p>To show a practical example, let’s create a vulnerable executable file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*LHWypml06L3buG_z4c5n6Q.png" /><figcaption>exploit.c</figcaption></figure><p>This program sets the user ID to 0 (root) and then opens a bash shell.</p><p>Now, let’s make sure that this program is owned by the root user and that it has the setuid bit enabled:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*_J0rSXVlvOioKbcT1M1dvg.png" /><figcaption>exploit.c(2)</figcaption></figure><p>For the demonstration tests, I will use a user who does not have root permission:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*zjWfzmuWW6eC-mtrrACaug.png" /><figcaption>vulnerable-user</figcaption></figure><h4>Enumeration</h4><p>With our laboratory ready, let’s start the exploration part. For any privilege elevation technique, we always need to start with the ENUMERATION phase, so that we have a general idea of what needs to be done.</p><p>To enumerate files/programs/binaries that have the setuid bit set there are a few ways to do it, I particularly use the following <a href="https://man7.org/linux/man-pages/man1/find.1.html">find </a>command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*5v-EsazBXV2tWwG2Wc9pQA.png" /></figure><h4>Exploitation</h4><p>As you can see, we’ve managed to find our vulnerable file with the setuid bit set.</p><p>Even with the user without sudoers permission, we can execute this vulnerable file and get our elevation of privilege:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*PUFHhaVC_uFKWW2BlDfdOA.png" /><figcaption>priv esc</figcaption></figure><h4>Tips</h4><p>If you want to learn more about the subject, I recommend the following sites for study:</p><ol><li><a href="https://gtfobins.github.io/">GTFOBins is a curated list of Unix binaries that can be used to bypass local security restrictions in misconfigured systems by Emilio Pinna and Andrea Cardaci.</a></li><li><a href="https://linuxconfig.org/how-to-use-special-permissions-the-setuid-setgid-and-sticky-bits">How to use special permissions: the setuid, setgid and sticky bits</a> by <a href="https://linuxconfig.org/author/egidio">Egidio Docile</a></li><li><a href="https://swisskyrepo.github.io/InternalAllTheThings/redteam/escalation/linux-privilege-escalation/#suid">Linux Privilege Escalation by swisskyrepo</a></li><li><a href="https://antonyt.com/blog/2020-03-22/privilege-escalation-via-setuid">Privilege Escalation via setuid by Antony Tran</a></li><li><a href="https://www.hackercoolmagazine.com/linux-privilege-escalation-exploiting-setuid-bit/?srsltid=AfmBOooHu7vh-D3GIkW9KI0ekMLocVmvGJiVVN85VqGGAJQUSiE3cEap">SetUID privilege escalation in Linux by kanishka10</a></li></ol><h4><strong>Final</strong></h4><p>This was a very simple example, but the important thing is that you can use this line of reasoning to enumerate and, if vulnerable, exploit setuid.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b82d2528715" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>