Directory Traversal: Linux Files

File inclusion and path traversalExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  • Operating System and Informations

    powershell
    /etc/issue
    /etc/group
    /etc/hosts
    /etc/motd
  • Processes

    ps1
    /proc/[0-9]*/fd/[0-9]*   # first number is the PID, second is the filedescriptor
    /proc/self/environ
    /proc/version
    /proc/cmdline
    /proc/sched_debug
    /proc/mounts
  • Network

    ps1
    /proc/net/arp
    /proc/net/route
    /proc/net/tcp
    /proc/net/udp
  • Current Path

    ps1
    /proc/self/cwd/index.php
    /proc/self/cwd/main.py
  • Indexing

    ps1
    /var/lib/mlocate/mlocate.db
    /var/lib/plocate/plocate.db
    /var/lib/mlocate.db
  • Credentials and history

    ps1
    /etc/passwd
    /etc/shadow
    /home/$USER/.bash_history
    /home/$USER/.ssh/id_rsa
    /etc/mysql/my.cnf
  • Kubernetes

    ps1
    /run/secrets/kubernetes.io/serviceaccount/token
    /run/secrets/kubernetes.io/serviceaccount/namespace
    /run/secrets/kubernetes.io/serviceaccount/certificate
    /var/run/secrets/kubernetes.io/serviceaccount

Comments

No comments yet.