Hack The Vote 2016 CTF: Sander's Fan Club [web100]

John Hammond · Intermediate ·🔐 Cybersecurity ·9y ago

Key Takeaways

Solves Sander's Fan Club challenge in Hack The Vote 2016 CTF using web development and credential discovery techniques

Full Transcript

all right what is going on everybody welcome back to another video my name is John Hammond this time showcasing uh some of the hack the vote CTF or Capture the Flag competition that's been going on this weekend uh November 4th to November 6th uh it's still Saturday right now I'm just in the middle of it I haven't gotten a whole lot of flags admittedly um but uh I figured I'd be able to show off some of the small ones that I have been able to get this has been admittedly a really difficult CTF at least on it's organized uh by RPI sick so be sure to give them a check out and a thumbs up for an awesome game and it's online at pond. voting and this is their interface which is super cool so it is just the map of the United States for the hack the vote uh uh uh theme and they do have their Jeopardy style display if you just want to look at it by category so I want to show off the web 100 in this video and that is titled uh Bernie Sanders fan club it only it has 185 solves so again uh out of the scheme of things I think there are about 900 people registered 930 950 or so at this point now um H so 185 is is a is a good amount for the people that were able to solve things so okay so the Sanders fan club but 100 points the challenge description is these deplorable Sanders supporters are still fighting shut the site down by finding where the idiot stored his credentials um so it gives us this URL so go ahead and follow that and check it out Bernie Sanders fan club feel the burn man I just love Bernie Sanders he still got a chance etc etc the site is still work in progress it only works in Firefox I think I'm not very good at webdev so I just copied and pasted a bunch of config files from stack Overflow H I think I left my credentials somewhere but I can't seem to find them let me know if you see them okay thanks remember vote Bernie and I guess there are some pictures here of flags but that's all that's on the web page literally literally that's it there's a login and it's just a password box you can enter anything and you will try and authorize although the password is the flag is the only alert message that we get so uh I admittedly spent a lot of time on this challenge kind of just going through rabbit holes uh I iced around on the IRC Channel I tried to talk to some friends and admittedly I would not have been able to solve this challenge without the help of some uh very generous people and uh bouncing ideas back and forth and explaining a worthwhile process here so I'm thankfully running Firefox right now that's why this only it only works in Firefox I think uh as an interesting tidbit although the thing that really put me down a rabbit hole was this I just copied and pasted a bunch of config files from stack Overflow so I think a lot of people for from individuals that I was talking with on an IRC Channel they were like trying to Google things that were like oh in the URL of of stack Overflow or like configuration files for bootstrap considering like it is it is a bootstrap web design page or the backend server because initially you want to reach for like the lwh hanging fruit right is there is there a robots. Tex uh no Al we can see it's an engine X server so we'd want to see oh are there any engine X like configuration files stuff like that um be able to look for that on stack Overflow just basic configuration files Etc um so uh some other stuff that I was interested and curious about I wanted to try and run like other low hanging fruit penetration testing tools with the web application stuff so I initially ran nto which is an awesome uh utility if you haven't heard of I think I've I may have shown it off before open source web server scanner blah blah blah you can check it out on your own if you haven't heard of it before but all I ended up really doing is just passing uh the URL as the host here and it will try and look through it and it immediately finds this really interesting thing uh the anti click jacking x-frame options header is not present but I actually literally just read the wrong line I meant to be rereading this one The Uncommon header link is found with contents flag to jpeg rail equal Styles sheet so that's interesting that was weird obviously since it displays this uncommon header uh and admittedly I didn't really know what to think of that or what to do with it um so I was looking at like well okay flag 2. jpeg that's odd and and and strange I see I check out the source of web page I try to like initially I Googled for common things like this like oh this might have been like sub tutorial comment for someone just trying to find easy config files and stuff like that uh and I see these images the flag one JPEG and the flag 2 JPEG and then I went over to the login at HTML page but again there's nothing there either same kind of content same time of bootstrap Jazz but it's just a JavaScript thing that tells us oh the password is a flag so there's no like communication with the server here it's just weird um some lurking around the IRC Channel some talking with other individuals uh the administrator like the admin that created this CH of this challenge uh shout out to lens I guess um had said that the flag is in the website itself so you don't have to go digging through stack Overflow you don't have to worry about any Firefox specifications stuff like that um you can find it here on the web page I even tried like I I I honestly tried to mirror the entire web page and like strings everything try to like grip through everything and try to find something that is a flag um but to no avail eventually stumbled upon this thing that we ended up using Firebug um which is a a Firefox add-on let me Firebug get Firebug Doom an extension for Firefox to let you like interact and change HTML and JavaScript and CSS stuff wow you're viewing a web page so but you can also just see the traffic and stuff going out as you as you work through it so I was interested in the net Tab and I requested all so then I tried to load the page again and I could see all the information the URLs that are being get and posted with like the typical HTTP uh conversations here and some interesting stuff that I saw was that okay we're getting the HTTP like page we're getting flag. jpeg Etc and I was curious why flag. jpeg was shown up twice one down here with flag one and flag two up here so I was observing some of these and I was going through them more in depth and something stuck out to me was that hm uh response headers connection keep alive content length 223 was it whatever content type text CSS that was weird right uh a JPEG image is not a CSS stylesheet and that's there was that weird link header for flag to jpeg real style sheet that nto had had had pointed out for us here so I was like what and I and I right clicked on this one and I tried to copy as curl so I could see okay I can't obviously change the request that I'm doing with through fire buug but can I see the request that it's getting and I I copy it as the curl command so now I I throw this in uh my terminal and I do this curl command that Firebug just straight up gives us but it's the URL to the flag 2 jpeg however it's accepting it as a CSS file and I'm just going to run it for one thing to see if we can get the uh whatever it returns for us keep in mind my user agent right now is still Firefox because I'm doing this through my web browser I'm like replaying the packet get from Firebug just this time running it through Cur so it gets a CSS file apparently a stylesheet however it's supposed to be a JPEG image and there's a comment at the very end here that says how did I oh never mind I'm pretty sure my credentials are in a text file so boom we've got a lead here we immediately found something and it's a good hint so this is clearly some guidance and what sticks out to me here now is that okay it's supposed to be a text file um I know there was some like ideas oh uh is it flag. text or flag flag 2. text or flag. text and some people again in conversation the IRC channels weren't having any success with that uh flag. jpeg not not flag J okay cool and uh to no avail that that that did not work what I figured was H the the content type it being CSS is weird considering it to JPEG but if it's supposed to be a plain text file according to this my credentials are in a text file it's obviously interpreting it as something weird so let's try and only accept rather than a CSS style sheet a plain text file the M type for that is text overcore plane uh and I run this and we get a password reminder and there's the flag I am very bad with computers I suppose uh this H here uh go tell Chrome developers to support RFC 5988 Firefox is the master race um I guess that's that's that's why it's supposed to only work in Firefox and uh I'll back down and I suppose me running Firebug being being able to see that it it passing the UR the user agent in the curl headers it was able to find it just like that I'm curious what this RFC is I haven't actually read through it but oh it also defines the use of such links in HTV letters of the link hter fil so interesting stuff if you're curious about how the backend works but that's how I got the flag um crazy method admittedly I again I would not have easily figured this out on my own without bouncing ideas off of other people and and and and talking it out so awesome challenge uh had a little bit more to it than like a simple lwh hanging fruit like robots. Tex gig so cool thank you for watching guys I hope you enjoyed this I hope to show off a little bit more of hack the vote uh uh uh challenges and show some writeups for you and uh I'll hope to see you in the next video

Original Description

If you would like to support me, please like, comment & subscribe, and check me out on Patreon: https://patreon.com/johnhammond010 E-mail: johnhammond010@gmail.com PayPal: http://paypal.me/johnhammond010 GitHub: https://github.com/JohnHammond Site: http://www.johnhammond.org Twitter: https://twitter.com/_johnhammond
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from John Hammond · John Hammond · 43 of 60

1 Code Commentaries? PHP to JavaScript in Bash and PHP!
Code Commentaries? PHP to JavaScript in Bash and PHP!
John Hammond
2 Tutorials? MySQL connection with PHP and Bash!
Tutorials? MySQL connection with PHP and Bash!
John Hammond
3 Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
Variable Naming in Python! Happy Birthday, Linux! Nokia N900!
John Hammond
4 JavaScript Splits The URL!
JavaScript Splits The URL!
John Hammond
5 HTML Tables in Python!
HTML Tables in Python!
John Hammond
6 HTML, Net Shares, GML!
HTML, Net Shares, GML!
John Hammond
7 Python 08 Programming Style and Comments
Python 08 Programming Style and Comments
John Hammond
8 Python 26 Object Oriented Programming
Python 26 Object Oriented Programming
John Hammond
9 75 Python Tutorials, Out Now!
75 Python Tutorials, Out Now!
John Hammond
10 Batch 14 Mathematical Expressions
Batch 14 Mathematical Expressions
John Hammond
11 Batch 85 Array Append
Batch 85 Array Append
John Hammond
12 Batch 86 Array Count
Batch 86 Array Count
John Hammond
13 Batch 87 Array Index
Batch 87 Array Index
John Hammond
14 Batch 88 Array Insert
Batch 88 Array Insert
John Hammond
15 Batch 89 Array Remove
Batch 89 Array Remove
John Hammond
16 Batch 90 Array Reverse
Batch 90 Array Reverse
John Hammond
17 Python [colorama] 00 Installing on Linux
Python [colorama] 00 Installing on Linux
John Hammond
18 Python [colorama] 09 Cursor Position
Python [colorama] 09 Cursor Position
John Hammond
19 Python [hashlib] 02 Algorithms
Python [hashlib] 02 Algorithms
John Hammond
20 Python 00 Installing IDLE on Linux
Python 00 Installing IDLE on Linux
John Hammond
21 Python [pygame] 11 Rectangular Collision Detection
Python [pygame] 11 Rectangular Collision Detection
John Hammond
22 Python [pygame] 12 Platforming Rectangular Collision Resolution
Python [pygame] 12 Platforming Rectangular Collision Resolution
John Hammond
23 Python [XML-RPC] 01 Research
Python [XML-RPC] 01 Research
John Hammond
24 Python [pyenchant] 03 Personal Word Lists
Python [pyenchant] 03 Personal Word Lists
John Hammond
25 FancyURLopener Authentication and User-Agent [urllib] 03
FancyURLopener Authentication and User-Agent [urllib] 03
John Hammond
26 Python 04: PEP8 Coding
Python 04: PEP8 Coding
John Hammond
27 Python Challenge! 17 COOKIES
Python Challenge! 17 COOKIES
John Hammond
28 Google CTF 2016: Ernst Echidna
Google CTF 2016: Ernst Echidna
John Hammond
29 Google CTF 2016: Spotted Quoll
Google CTF 2016: Spotted Quoll
John Hammond
30 Google CTF 2016: Can you Repo It?
Google CTF 2016: Can you Repo It?
John Hammond
31 Google CTF 2016: No Big Deal
Google CTF 2016: No Big Deal
John Hammond
32 Google CTF 2016: In Recorded Conversation
Google CTF 2016: In Recorded Conversation
John Hammond
33 Homemade CTF Challenge: 01 "Orchestra"
Homemade CTF Challenge: 01 "Orchestra"
John Hammond
34 Homemade CTF Challenge: 02 "Bae's Base"
Homemade CTF Challenge: 02 "Bae's Base"
John Hammond
35 Homemade CTF Challenge: 03 "Web Hunt"
Homemade CTF Challenge: 03 "Web Hunt"
John Hammond
36 Homemade CTF Challenge: 04 "UPX"
Homemade CTF Challenge: 04 "UPX"
John Hammond
37 Homemade CTF Challenge: 05 "The Assumption Song"
Homemade CTF Challenge: 05 "The Assumption Song"
John Hammond
38 Homemade CTF Challenge: 06 "A Brisk Stroll"
Homemade CTF Challenge: 06 "A Brisk Stroll"
John Hammond
39 Homemade CTF Challenge: 06 "I lost my password!"
Homemade CTF Challenge: 06 "I lost my password!"
John Hammond
40 web25 :: Mr. Robot : EKOPARTY CTF 2016
web25 :: Mr. Robot : EKOPARTY CTF 2016
John Hammond
41 web50 : RFC 7230 :: EKOPARTY CTF 2016
web50 : RFC 7230 :: EKOPARTY CTF 2016
John Hammond
42 misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
misc50 : Hidden inside EKO :: EKOPARTY CTF 2016
John Hammond
Hack The Vote 2016 CTF: Sander's Fan Club [web100]
Hack The Vote 2016 CTF: Sander's Fan Club [web100]
John Hammond
44 Hack The Vote 2016 CTF Warpspeed [forensics150]
Hack The Vote 2016 CTF Warpspeed [forensics150]
John Hammond
45 Juniors CTF 2016 :: Black Suprematic Square
Juniors CTF 2016 :: Black Suprematic Square
John Hammond
46 Juniors CTF 2016 :: Six Strange Tales
Juniors CTF 2016 :: Six Strange Tales
John Hammond
47 Juniors CTF 2016 :: Lost Code
Juniors CTF 2016 :: Lost Code
John Hammond
48 Juniors CTF 2016 :: Here Goes!
Juniors CTF 2016 :: Here Goes!
John Hammond
49 Juniors CTF 2016 :: Southern Cross
Juniors CTF 2016 :: Southern Cross
John Hammond
50 Juniors CTF 2016 :: Clone Attack
Juniors CTF 2016 :: Clone Attack
John Hammond
51 Juniors CTF 2016 :: Dirty Repo
Juniors CTF 2016 :: Dirty Repo
John Hammond
52 Juniors CTF 2016 :: Hackers Blog
Juniors CTF 2016 :: Hackers Blog
John Hammond
53 Juniors CTF 2016 :: Voting!!!
Juniors CTF 2016 :: Voting!!!
John Hammond
54 Juniors CTF 2016 :: The Good, The Bad and The Junkman
Juniors CTF 2016 :: The Good, The Bad and The Junkman
John Hammond
55 Juniors CTF 2016 :: Stop Thief!
Juniors CTF 2016 :: Stop Thief!
John Hammond
56 Juniors CTF 2016 :: ROFL
Juniors CTF 2016 :: ROFL
John Hammond
57 Juniors CTF 2016 :: Restriced Area
Juniors CTF 2016 :: Restriced Area
John Hammond
58 Juniors CTF 2016 :: Oh SSH!
Juniors CTF 2016 :: Oh SSH!
John Hammond
59 HackCon CTF 2017 TRIVIA and BONUS Challenges
HackCon CTF 2017 TRIVIA and BONUS Challenges
John Hammond
60 HackCon CTF 2017 "Bacche" Challenges
HackCon CTF 2017 "Bacche" Challenges
John Hammond

Related AI Lessons

Security Belongs on the Blueprint
Integrate security into building design to mitigate physical and cyber risks
Medium · Cybersecurity
# A 4-Line HTML File Stole the Admin’s Secret — Intigriti LeakyJar CTF Writeup
Learn how a 4-line HTML file exploited a CSRF vulnerability to steal an admin's secret in the Intigriti LeakyJar CTF challenge
Medium · Cybersecurity
The Digital Gateway to Arabic Cybersecurity
Learn about the importance of language-specific cybersecurity solutions, particularly for Arabic-speaking regions, and how they can enhance digital security
Medium · Cybersecurity
Cybersecurity vs Cloud Computing – Which Career Will Dominate 2026? ☁️
Learn which IT career, cybersecurity or cloud computing, will dominate in 2026 and why it matters for your career choices
Medium · Cybersecurity
Up next
You Think Your Card Declined by Mistake? It Might Be a 2026 Scam
Tolulope Michael
Watch →