Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check /log folder security #28

Open
Tracked by #1
carstingaxion opened this issue Jul 11, 2023 · 0 comments
Open
Tracked by #1

Check /log folder security #28

carstingaxion opened this issue Jul 11, 2023 · 0 comments
Labels
security Issues that have security implications

Comments

@carstingaxion
Copy link
Member

carstingaxion commented Jul 11, 2023

Idea code

function get_log_folder() : string {
	if ( defined('WP_DEBUG_LOG') ) {
		return dirname( WP_DEBUG_LOG );
	}

	return '';
}
function is_log_folder_secured() : bool {
	
	$log_folder_htaccess = get_log_folder() . '/.htaccess';
	if ( file_exists( $log_folder_htaccess ) ) {
		return true;
	}

	return false;
}
function secure_log_folder() : void {
	# code...
}
@carstingaxion carstingaxion changed the title Check /log folder security Check /log folder security Jul 11, 2023
@carstingaxion carstingaxion added the security Issues that have security implications label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Issues that have security implications
Projects
Status: No status
Development

No branches or pull requests

1 participant