B3nac / InjuredAndroid

A vulnerable Android application that shows simple examples of vulnerabilities in a ctf style.
Apache License 2.0
664 stars 144 forks source link

Flag 7 being completed with 8 #4

Closed bmt626 closed 4 years ago

bmt626 commented 4 years ago

I was working through the ctf and got stuck on flag 7 so moved on to flag 8 and noticed that completing that flag also marks flag 7 as completed.

B3nac commented 4 years ago

Thank you for reporting this @bmt626 . What caused it was a mistake with the button logic.

if (settings.getBoolean("flagEightButtonColor", false)) {
            flagEightButtonColor = settings.getBoolean("flagEightButtonColor", true);
            flagSevenButton.getBackground().setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_ATOP);
        }

Flag seven was being changed to green inside of the flag eight overview if statement. This is fixed with the latest build.