FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

Β© 2026 FlareStart. All rights reserved.

Back to articles
Day 20: SUID Deep-Dive β€” From Zip to Tar Exploitation πŸ•΅οΈβ€β™‚οΈ
NewsTools

Day 20: SUID Deep-Dive β€” From Zip to Tar Exploitation πŸ•΅οΈβ€β™‚οΈ

via Dev.to TutorialDevon Argent2w ago

πŸ› οΈ The Mechanics: RUID vs. EUID When you execute a SUID binary, two things happen: Real UID (RUID): Stays as your normal user (e.g., 1001). This is who you actually are. Effective UID (EUID): Switches to the file owner (e.g., 0/Root). This is the power the system checks when you try to read /etc/shadow . Understanding this gap is key to knowing why a spawned shell from an SUID process becomes a Root Shell . πŸ”“ Beyond the Basics: Exploiting Complex Binaries We often talk about find or vim , but today I audited tools that aren't obviously dangerous: 1. The zip Escape The zip utility has a test feature ( -T ) that allows you to specify a command to use for unzipping. The Exploit: zip exploit.zip /etc/hosts -T --unzip-command="sh -c /bin/sh" 2. The tar Checkpoint tar can execute commands at specific "checkpoints" during the archiving process. The Exploit: tar -cf /dev/null /dev/null --checkpoint=1 --checkpoint-action=exec=/bin/sh πŸ•΅οΈβ€β™‚οΈ The Researcher's Workflow When I encounter a binary tha

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
11 views

Related Articles

Best WiiM Streamers (2026): Simplify Your Sound With WiiM Streaming Gear
News

Best WiiM Streamers (2026): Simplify Your Sound With WiiM Streaming Gear

Wired β€’ 1d ago

Retrospec Judd Rev 2 Electric Folding Bike Review: Affordable, Simple, Easy to Store
News

Retrospec Judd Rev 2 Electric Folding Bike Review: Affordable, Simple, Easy to Store

Wired β€’ 1d ago

These car gadgets are worth every penny
News

These car gadgets are worth every penny

ZDNet β€’ 1d ago

These Are the 4 Artemis II Astronauts Leading the Historic Return to the Moon
News

These Are the 4 Artemis II Astronauts Leading the Historic Return to the Moon

Wired β€’ 1d ago

Taylor Lorenz’s Screen Time Is Almost 17 Hours a Day
News

Taylor Lorenz’s Screen Time Is Almost 17 Hours a Day

Wired β€’ 1d ago

Discover More Articles