Tuesday 01 December 2026 17:23:43 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Arbitrary file read

A flaw that can let an attacker access files they should not be able to read.

An arbitrary file read flaw lets an attacker retrieve files that should be protected by the application or operating system. The file may be local configuration data, logs, credentials, source code, or other sensitive information. The weakness usually appears when a program accepts a filename, path, or identifier without strict validation, then uses it to open a file on the server.

This matters because reading one “private” file can expose secrets that lead to broader compromise. Attackers often use file-read bugs to harvest passwords, API keys, session data, or internal paths, then chain that information into account takeover or remote code execution. Defenders look for path traversal, weak filename checks, and unsafe handling of symlinks or archive contents. Strong allowlists, canonical path checks, least privilege, and careful error handling reduce the risk.

← WIKICROOK index