SugarCRM <= 12.2.0 Two SQL Injection Vulnerabilities
User input passed through the 'metrics' parameter to the '/Forecasts/metrics' REST API endpoint is not properly sanitized before being used to construct a SQL query. A malicious user could exploit this to read sensitive data from the database through in-band SQL Injection attacks.
karmainsecurity.com
Published on karmainsecurity.com
https://karmainsecurity.com/pocs/CVE-2023-358111.php
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
A malicious user could read sensitive data from the database through in-band SQL Injection attacks.
What the attacker needed
Access to the REST API endpoint; ability to send requests with a metrics parameter
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The application takes a value from the user and puts it directly into a database command without cleaning it first. This lets an attacker change the command to make the database return information it should not, such as other users' data. This is called SQL injection.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.