make_result( array( 'id' => 'directory_listing', 'title' => __( 'Directory listing may be enabled', 'aipatch-security-scanner' ), 'description' => __( 'The uploads directory does not have an index file and no .htaccess protection was detected.', 'aipatch-security-scanner' ), 'severity' => 'low', 'confidence' => 'medium', 'category' => 'server', 'why_it_matters' => __( 'Directory listing allows anyone to browse your files, which can expose sensitive information.', 'aipatch-security-scanner' ), 'recommendation' => __( 'Add an empty index.php file to your uploads directory or add "Options -Indexes" to your .htaccess file.', 'aipatch-security-scanner' ), 'dismissible' => true, 'evidence' => 'No index.php in uploads directory, no Options -Indexes in .htaccess', 'false_positive_likelihood' => 'medium', ) ), ); } }