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

Prevent resetting vote count on commit #117

Merged
merged 3 commits into from
May 24, 2017

Conversation

MINIMAN10000
Copy link
Contributor

No description provided.

MINIMAN10000 and others added 3 commits May 23, 2017 17:04
In order to prevent users from using a commit to reset the vote count
and then up vote their change to bypass the normal voting process I have
removed all code references to the word since
Removed all references to since
@amoffat
Copy link
Contributor

amoffat commented May 24, 2017

Originally, I believed a change like this would allow someone to collect "yay" votes, then slip in a malicious change at the last minute and get approved. But because a new commit pushes the voting window out again ~2 hours, there doesn't seem to be any "last minute." 👍

@MINIMAN10000
Copy link
Contributor Author

Alright thanks for the heads up on the new commit setting the voting window out 2 hours. But since #48 killed the server, doesn't that mean it went through?

Was there a 2 hour period where no one voted no? Did they think that it already had enough nay votes because the number of negative reactions looked overwhelmingly negative or did the PR slip through unnoticed during that 2 hour period.

@MINIMAN10000 MINIMAN10000 changed the title Prevent resetting vote count to bypass the user voting process Prevent resetting vote count on commit May 24, 2017
@amoffat
Copy link
Contributor

amoffat commented May 24, 2017

@MINIMAN10000

Did they think that it already had enough nay votes because the number of negative reactions looked overwhelmingly negative

I believe that's what happened. Take a look at the merge commit 9500e94. It was only counting votes after the most recent change, and attention had mostly died down.

@amoffat
Copy link
Contributor

amoffat commented May 24, 2017

i honestly can't wait until this merges

elmo poopin

@reddraggone9
Copy link
Contributor

I'm not voting either way on this, but it should be noted that something similar to #48 may happen again for similar reasons (mostly because Github sorts PRs by creation date by default). Somebody could post something cool or funny with WIP in the title, get a fair number of up votes, and change the PR to something malicious a day later after it's fallen farther down the list. Then it'll be up to the people who are both watching that thread (or the entire repo) and awake to draw enough attention to it to drown out the previous upvotes before the window closes.

@chaosbot chaosbot merged commit 341c1bb into Chaosthebot:master May 24, 2017
@reddraggone9
Copy link
Contributor

I was too late. Oh, the humanity. Or is that irony because of the similarity of the situation to the theoretical attack I described?

@amoffat
Copy link
Contributor

amoffat commented May 24, 2017

I agree with you @reddraggone9. I think this is one of those lesser evil situations. Doesn't seem to be a clean way to not have some chance of merging malicious code in through deception

amoffat added a commit to amoffat/Chaos that referenced this pull request May 24, 2017
@MINIMAN10000
Copy link
Contributor Author

@reddraggone9 the way I saw it we either dealt with the fact that the voting numbers made people feel like they didn't need to vote it down which would result in passing the vote silently and what I have currently changed it to, we know the votes the PR. The only problem is what the PR could potentially change.

I would recommend to change the voting again. I have two recommendations

  1. Look through the time on all votes. Only toss out the positive votes. Basically the opposite of how it was before this pull request.

This is part of the reason why I wanted this to be pulled, get_pr_comments since caused github to not send any comments before the requested time. I desire that we get all the votes from github and then parse them ourselves.

  1. After a PR is passed instead of it immediately committing, chaosbot posts that the vote has passed and will enter a final voting period. People then vote on that chaos bot post which then finalizes the PR after the timer passes and it passes the second vote.

@amoffat amoffat mentioned this pull request May 24, 2017
chaosbot added a commit that referenced this pull request May 24, 2017
#137: new contributing vote policies

Description:
keep contrib in parity with new vote policies, now that #117 is in

:ok_woman: PR passed with a vote of 13 for and 0 against, with a
weighted total of 11.0 and a threshold of 1.0.

Vote record:
@DasSkelett: 1
@MINIMAN10000: 1
@Redmega: 1
@amoffat: 1
@eukaryote31: 1
@hfern: 1
@ike709: 1
@loic-sharma: 1
@pchauncey: 1
@reddraggone9: 1
@rirze: 1
@rudehn: 1
@sid-code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants