Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:46:06+00:00 2026-06-07T01:46:06+00:00

I’m trying to build an app for SharePoint in C# that will have a

  • 0

I’m trying to build an app for SharePoint in C# that will have a small component with an upvote/downvote system.

This seems problematic. If I want to make it secure, I use server side code for the voting, but this sounds like a terrible user experience.

With AJAX, the user experience is MUCH better, but you’re vulnerable to hacking.

The main vulnerability I see, is assigning a vote to a user. I assume whatever the interface (let’s assume Ajax to List) that these will be variables set in JavaScript.

It seems very easy to fire up any JS console in a browser and submit votes for a post/question.

Unless I want to validate every vote against a username on page_load (a lot of extra cycles) I feel like I’m limited to nesting a repeater inside an updatepanel, and handling the voting inside of that function, generating the SPUser identity server side.

Anyone who has used a repeater nested in an update panel with buttons will attest that this is a nightmare 🙁

What are my alternatives?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:46:08+00:00Added an answer on June 7, 2026 at 1:46 am

    The vulnerabilities with using client side variables are always an issue so its best to decrease the possibility of exploitation via server-side involvement.

    You could create a function that utilizes a key for creating the vote paramater that is created solely for the current user. If the passed parameter has been modified in any way, i.e. doesn’t match the expected output, then reject it. If desired, you could build functionality that blocks specific user(s) from voting if they have exceeded the threshold for malformed requests.

    You could then determine on submission if the current user has already voted on the corresponding item to prevent duplicate votes, although I would prevent the user from being able to vote in the first place for a better UX.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need a function that will clean a strings' special characters. I do NOT
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.