Repository navigation
Security hardening: connection permissions, duplicate merge, input escaping - #2947
Conversation
…te default role (GO-61)
… label XSS (GO-60)
- patch bundled jQuery Typeahead to escape {{…}} values and no-template display text instead of only stripping script/iframe tags
- render the share modal name with escapeHTML instead of a {{name}} placeholder
ReviewHighNone found. Medium
Notes
Summary: The security fixes look sound, but the partial-write behaviour on rejected connections (item 1) should be addressed or acknowledged before merging. |
… update (GO-57) Validates every new connection, including email and title values, before create_post or update_post writes anything, so a rejected connection leaves no partial record. Fields without a post_type fall back to the target's type, and records of types the user can list_all are allowed, matching the connection typeahead.
ReviewHighNone found. Medium
Notes
Summary: The hardening looks sound; resolve the duplicate-merge 403 behaviour (item 1) and add tests for the permission paths before merging. |
…t (GO-77) When check_for_duplicates finds a match the user can view but not update, create_post now creates a new record instead of returning the update error.
ReviewHighNone found. Medium
Notes
Summary: The hardening looks sound, but handle the new |
The mapping queries and the map totals endpoints now return the WP_Error from fields_to_sql, so an invalid filter value such as a bad date gives a 400 instead of a fatal error.
ReviewHigh: None found. Medium: None found. Notes
Summary: No High or Medium issues found; the PR looks ready to merge. |
Hardening from the October security review, one commit per area.
Record permissions
check_permissions = falseare unchanged.check_for_duplicatesis set, the duplicate search and the merge into the matched record run with the caller's permissions instead of with checks off.Input validation and escaping
escapeHTMLescapes non-string values, which list filter labels can pass (GO-60).{{…}}template values and plain display text. The share modal renders the name withescapeHTML.Login and magic links
Behavior changes to note
check_for_duplicatesonly merges into records the user can view; otherwise it creates a new record.Tests updated:
tests/unit-test-magic-url-rest-verify.php,tests/unit-test-search-viewable-post.php.🤖 Generated with Claude Code