HTB Challeneg Fork and Knives
by Computerlab - Saturday September 7, 2024 at 08:09 AM
#1
https://app.hackthebox.com/challenges/forks-and-knives
This being a PWN Challenge


Welcome to the Forks & Knives restaurant! My name is Forky and I will be your handler tonight Can I have your name please? => ComputerLab +--------------------+ | 1) Reserve a table | | 2) Place an order  | | 3) Exit            | +--------------------+ +- Manager interface (in development) -+ | 4) Login as manager                  | | 5) View reservations                | | 6) Clear reservations                | +--------------------------------------+ =>


the first 3 actions can be done by the user  the next 3 are alloted for the manager. 
An escalation is required to get into the under development Manager Interface
Reply
#2
There is a buffer overflow with the name input. If a 16 character string is input the bit used for the manager interface gets set to 0 instead of its default 1.
Reply
#3
(09-07-2024, 09:45 AM)Bulldog7060 Wrote: There is a buffer overflow with the name input. If a 16 character string is input the bit used for the manager interface gets set to 0 instead of its default 1.
Yup, that's right. That's how you get to manager interface.

And probably the path is reserve tables, leak canary, then place an order and buffer overflow to get shell - probably https://www.ctfrecipes.com/pwn/stack-exp...ck/ret2plt
Reply
#4
Can anyone provide a writeup for this challenge?
Reply
#5
(09-07-2024, 05:07 PM)peRd1 Wrote:
(09-07-2024, 09:45 AM)Bulldog7060 Wrote: There is a buffer overflow with the name input. If a 16 character string is input the bit used for the manager interface gets set to 0 instead of its default 1.
Yup, that's right. That's how you get to manager interface.

And probably the path is reserve tables, leak canary, then place an order and buffer overflow to get shell - probably https://www.ctfrecipes.com/pwn/stack-exp...ck/ret2plt

Check your dm sir
Reply
#6
hey @trevor69000  plz post it publically . It could be of more help
Reply
#7
(09-10-2024, 09:50 AM)Computerlab Wrote: hey @trevor69000  plz post it publically . It could be of more help

i am so sorry guys for the misunderstanding, i wrote check dm for hints/help
Reply
#8
I deeply appreciate your time and effort.
Reply
#9
anyone got any hints ?
Reply
#10
Stuck on this challenge, anyone got any hints
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,273 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,851 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,061 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,277 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,549 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: 1 Guest(s)