Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
localpriv/poc
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (23 sloc)
984 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Exploit Title: Merchandise Online Store System - Vertical Privilege Escalation | |
| # Exploit Author: Pratik Shetty | |
| # Vendor Name: oretnom23 | |
| # Vendor Homepage: https://www.sourcecodester.com/php/14887/merchandise-online-store-php-free-source-code.html | |
| # Software Link: https://www.sourcecodester.com/php/14887/merchandise-online-store-php-free-source-code.html | |
| # Version: v1.0 | |
| # Tested on: Parrot GNU/Linux 4.10, Apache | |
| # CVE: CVE-2022-42238 | |
| Description:- | |
| A Vertical Privilege Escalation issue in Merchandise Online Store System v.1.0 allows an attacker to get access into admin account without having any privilege. | |
| ` | |
| Payload: | |
| /admin | |
| ` | |
| Parameter:- | |
| http://localhost/vloggers_merch/admin/ | |
| ` | |
| Steps to reproduce:- | |
| 1. First login as normal user | |
| 2. We have got the above url as: http://localhost/vloggers_merch/ | |
| 3. Now lets add one more directory : /admin | |
| 4. As we can see now got the admin access and we can make changes in admin panel | |
| 5. We can even change the admin password |