<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Machine on nquangit - Pentester</title><link>https://nquangit.io.vn/tags/machine/</link><description>Recent content from nquangit - Pentester</description><generator>Hugo</generator><language>en</language><managingEditor>nquang.it.04@gmail.com (nquangit)</managingEditor><webMaster>nquang.it.04@gmail.com (nquangit)</webMaster><copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright><lastBuildDate>Tue, 05 Aug 2025 01:00:00 +0700</lastBuildDate><atom:link href="https://nquangit.io.vn/tags/machine/index.xml" rel="self" type="application/rss+xml"/><item><title>HTB Editor</title><link>https://nquangit.io.vn/post/htb/machines/editor/</link><pubDate>Tue, 05 Aug 2025 01:00:00 +0700</pubDate><author>nquang.it.04@gmail.com (nquangit)</author><guid>https://nquangit.io.vn/post/htb/machines/editor/</guid><description>
&lt;h1&gt;HTB Editor&lt;/h1&gt;&lt;p&gt;Author: nquangit(nquang.it.04@gmail.com)&lt;/p&gt;
        
          Editor2nd Aug 2025
Difficulty: Easy
Machine Author(s): kavigihan &amp;amp; TheCyberGeek
Successfully Pwned Editornquangit has successfully completed and pwned this machine on Hack The Box.
Hack The BoxMachine Information None.
Enumeration Every journey begins with a single step, and every attack starts by gathering as much information as possible about the target. As the ancient maxim goes, &amp;ldquo;Know your enemy and know yourself, and in a hundred battles you will never be defeated.
        
        &lt;hr&gt;&lt;p&gt;Published on 2025-08-05 at &lt;a href='https://nquangit.io.vn/'&gt;nquangit - Pentester&lt;/a&gt;, last modified on 2025-08-05&lt;/p&gt;&lt;p&gt;All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!&lt;/p&gt;</description><category>htb</category><category>hackthebox</category><category>machine</category><category>writeup</category><category>editor</category><category>seasonal</category></item><item><title>HTB Era</title><link>https://nquangit.io.vn/post/htb/machines/era/</link><pubDate>Sun, 03 Aug 2025 01:00:00 +0700</pubDate><author>nquang.it.04@gmail.com (nquangit)</author><guid>https://nquangit.io.vn/post/htb/machines/era/</guid><description>
&lt;h1&gt;HTB Era&lt;/h1&gt;&lt;p&gt;Author: nquangit(nquang.it.04@gmail.com)&lt;/p&gt;
        
          Era26th Jul 2025
Difficulty: Medium
Machine Author(s): yurivich
Successfully Pwned Eranquangit has successfully completed and pwned this machine on Hack The Box.
Hack The BoxMachine Information None.
Enumeration Enumeration is the first step in our journey to pwn the machine. We will start with some scans to identify potential vulnerabilities and then proceed with manual inspection of the application.
Nmap Scan # Nmap 7.95 scan initiated Sat Aug 2 13:42:39 2025 as: /usr/lib/nmap/nmap --privileged -F -vv -sV -sC -Pn -oN nmap.
        
        &lt;hr&gt;&lt;p&gt;Published on 2025-08-03 at &lt;a href='https://nquangit.io.vn/'&gt;nquangit - Pentester&lt;/a&gt;, last modified on 2025-08-03&lt;/p&gt;&lt;p&gt;All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!&lt;/p&gt;</description><category>htb</category><category>hackthebox</category><category>machine</category><category>writeup</category><category>era</category><category>seasonal</category></item><item><title>Outbound</title><link>https://nquangit.io.vn/post/htb/machines/outbound/</link><pubDate>Sun, 27 Jul 2025 01:00:00 +0700</pubDate><author>nquang.it.04@gmail.com (nquangit)</author><guid>https://nquangit.io.vn/post/htb/machines/outbound/</guid><description>
&lt;h1&gt;Outbound&lt;/h1&gt;&lt;p&gt;Author: nquangit(nquang.it.04@gmail.com)&lt;/p&gt;
        
          &lt;p&gt;&lt;img alt="HTB Banner" src="/post/htb/machines/outbound/images/banner.png"&gt;&lt;/p&gt;












&lt;div style="display: flex; align-items: center; gap: 1em; margin: 1.5em 0;"&gt;
  &lt;img src="/images/htb.png" alt="Machine icon"
       style="zoom: 80%" align: left/&gt;
  &lt;div&gt;
    &lt;h1 style="font-size: 2.5em; color: #ccc; margin: 0;"&gt;Outbound&lt;/h1&gt;
    &lt;p style="color: #ccc; margin: 0.2em 0 0;"&gt;12&lt;sup&gt;th&lt;/sup&gt; Jul 2025&lt;/p&gt;
    &lt;p style="color: #ccc; margin: 0.2em 0 0;"&gt;Difficulty: Easy&lt;/p&gt;
    &lt;p style="color: #ccc; margin: 0.2em 0 0;"&gt;Machine Author(s): TheCyberGeek&lt;/p&gt;
  &lt;/div&gt;
&lt;/div&gt;













&lt;a
  href="https://labs.hackthebox.com/achievement/machine/1174987/672"
  target="_blank" rel="noopener noreferrer"
  class="machine-box"
&gt;
  &lt;div class="machine-box__content"&gt;
    &lt;h3 class="machine-box__title"&gt;Successfully Pwned Outbound&lt;/h3&gt;
    &lt;p class="machine-box__desc"&gt;nquangit has successfully completed and pwned this machine on Hack The Box.&lt;/p&gt;
    
    &lt;div class="machine-box__footer"&gt;
      &lt;img src="/images/htb.png" alt="Hack The Box Logo" class="machine-box__footer-logo"&gt;
      &lt;span class="machine-box__footer-text"&gt;Hack The Box&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="machine-box__thumb"&gt;
    &lt;img src="/post/htb/machines/outbound/images/pwned.png" alt="Thumbnail Outbound"&gt;
  &lt;/div&gt;
&lt;/a&gt;

&lt;style&gt;
 
.machine-box {
  display: flex;
  align-items: center;
  background: #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
   
  text-decoration: none;
  color: inherit;
  transition: transform .2s;
  cursor: pointer;
   
  flex-wrap: nowrap;
}
.machine-box:hover {
  transform: translateY(-4px);
}

 
.machine-box__content {
  flex: 1;
  padding: 16px;
  cursor: pointer;
}
 
.machine-box__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
}
 
.machine-box__desc {
  margin: 0;
  color: #ccc;
  cursor: pointer;
}

 
.machine-box__footer {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.machine-box__footer-logo {
  width: 30px;
  height: auto;
  margin-right: 15px;
  border: #1e1e2e;
  border-radius: 50%;
}
.machine-box__footer-text {
  font-size: 0.875rem;
  color: #ccc;
  text-decoration: none;
  margin-left: 10px;
}


 
.machine-box__thumb img {
  display: block;
  width: 200px;
  height: auto;
  object-fit: cover;
}

.machine-box,
.machine-box *,
.machine-box::before,
.machine-box::after {
    text-decoration: none !important;
    content: none !important;
}

 
@media (max-width: 768px) {
  .machine-box {
    flex-direction: column;
    text-align: center;       
  }
  .machine-box__content {
    padding: 12px;
  }
  .machine-box__title {
    font-size: 1.1rem;
  }
  .machine-box__desc {
    font-size: 0.9rem;
  }
  .machine-box__footer {
    justify-content: center;  
  }
  .machine-box__thumb img {
    width: 100%;
    max-height: 180px;        
    object-fit: cover;
  }
}
&lt;/style&gt;


&lt;h2 id="machine-information"&gt;
&lt;a class="header-anchor" href="#machine-information"&gt;&lt;/a&gt;
Machine Information
&lt;/h2&gt;&lt;p&gt;As is common in real life pentests, you will start the Outbound box with credentials for the following account &lt;code&gt;tyler / LhKL1o9Nm3X2&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="enumeration"&gt;
&lt;a class="header-anchor" href="#enumeration"&gt;&lt;/a&gt;
Enumeration
&lt;/h2&gt;&lt;h3 id="nmap-scan"&gt;
&lt;a class="header-anchor" href="#nmap-scan"&gt;&lt;/a&gt;
nmap Scan
&lt;/h3&gt;&lt;p&gt;&lt;img alt="Nmap Scan result" src="/post/htb/machines/outbound/images/1-nmap.png"&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-plaintext" data-lang="plaintext"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Nmap 7.95 scan initiated Wed Jul 23 13:39:53 2025 as: /usr/lib/nmap/nmap --privileged -F -vv -sV -sC -Pn -oN nmap-scan.txt 10.10.11.77
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Nmap scan report for 10.10.11.77
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Host is up, received user-set (0.061s latency).
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Scanned at 2025-07-23 13:39:54 +07 for 15s
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Not shown: 98 closed tcp ports (reset)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;PORT   STATE SERVICE REASON         VERSION
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;22/tcp open  ssh     syn-ack ttl 62 OpenSSH 9.6p1 Ubuntu 3ubuntu13.12 (Ubuntu Linux; protocol 2.0)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;| ssh-hostkey:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;|   256 0c:4b:d2:76:ab:10:06:92:05:dc:f7:55:94:7f:18:df (ECDSA)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;| ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBN9Ju3bTZsFozwXY1B2KIlEY4BA+RcNM57w4C5EjOw1QegUUyCJoO4TVOKfzy/9kd3WrPEj/FYKT2agja9/PM44=
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;|   256 2d:6d:4a:4c:ee:2e:11:b6:c8:90:e6:83:e9:df:38:b0 (ED25519)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;|_ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH9qI0OvMyp03dAGXR0UPdxw7hjSwMR773Yb9Sne+7vD
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;80/tcp open  http    syn-ack ttl 62 nginx 1.24.0 (Ubuntu)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;| http-methods:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;|_  Supported Methods: GET HEAD POST OPTIONS
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;|_http-title: Did not follow redirect to http://mail.outbound.htb/
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;|_http-server-header: nginx/1.24.0 (Ubuntu)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Read data files from: /usr/share/nmap
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# Nmap done at Wed Jul 23 13:40:09 2025 -- 1 IP address (1 host up) scanned in 15.39 seconds
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;With the Nmap scan, we can see that the target machine has two open ports:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;22 (SSH) - OpenSSH version 9.6p1&lt;/li&gt;
&lt;li&gt;80 (HTTP) - Nginx version 1.24.0&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We can also see that the web server redirects to &lt;code&gt;http://mail.outbound.htb/&lt;/code&gt;. Then we need to add this domain to our &lt;code&gt;/etc/hosts&lt;/code&gt; file:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;ip_address mail.outbound.htb&amp;#34;&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt; sudo tee -a /etc/hosts
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="nuclei-scan"&gt;
&lt;a class="header-anchor" href="#nuclei-scan"&gt;&lt;/a&gt;
Nuclei Scan
&lt;/h3&gt;&lt;p&gt;&lt;img alt="Nuclei Scan" src="/post/htb/machines/outbound/images/2-nuclei.png"&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-plaintext" data-lang="plaintext"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[CVE-2025-49113:version_check] [http] [critical] http://mail.outbound.htb [&amp;#34;Roundcube Version: 1.6.10&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[roundcube-log-disclosure] [http] [medium] http://mail.outbound.htb/roundcube/logs/errors.log [&amp;#34;3971&amp;#34;] [roundcube_path=&amp;#34;roundcube/logs/errors.log&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[cookies-without-secure] [javascript] [info] mail.outbound.htb [&amp;#34;roundcube_sessid&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[waf-detect:nginxgeneric] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ssh-password-auth] [javascript] [info] mail.outbound.htb:22
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ssh-server-enumeration] [javascript] [info] mail.outbound.htb:22 [&amp;#34;SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.12&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ssh-sha1-hmac-algo] [javascript] [info] mail.outbound.htb:22
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[ssh-auth-methods] [javascript] [info] mail.outbound.htb:22 [&amp;#34;[&amp;#34;publickey&amp;#34;,&amp;#34;password&amp;#34;]&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[openssh-detect] [tcp] [info] mail.outbound.htb:22 [&amp;#34;SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.12&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[form-detection] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[nginx-version] [http] [info] http://mail.outbound.htb [&amp;#34;nginx/1.24.0&amp;#34;]
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[roundcube-webmail-portal] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:strict-transport-security] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:content-security-policy] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:permissions-policy] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:x-content-type-options] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:x-permitted-cross-domain-policies] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:referrer-policy] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:clear-site-data] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:cross-origin-embedder-policy] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:cross-origin-opener-policy] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[http-missing-security-headers:cross-origin-resource-policy] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[tech-detect:bootstrap] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[tech-detect:nginx] [http] [info] http://mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;[caa-fingerprint] [dns] [info] mail.outbound.htb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In the Nuclei scan results, we can see that the target machine is running Roundcube version 1.6.10, which is vulnerable to CVE-2025-49113. This vulnerability allows remote code execution by authenticated users because the _from parameter in a URL is not validated in program/actions/settings/upload.php, leading to PHP Object Deserialization.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s also worth noting that the Nuclei scan found a log file at &lt;code&gt;roundcube/logs/errors.log&lt;/code&gt;, which may contain sensitive information.&lt;/p&gt;
&lt;h3 id="manual-inspection"&gt;
&lt;a class="header-anchor" href="#manual-inspection"&gt;&lt;/a&gt;
Manual Inspection
&lt;/h3&gt;&lt;p&gt;&lt;img alt="Roundcube Version" src="/post/htb/machines/outbound/images/3-roundcube.png"&gt;&lt;/p&gt;
&lt;p&gt;With the provided credentials &lt;code&gt;tyler / LhKL1o9Nm3X2&lt;/code&gt;, we can log in to the Roundcube webmail interface at &lt;code&gt;http://mail.outbound.htb/roundcube/&lt;/code&gt;. After logging in, we can confirm that the version is indeed 1.6.10 and that it is vulnerable to &lt;code&gt;CVE-2025-49113&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="exploitation"&gt;
&lt;a class="header-anchor" href="#exploitation"&gt;&lt;/a&gt;
Exploitation
&lt;/h2&gt;
        
        &lt;hr&gt;&lt;p&gt;Published on 2025-07-27 at &lt;a href='https://nquangit.io.vn/'&gt;nquangit - Pentester&lt;/a&gt;, last modified on 2025-07-27&lt;/p&gt;&lt;p&gt;All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!&lt;/p&gt;</description><category>htb</category><category>hackthebox</category><category>machine</category><category>writeup</category></item></channel></rss>