Skip to content

Fix reused Datastore option visibility mutations#21153

Open
Nayeraneru wants to merge 1 commit intorapid7:masterfrom
Nayeraneru:fixed/datastore_AdvancedOptions
Open

Fix reused Datastore option visibility mutations#21153
Nayeraneru wants to merge 1 commit intorapid7:masterfrom
Nayeraneru:fixed/datastore_AdvancedOptions

Conversation

@Nayeraneru
Copy link
Contributor

This PR Fixes #21091 to duplicate reused OptBase instances before applying per-container flags, preventing shared options like CHOST, CPORT, and Proxies from changing visibility across modules.

Verification

  • bundle exec rspec spec/lib/msf/core/option_container_spec.rb
  • Start msfconsole
  • use exploit/qnx/qconn/qconn_exec
  • run verbose=true rhost=127.0.0.1
  • options
  • advanced
  • The options CHOST, CPORT and Proxies are still advanced options after running the module.
Screenshot 2026-03-20 090635

@Nayeraneru Nayeraneru changed the title Fix reused option visibility mutations Fix reused Datastore option visibility mutations Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Datastore options move from advanced to module options with exploit module that require cmd_interact payloads

2 participants