Skip to content

Fix. FSW. Restriction of access to FSW, edits for wpms, restriction for file actions - #762

Merged
AntonV1211 merged 7 commits into
devfrom
fix_fsw_av
Oct 27, 2026
Merged

AntonV1211 merged 7 commits into
devfrom
fix_fsw_av

Conversation

@AntonV1211

Copy link
Copy Markdown
Contributor

@AntonV1211 AntonV1211 changed the title Fix fsw av Fix. FSW. Restriction of access to FSW, edits for wpms, restriction for file actions Oct 26, 2026
@AntonV1211
AntonV1211 requested a balanced review from Copilot October 26, 2026 10:10

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.

🔵 Needs a closer look

The cross-cutting authorization changes require human validation across multisite roles and AJAX entry points, with an unresolved access-control gap.

1 open issue
What changed in this PR

This PR tightens access to shared filesystem operations on WordPress multisite and strengthens FSWatcher file-view validation.

Changes:

  • Adds Super Admin restrictions to network-wide AJAX actions and related settings controls.
  • Validates FSWatcher file access against exact resolved paths in journal differences and protects wp-config.php.
  • Adds file-view regression tests and ignores the local skills directory.
File Description
tests/​lib/​CleantalkSP/​SpbctWP/​FSWatcher/​AnalyzerViewFileTest.php Adds file-view access and journal-matching tests.
security-malware-firewall.php Adds optional network-wide AJAX authorization.
lib/​CleantalkSP/​SpbctWP/​Views/​Settings.php Gates FSWatcher visibility by network permissions.
lib/​CleantalkSP/​SpbctWP/​Settings/​SettingsGeneralReact.php Restricts the salt-shuffling control.
lib/​CleantalkSP/​SpbctWP/​Scanner/​ScannerAjaxEndpoints.php Restricts scanner file actions.
lib/​CleantalkSP/​SpbctWP/​Scanner/​ScannerActions/​BackupsActions.php Restricts backup AJAX actions.
lib/​CleantalkSP/​SpbctWP/​Scanner/​Helper.php Centralizes network-wide permission checks.
lib/​CleantalkSP/​SpbctWP/​Scanner/​Cure.php Restricts bulk cure and restore actions.
lib/​CleantalkSP/​SpbctWP/​ListTable.php Guards selected network-wide row actions.
lib/​CleantalkSP/​SpbctWP/​FSWatcher/​Controller.php Restricts FSWatcher AJAX endpoints.
lib/​CleantalkSP/​SpbctWP/​FSWatcher/​Analyzer/​Analyzer.php Enforces resolved-path matching and configuration protection.
inc/​spbc-admin.php Restricts the salt-shuffling endpoint.
.gitignore Ignores /skills/.

Review effort: Balanced

Comment thread lib/CleantalkSP/SpbctWP/ListTable.php Resolved
@AntonV1211
AntonV1211 requested review from Glomberg, svedge and svfcode and removed request for svfcode October 26, 2026 10:29
Comment thread lib/CleantalkSP/SpbctWP/ListTable.php Resolved
@AntonV1211
AntonV1211 requested a review from Glomberg October 26, 2026 10:48
@AntonV1211
AntonV1211 merged commit a384a9b into dev Oct 27, 2026
5 checks passed
AntonV1211 added a commit that referenced this pull request Oct 27, 2026
…or file actions (#762)

* Dev. Git. Added the Skills folder to .gitignore

* Fix. FSW. Restriction of access to FSW, edits for wpms, restriction for file actions

* Fix. FSW. Limitation for actions of oscron and delete-trigger

* Dev. Code. Review corrections

* Dev. Activator. Switching to the wp_initialize_site hook when adding a new blog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants