OWASP Hunting

Server-side

Symbolic Link Attacks

Symbolic link attacks exploit race conditions or file extraction to create symlinks that redirect file operations to unintended targets.

Payloads are read from main at 35c1f2b (committed 22 Nov 2026). Project version 1.0.2.

These payloads are for authorized testing only: systems you own, authorized bug bounty programs, or controlled lab environments. Unauthorized testing is illegal.

Payload files

Folder on GitHub

Use the arrow keys to move between payloads. Press Enter or C to copy the focused payload.

symbolic-link-payloads.txt

137 payloads · 12 KB
Source

Loading payloads for Symbolic Link Attacks…

What it is#

Symbolic link (symlink) attacks occur when an attacker creates or controls a symlink that causes an application to operate on an unintended file. In web applications, this commonly manifests through archive extraction (zip/tar slip) where archive entries contain path traversal sequences or symlinks pointing to sensitive files.

Attack vectors#

  • Archive extraction features (zip, tar, gzip)
  • File import functionality
  • Backup and restore features
  • CMS theme/plugin installation via upload
  • Docker and container image builds

Testing methodology#

  1. Create a zip file containing a symlink pointing to /etc/passwd
  2. Test zip slip: include a file with path ../../etc/cron.d/malicious
  3. Upload the crafted archive and check if symlink is followed
  4. Test for race conditions in temporary file creation

Indicators of vulnerability#

  • Archive extraction results in files outside the intended directory
  • Sensitive file contents accessible after archive extraction
  • Arbitrary file write demonstrated outside extraction directory

Detection guidance#

Validate all extracted file paths during archive extraction. Reject archives containing symlinks or path traversal sequences.

Mitigation and remediation#

  • Validate all extracted paths against the intended destination directory using canonical path resolution
  • Reject archives containing symlinks or path traversal sequences (../)
  • Use secure archive extraction libraries that handle these cases
  • Extract to a temporary isolated directory and validate before use

References#

Responsible Use

All content in this reference is for authorized security testing only. Use only on systems you own or have explicit written permission to test.

  • Systems and applications you own
  • Authorized penetration testing engagements
  • Bug bounty programs with defined scope
  • Educational lab environments (DVWA, WebGoat, HackTheBox)