Coder Social home page Coder Social logo

cybersci_national_2023_java_auth's Introduction

Software Bug (Pwn lite) Challenge

Development was done in https://github.com/cse-natpauze/cybersci_national_2023_java_auth Ill make that repo public after the competition

Difficulty

Med

Name

auth-to-me

Description

There is a legacy java application being used by the AI to store some secrets... If we had valid creds we could dump a secret value from the application! The AI must be hiding something big there... We have release builds of the server and a old client... Good luck!

Flag Question

What is the secret you recovered from the server?

Hint

It's allways in the details....

Walkthrough

Players will need to decomp the proguarded server and client, decomp the native lib used in logging, identify a bug that can be used to replace parts of secrets with known values.

TLDR: the native lib assumes it always gets a COPY of the backing buffer of java strings. That is not allways true. Reading the HOTSPOT JNI sources can help figure out what that condition is (SPOILER: string have chars not Latin1 encodable in it) And figure out how to trigger that to gain credentials that work. They will need to examine decomp to find the account provisioning command (not included in client) and how commands are sent. Then trigger the bug to mangle the user/password of a new account, and guess the few remaining random bytes.

More details in POC.java (dont distribute!)

Flag Answer

whatever you set as the CTFKEY env variable when launching the server...

cybersci_national_2023_java_auth's People

Contributors

cse-natpauze avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.