Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

DaNeil C
DaNeil C

Posted on • Edited on

     

Hacker101 CTF - BugDB v2

  • CTF Name: BugDB v2
  • Resource: Hacker101 CTF
  • Difficulty: Easy
  • Number of Flags: 1

Note::: NO, I won't be posting my found FLAGS, but I will be posting the methods I used.


Flag0

  • Hint:
    1. What has changed since last version?
    2. What do the queries tell you?
    3. Have you tried a mutation?
  • Acquired By:
    • This starts out the same a v1 so I first wanted to just poke around again and see if the same queries would work. The final script from the last challenge didn't work but working backwards from the errors I did get some information to show.Alt Text This allowed me to see that there was an "admin" and "victim" user but how to exploit this?
    • Now I wanted to play with the Bugs reports as I am guessing that that is where the flag is again. After some relocating of the "allBugs" query I noticed that it was missing a report from the victim. I bet it is set to private so how do I get it?Alt Text
    • Based on the third hint I need to learn more about GraphQL mutations. Mutations involve its own query where you mutate the Bugs private field. This will involve a mutation function that will change the private field to false and then re-running the previous query to view all the bug texts.Alt Text

Thoughts/Learned

I learned a bit more about GraphQL and manipulating them but I have a gap as to the practical application of this. I am venturing to guess that because of the nature of GraphQL to give a LOT of information that it is a matter of manipulating the shown image blindly (or based off a known user) to find information that might be there but not directly viewable, yet.


Happy Hacking

Please Note that I am still learning and if something that I have stated is incorrect please let me know. I would love to learn more about what I may not understand fully.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
eyokfla profile image
eyokfla
  • Joined

Thank you so much for your precious help, now i start to figure out those CTF. Two weeks ago i didn't undertood the point with these games now i undestand that we have to analyse and test everything possible! God bless you!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I write to better educate myself as I go through CTFs and Bug Bounties. If anything I have written is incorrect, please let me know and send me a link to an article to read to better educate myself.
  • Location
    Seattle
  • Education
    Information Technology BA and Software Engineering Bootcamp Grad
  • Work
    Security Engineer/Researcher Performing Responsible Disclosure
  • Joined

More fromDaNeil C

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp