OWASP / MASTG-Hacking-Playground

GNU General Public License v3.0
572 stars 139 forks source link

can't register on the app #9

Closed azze-r closed 5 years ago

azze-r commented 5 years ago

can't register on the app, got "something went wrong" when i try to make new account, in case when i cloned the MSTG Kotlin App and deployed it on my device ❌

sushi2k commented 5 years ago

Hi @boblinux. Thanks for the feedback. I just commited the serverside, which is a RoR API based on https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-one

The PR should be approved soon and then you can run the serverside API as docker image. https://github.com/OWASP/MSTG-Hacking-Playground/pull/8

You would need to configure the IP address in the source code of the kotlin app and create a new APK. The IP of the ROR API need to be configured in two locations, when registering and when logging in. I know not nice, ideally this should be an input field in the app so it can easily be configured. Maybe you want to create a PR for it :-) ?

https://github.com/OWASP/MSTG-Hacking-Playground/blob/master/Android/MSTG-Android-Kotlin-App/app/src/main/java/sg/vantagepoint/mstgkotlin/MainActivity.kt#L46

https://github.com/OWASP/MSTG-Hacking-Playground/blob/master/Android/MSTG-Android-Kotlin-App/app/src/main/java/sg/vantagepoint/mstgkotlin/RegisterActivity.kt#L50

sushi2k commented 5 years ago

@boblinux You can download it and create the docker here: https://github.com/OWASP/MSTG-Hacking-Playground/tree/master/Serverside/rails-api-original