Cross-site Scripting (XSS) - Reflected in bigprof-software/online-invoicing-system

Valid
Reported on Jun 28th 2021

✍️ Description

Application is vulnerable to XSS through key parameter. Line 85 of membership_passwordReset.php sends unvalidated data to a web browser, which can result in the browser executing malicious code. In this case the data is sent at builtin_echo() in membership_passwordReset.php at line 85.

🕵️‍♂️ Proof of Concept

Below is the vulnerable code which get unvalidated input as ?key= and reflect it to user.

<input type="hidden" name="key" value="<?php echo $_GET['key']; ?>"> 

User below payload to exploit:

/membership_passwordReset.php?key=;?>"><script>alert(1)</script>

💥 Impact

The impact of an exploited XSS vulnerability on a web application varies a lot. It ranges from user's Session Hijacking, and if used in conjunction with a social engineering attack it can also lead to disclosure of sensitive data, CSRF attacks and other security vulnerabilities. By exploiting a cross-site scripting vulnerability an attacker can impersonate the victim and take over the account. If the victim has administrative rights it might even lead to code execution on the server, depending on the application and the privileges of the account. Read about the apache.org jira incident for more information on how a XSS vulnerability was used in a successful attack which also led to code execution.

We have contacted a member of the bigprof-software/online-invoicing-system team and are waiting to hear back a month ago
BigProf Software validated this vulnerability 25 days ago
Akshay Jain has been awarded the disclosure bounty
$25
The fix bounty is now up for grabs
$6.25
BigProf Software confirmed that a fix has been merged on ccc50f 25 days ago
BigProf Software has been awarded the fix bounty
$6.25