Web Security Lab
Web Security Lab
Pre-requisites:
Learning Objective:
Registration:
Login:
Dashboard:
In order for us to capture the HTTP requests being sent to the
server, we can use OWASP ZAP or Burp Suite Community Edition.
To learn more about the detailed usage of Burp Suite and its
functionalities, you may refer to the Burp Suite Module.
Capturing the HTTP traffic
There are several steps that can be taken to mitigate the risk of
broken access control vulnerabilities in PHP applications:
Sample Code
// Example usage
if (hasPermission('admin', 'delete')) {
// Allow delete operation
} else {
// Deny delete operation
}
Sample Code
Sample Code
// Start session
session_start();
Sample Code
Here are some references that you can give to PHP developers to
help them implement these mitigation strategies: