MitmProxy2Swagger: Automagically reverse-engineer REST APIs
21–30 of 82 posts
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#22Again, this is the very easy part of the reverse engineering API process that most tools can do, similar to API Parrot and the rest of them. This is not hard to do. The hard part is that inevitably, all these internal APIs will just add aggressive CAPTCHAs, Device Check, fingerprinting, etc to prevent common drive by re'ing. Easy to add these on the defence side, and extremely difficult to bypass on the other side. I…
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#23did i miss something or why are there TWO (2) "magically reverse engineer REST APIs" projects on the HN front page right now? is there some offline beef going on? (screenshot in case this goes away https://x.com/swyx/status/1874762725383188502 )
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#24perhaps a n00b question, but would this work, or is there something similar for apps, specifically android apps?
The thing is, depending on how hardened the app is, you'll have to play with Android to allow this interception, mostly because of certificate pinning. Also I remember something about apps not using the system wide trusted certificates you install (IIRC).
I remember using a rooted device with LineageOS, and downloading the APK and modifying it with a tool so the self signed certificate for the mitm proxy works with it.
The mitm proxy docs have some links to tools that can do that [0] and you could also use an Android emulator if you don't have an extra phone to mess with it [1]
0: https://docs.mitmproxy.org/stable/concepts-certificates/
1: https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#25I've been fighting lately with an API, though. It's not very, let's say, RESTy. It has only one endpoint, and the different "sections" of the API are defined in parameters, so MitmProxy2Swagger doesn't detect them properly :(
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#26Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#27Obvious question: How to protect against this ?
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#28Obvious question: How to protect against this ?
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#29Obvious question: How to protect against this ?
You can add obfuscation, but ultimately if the client is shipped to the user you must assume an attacker can reverse engineer it.
Re: MitmProxy2Swagger: Automagically reverse-engineer REST APIs
#30Obvious question: How to protect against this ?