Add Dalfox Unauthenticated RCE module (CVE-2026-45087)#21493
Open
Takahiro-Yoko wants to merge 2 commits into
Open
Add Dalfox Unauthenticated RCE module (CVE-2026-45087)#21493Takahiro-Yoko wants to merge 2 commits into
Takahiro-Yoko wants to merge 2 commits into
Conversation
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.
CVE-2026-45087
Vulnerable Application
When dalfox is started in REST API server mode (dalfox server), the server binds to 0.0.0.0:6664 by default and requires no API key unless the operator explicitly passes --api-key. Because model.Options — including FoundAction and FoundActionShell — is deserialized directly from attacker-supplied JSON in POST /scan, and because dalfox.Initialize explicitly propagates those two fields into the final scan options without stripping them, any unauthenticated caller who can reach the server port can supply an arbitrary shell command that the dalfox process will execute on the host whenever a scan finding is triggered.
The vulnerability affects:
This module was successfully tested on:
Installation
go install github.com/hahwul/dalfox/v2@v2.12.0export PATH=$PATH:$(go env GOPATH)/bindalfox serverVerification Steps
use exploit/linux/http/dalfox_server_rce_cve_2026_45087run lhost=<lhost> rhost=<rhost>Scenarios