Skip to content

Conversation

@NoumaanAhamed
Copy link
Collaborator

@NoumaanAhamed NoumaanAhamed commented Jan 21, 2026

Copilot AI review requested due to automatic review settings January 21, 2026 06:51
Copy link
Contributor

Copilot AI left a comment

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 fixes an Insecure Direct Object Reference (IDOR) vulnerability in the Godam integration by adding proper authentication and authorization checks to the AJAX endpoint that loads activity comment HTML.

Changes:

  • Removed unauthenticated access to the get_single_activity_comment_html AJAX endpoint
  • Added explicit authentication and permission verification before returning activity data
  • Implemented a comprehensive permission checking function that handles groups, profiles, and other activity components

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NoumaanAhamed NoumaanAhamed changed the title Security fix/godam integration Security-fix: GoDAM integration Jan 21, 2026
@NoumaanAhamed NoumaanAhamed requested a review from mi5t4n January 21, 2026 07:50
Copy link
Member

@mi5t4n mi5t4n left a comment

Choose a reason for hiding this comment

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

Left some comments.

@NoumaanAhamed NoumaanAhamed requested a review from mi5t4n January 21, 2026 09:09
*
* @return bool True if the user can view the activity, false otherwise.
*/
function godam_user_can_view_activity( $activity ) {
Copy link
Member

Choose a reason for hiding this comment

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

Since, this is a rtMedia plugin, let's not use godam prefix for the function as it's being used by GoDAM plugin. Use the correct prefix used by rest of the rtMedia functions.

@NoumaanAhamed NoumaanAhamed requested a review from mi5t4n January 21, 2026 10:20
@rtBot
Copy link
Contributor

rtBot commented Jan 21, 2026

Unable to PHPCS or SVG scan one or more files due to error running PHPCS/SVG scanner:

  • templates/media/godam-integration.php

The error may be temporary. If the error persists, please contact a human (commit-ID: 270596a).

Copy link
Member

@mi5t4n mi5t4n left a comment

Choose a reason for hiding this comment

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

LGTM

@NoumaanAhamed NoumaanAhamed merged commit 3772a02 into develop Jan 21, 2026
6 checks passed
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.

5 participants