Skip to content

Bug 2075360 - #2764

Merged
dklawren merged 1 commit into
mozilla:masterfrom
dklawren:2075360
Sep 25, 2026
Merged

dklawren merged 1 commit into
mozilla:masterfrom
dklawren:2075360

Conversation

@dklawren

Copy link
Copy Markdown
Collaborator

Review+ carried over from private pull request
https://bugzilla.mozilla.org/show_bug.cgi?id=2075360

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The validation consistently blocks nonnumeric object IDs, and focused regression tests cover the vulnerable request paths.

Review effort: Balanced
Findings: None

What changed in this PR

Hardens REST object-ID handling against condition-hash injection.

Changes:

  • Validates attachment and comment IDs as numeric before object loading.
  • Adds regression coverage for affected PUT endpoints and valid numeric IDs.
File Description
Bugzilla/​WebService/​Bug.pm Validates attachment and comment IDs.
extensions/​BugModal/​lib/​WebService.pm Validates BugModal comment IDs.
qa/​t/​rest_bug_object_condition.t Tests malicious condition hashes and valid IDs.

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

@dklawren
dklawren merged commit ccc5ff3 into mozilla:master Sep 25, 2026
8 checks passed
@dklawren
dklawren deleted the 2075360 branch September 25, 2026 17:39
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.

2 participants