---
title: "Discussion on \"PATH Hijacking a SUID Log Rotator: From Tokyo to root\" | Hashnode"
description: "Discussion on \"PATH Hijacking a SUID Log Rotator: From Tokyo to root\". A 250-point CTF exploitation challenge where a root-owned helper called `backup` by relative name handed me an effective UID of 0   after my first script failed for a reason I did not expect"
url: "https://hashnode.com/posts/path-hijacking-a-suid-log-rotator-from-tokyo-to-root/6ae420a839aae63efd551d03"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PATH Hijacking a SUID Log Rotator: From Tokyo to root](https://hareeshwarnk.hashnode.dev/path-hijacking-a-suid-log-rotator-from-tokyo-to-root?utm_source=hashnode&utm_medium=feed)

A 250-point CTF exploitation challenge where a root-owned helper called \`backup\` by relative name handed me an effective UID of 0 after my first script failed for a reason I did not expect

Oct 30 · 6 min read · hareeshwarnk.hashnode.dev  
Read the article

-   [#linux-privilege-escalation](https://hashnode.com/tag/linux-privilege-escalation)
-   [#suid](https://hashnode.com/tag/suid)
-   [#path-hijacking](https://hashnode.com/tag/path-hijacking)
-   [#ctf-writeup](https://hashnode.com/tag/ctf-writeup)
-   [#ghidra](https://hashnode.com/tag/ghidra)
-   [#cwe-426](https://hashnode.com/tag/cwe-426)

## Written by

[Hareeshwar N K](https://hashnode.com/@H4x0rGh0st)

@H4x0rGh0st

  
[View profile](https://hashnode.com/@H4x0rGh0st)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
