ENH: auxiliary module for Flowise Authentication Bypass CVE-2025-58434 - #21757
Open
rmhowe425 wants to merge 8 commits into
Open
ENH: auxiliary module for Flowise Authentication Bypass CVE-2025-58434#21757rmhowe425 wants to merge 8 commits into
rmhowe425 wants to merge 8 commits into
Conversation
rmhowe425
marked this pull request as ready for review
August 7, 2026 01:10
msutovsky-r7
reviewed
Aug 7, 2026
| }, | ||
| 'License' => MSF_LICENSE, | ||
| 'Author' => [ | ||
| 'Richard howe <rhowe425>', |
Contributor
There was a problem hiding this comment.
Would you mind giving credits to OG researchers? GHSA-wgpv-6j63-x5ph
| 'uri' => normalize_uri(target_uri.path, 'api/v1/version') | ||
| }) | ||
|
|
||
| unless res && res.code == 200 |
Contributor
There was a problem hiding this comment.
Suggested change
| unless res && res.code == 200 | |
| unless res&.code == 200 |
Comment on lines
+66
to
+70
| unless Rex::Version.new(flow_version) <= Rex::Version.new('3.0.5') | ||
| return Exploit::CheckCode::Safe( | ||
| "Flowise version #{flow_version} is not vulnerable" | ||
| ) | ||
| end |
Contributor
There was a problem hiding this comment.
Just FYI, this is also possible:
Suggested change
| unless Rex::Version.new(flow_version) <= Rex::Version.new('3.0.5') | |
| return Exploit::CheckCode::Safe( | |
| "Flowise version #{flow_version} is not vulnerable" | |
| ) | |
| end | |
| return Exploit::CheckCode::Safe("Flowise version #{flow_version} is not vulnerable" ) unless Rex::Version.new(flow_version) <= Rex::Version.new('3.0.5') |
Contributor
Author
There was a problem hiding this comment.
I initially had this but RuboCop is complaining, giving me the following: Style/MultilineIfModifier: Favor a normal unless-statement over a modifier clause in a multiline statement
😄
| } | ||
| ) | ||
|
|
||
| fail_with(Failure::Unknown, 'Unexpected server reply while requesting reset token.') unless res && res.code == 201 |
Contributor
There was a problem hiding this comment.
Suggested change
| fail_with(Failure::Unknown, 'Unexpected server reply while requesting reset token.') unless res && res.code == 201 | |
| fail_with(Failure::Unknown, 'Unexpected server reply while requesting reset token.') unless res&.code == 201 |
| ) | ||
|
|
||
| fail_with(Failure::Unknown, 'Unexpected server reply while requesting reset token.') unless res && res.code == 201 | ||
| res.get_json_document['user']['tempToken'] |
Contributor
There was a problem hiding this comment.
Just to be safe
Suggested change
| res.get_json_document['user']['tempToken'] | |
| res.get_json_document.dig('user','tempToken') |
Contributor
Author
There was a problem hiding this comment.
Oh sweet I didn't know you could do that in Ruby
| }.to_json | ||
| } | ||
| ) | ||
| fail_with(Failure::Unknown, 'Unexpected server reply while resetting password.') unless res && res.code == 201 |
Contributor
There was a problem hiding this comment.
Suggested change
| fail_with(Failure::Unknown, 'Unexpected server reply while resetting password.') unless res && res.code == 201 | |
| fail_with(Failure::Unknown, 'Unexpected server reply while resetting password.') unless res&.code == 201 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds a new auxiliary module that detects and exploits an authentication bypass vulnerability impacting Flowise versions up to and including 3.0.5
Related Issue:
Fixes #21756
Breaking Changes
None
Reviewer Notes
Verification Steps
use exploit/multi/http/flowise_auth_bypass_cve-2025_58434run lhost=<lhost> rhost=<rhost> email=<email> newpassword=<new password>Test Evidence
Successful
checkand modulerunRead data written by
store_lootEnvironment
AI Usage Disclosure
None
Pre-Submission Checklist
documentation/modules(new modules only)lib/changes)