-
Notifications
You must be signed in to change notification settings - Fork 123
Security-fix: GoDAM integration #2274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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_htmlAJAX 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.
mi5t4n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments.
| * | ||
| * @return bool True if the user can view the activity, false otherwise. | ||
| */ | ||
| function godam_user_can_view_activity( $activity ) { |
There was a problem hiding this comment.
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.
|
Unable to PHPCS or SVG scan one or more files due to error running PHPCS/SVG scanner:
The error may be temporary. If the error persists, please contact a human (commit-ID: 270596a). |
mi5t4n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This fixes the issue at https://github.com/rtCamp/godam-core/issues/744