The application Online Eyewear Shop is vulnerable to SQL Injection Error-based attacks.
The vulnerable parameter is the "id" GET param inside the following requested URL:
- http://localhost/oews/?p=products/view_product&id=*
The above URL is related to the following source code file:
- oews/products/view_product.php
The payloads I used to determine whether the application is vulnerable are the followings:
- id=7' AND '1'='2 -> The application prints an error alert and kicks me out of the page
- id=7' AND '1'='1 -> The application approves the query and shows me the product related to the id equal to 7