Skip to content

Instantly share code, notes, and snippets.

@Ayushverma8
Last active July 31, 2017 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ayushverma8/0bc935cea073998927ce67eee565de2a to your computer and use it in GitHub Desktop.
Save Ayushverma8/0bc935cea073998927ce67eee565de2a to your computer and use it in GitHub Desktop.
HackerEarth Bugs

Codearena Bugs and Suggestions

I found some bugs in Codearena that could let user cheat by uploading code to ace-editor during fight . This makes fight unfair and other opponent will loose motivation to fight as ,I can win the fight in less than a minute.


How I did !

I tried these several times on different accounts and all are still active beacause I choose other user's random solution from other editorial account . I managed Plagirism :-P

  • I made class file-upload visible by making class file-upload visible!
  • This lets me upload regular code just like normal ace code editor
  • And , Apart from this , class ace_constant ace_other can be tampered to push code into the ace editor
  • I was able to manupulate the time-counter on codearena by blocking XHR Request on jstimezonedetect Script.

Demo

Show the Class

Google

Won

I also tried adding code to the Editor's native source

Won1

Similarly i tried many times

Won12

I think adding a HE-Biased Chatbot on page will be more beneficial for everyone!

Note:

  • Inviting preferred opponent via Bot. Could invite via a unique Token via Bot
  • Invite FB Friends directly . That's a Jackpot. More Traffic.
  • Could answer Basic Queries and problems regarding Editor as well

Addition

Won1

@Ayushverma8
Copy link
Author

I have more ideas and features , on how Hackathons can be made more awesome through HE Platfrom. I have attended more than 5 hackathons from HE , and felt need for some changes . :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment