Skip to content

Fix msftidy lint failures introduced after revert - #21735

Merged
dwelch-r7 merged 1 commit into
rapid7:masterfrom
l1ve709:fix-lint-errors-after-revert
Aug 13, 2026
Merged

Fix msftidy lint failures introduced after revert#21735
dwelch-r7 merged 1 commit into
rapid7:masterfrom
l1ve709:fix-lint-errors-after-revert

Conversation

@l1ve709

@l1ve709 l1ve709 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

This PR resolves two msftidy/rubocop lint errors that surfaced after reverting unrelated Rubocop fixes in my recent PR:
#21715

Changes:

  1. modules/exploits/multi/http/vbulletin_getindexablecontent.rb:
    Renamed save_page to save_vbulletin_page. The original method name triggered a false-positive Lint/Debugger warning due to a name collision with Capybara's debug helper. It is a legitimate exploit method that sends a POST request to /admin/savepage, not a leftover development debug call.

  2. modules/exploits/windows/http/prtg_authenticated_rce_cve_2023_32781.rb:
    Removed the redundant top-level Platform definition. Since Merge target info into the module info #20786, the framework automatically merges target-level Platform/Arch entries into the module's top-level metadata, so this explicit definition is no longer needed and was correctly flagged by Lint/ModuleRedundantArchPlatform.
    (Note: I previously attempted to include this cleanup in PR Fix 'successfully' typos in module console outputs #21715, but reverted it there since it was out of scope. Submitting it properly here.)

Both changes are lint/style fixes only — no functional or exploit logic was modified.

@l1ve709

l1ve709 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Hey @bwatters-r7, just a quick ping on this!

I moved the lint fixes we reverted in #21715 over here. Take a look whenever you get a chance.

@dwelch-r7
dwelch-r7 requested a lite review from Copilot August 12, 2026 13:10

# Saves a new page to the vBulletin install
def save_page(nodeid, userid, pt_id, payload_url, wi_id, session_info)
def save_vbulletin_page(nodeid, userid, pt_id, payload_url, wi_id, session_info)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see where this is defined

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you're right, there was actually no lint issue here. I got confused with the prtg module failing CI and incorrectly assumed this needed a rename. Just force-pushed to revert this.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses msftidy/rubocop lint failures in two Metasploit exploit modules by (1) renaming a vBulletin helper method that collided with a debugger-related lint rule, and (2) removing redundant top-level module metadata now derived from target definitions.

Changes:

  • Renamed save_page to save_vbulletin_page in the vBulletin module and updated its call site to avoid a Lint/Debugger false-positive name collision.
  • Removed redundant top-level 'Platform' => 'win' from the PRTG module since platform is already defined at the target level (and merged automatically).

Impact Analysis: isolated change; no meaningful downstream impact identified from diff.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/exploits/multi/http/vbulletin_getindexablecontent.rb Renames an internal helper method and updates its usage to avoid a lint false-positive.
modules/exploits/windows/http/prtg_authenticated_rce_cve_2023_32781.rb Removes redundant module-level platform metadata already present in targets.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@l1ve709
l1ve709 force-pushed the fix-lint-errors-after-revert branch from cb00e2c to ef134c9 Compare August 13, 2026 16:49
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Metasploit Kanban Aug 13, 2026
@dwelch-r7
dwelch-r7 merged commit 8e6a584 into rapid7:master Aug 13, 2026
18 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Metasploit Kanban Aug 13, 2026
@dwelch-r7 dwelch-r7 added the rn-no-release-notes no release notes label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rn-no-release-notes no release notes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants