Arbitrary File Read

Cybersecurity Glossary APIs & Server-Side Security

Arbitrary File Read

A vulnerability that allows attackers to read files from the server's filesystem they shouldn't access, exposing configurations, credentials, and source code.

Arbitrary File Read is a vulnerability class that allows attackers to read files from the server's filesystem that they should not have access to. This can expose sensitive configuration files, source code, credentials, and private data.

How It Works

The vulnerability occurs when an application reads files based on user-controlled input without proper validation. Unlike LFI, arbitrary file read doesn't execute the file contents – it simply returns them to the attacker.

Escalation Potential

  • Read database credentials β†’ database access
  • Read SSH keys β†’ server access
  • Read source code β†’ find more vulnerabilities
  • Read JWT secrets β†’ forge authentication tokens

See Also