Skip to content
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

User ID Manipulation Vulnerability #93

Open
bluebyte85 opened this issue Sep 26, 2024 · 0 comments
Open

User ID Manipulation Vulnerability #93

bluebyte85 opened this issue Sep 26, 2024 · 0 comments

Comments

@bluebyte85
Copy link

Description:

The WP Ulike (Pro) plugin allows users to upvote items such as posts or comments. However, the user_id parameter sent with the vote request can be manipulated, allowing users to submit votes on behalf of other users. This issue compromises the integrity of the voting system, as it enables standard users to artificially inflate upvotes.

Steps to Reproduce:

  1. Send a request to upvote a post or comment with the following parameters, including the user_id.
  2. Observe that the vote counter for the post/comment is increased by one, and the response indicates a successful vote.
  3. Resend the request while altering the user_id parameter.
  4. The vote counter is again increased, allowing multiple upvotes from different users, even if unauthorized.

Expected Behavior:

Standard users should not be able to modify or send the user_id parameter in voting requests. The system should automatically assign the logged-in user’s ID to prevent unauthorized voting on behalf of others.

Actual Behavior:

Users can manipulate the user_id parameter and submit upvotes for other users, allowing them to artificially increase the vote count by sending multiple altered requests.

Impact:

This vulnerability undermines the voting system by allowing standard users to fraudulently manipulate upvotes.

Proposed Solution:

Ensure that the user_id is set and validated server-side to match the logged-in user's ID, preventing tampering or modification by the client.

wp-ulike-1
wp-ulike-2
wp-ulike-3
wp-ulike-4

Environment:

WP Ulike (Pro): 4.7.4 (1.8.4)
WordPress version: 6.6.2
PHP: 8.2

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

No branches or pull requests

1 participant