Directory traversal attacks, often referred to as dot-dot-slash attacks, exploit relative path references to access restricted files.