Skip to main content

Damn Vulnerable Android Application by Security Compass - Lab 6 Advanced Encryption

Lab 6 Advanced Encryption


 Today we are going to see the solution of basic encryption post in that no encryption was used for sensitive info. The solution is implementing the encryption and that we will try to bypass the encryption implementation as some times the developers store the hardcoded encryption key in the app itself.

For this you need to install the BasicEncryptionSolution.apk.

Now start this app and configure the credentials.






Now app is configured and credentials are also stored as per design in preferences.xml but I am expecting some sort of encryption now as we have installed solution for this flaw.

Browse to the

/data/data/com.securitycompass.androidlabs.basicencryptionsolution/shared_prefs


as you can see that all the credentials are encrypted.

So now we go and disassemble the app and try to figure out is there any key hardcoded key in the app.

You can disassemble the app by using EasyApkDisassembler tool as i did


or else you can use apktool for disassembling the apk file by using below commands

apktool d BasicEncryptionSolution.apk export

for more information on apktool click here.

 I am interested in smali files which will be in the disassembled app folder.


I browsed through the smali files and found something relevant to encryption, its CryptoTool.smali file

I opened it in notepad


and found this hardcoded encryption key.

Solution:

Developers should not keep the encryption keys in the app binary, it should be on server side.

Comments

  1. Where can i download all these apk files?

    ReplyDelete
  2. The post is written in very a good manner and it contains many useful information for me.


    gexton cctv monitiring

    ReplyDelete
    Replies
    1. Sunrise Techs is a leading mobile app development company in Australia, specializing in custom iOS and Android applications. Our expert team delivers scalable, secure, and user-friendly apps tailored to your business needs. From startups to enterprises, we transform ideas into high-performing digital solutions. Discover more at Mobile app development company in australia.

      Delete
  3. Working with app developers in Perth has been a game-changer. They bring professionalism, creativity, and technical expertise to every project. Highly recommend for digital transformation.

    Best App Developers Perth

    ReplyDelete
  4. top AI companies Australia
    ​Explore the top AI companies in Australia​ known for delivering cutting-edge artificial intelligence solutions across industries. This list features leading AI development firms specializing in machine learning, automation, and data-driven innovations.

    ReplyDelete
  5. ChatGPT app development cost
    Discover the real ChatGPT app development cost in this in-depth guide that outlines the essential components involved in building a high-functioning AI chatbot. From NLP integration and cloud infrastructure to UI/UX and post-launch support, understand how these factors influence overall AI chatbot app pricing.

    ReplyDelete
  6. This comprehensive breakdown of 2025 software development costs is a game-changer for tech budgeting! Essential reading for any business planning digital projects. Explore more with the A Complete Guide to the Software Development Cost 2025

    ReplyDelete
  7. Build a seamless banking app with Brisbane’s top developers. Features include mobile wallets, P2P transfers, bill splitting, and FDIC/APRA compliance. Ideal for banks, credit unions, and neobanks. Start your project now!
    App Developers Brisbane

    ReplyDelete
  8. Build sleek, scalable, and high-performing iOS apps with Sunrise Technologies. Our Sydney-based team delivers custom iPhone and iPad app solutions tailored to your business goals—combining innovative design with powerful functionality.iOS Mobile App Development Company Sydney

    ReplyDelete

Post a Comment

Popular posts from this blog

Android Damn Vulnerable App by Security Compass

Tutorial of Android Damn Vulnerable App by Security Compass Introduction: Hi folks, today I am gonna show you some hands on or tutorial of the android app testing which I done during my R&D of android app security testing. Here I will show you from scratch setting up of Lab Server to testing of application. In this you will learn on below topics: 1)Insecure Connection (Traffic over HTTP) 2)Server Side Authorization Issue 3)Insecure File Storage 4)Insecure Logging 5)Encryption of data on device 6)Memory Protection Setting-up of lab (App & Server) First of all you have to download the base app which is damn vulnerable from here . After downloading zip and extracting it you have to build it in .apk format using Eclipse IDE. Now you have to install the app in the emulator before that you have to make sure that you installed SDK and its packages. To install the app you have to start emulator using AVD and clicking on "Start" or by command line emul...

Damn Vulnerable Android Application by Security Compass - Lab 2 Server Side Authorization Issue

 Lab 2 Server Side Authorization Issue Welcome back my friends now we are gonna have hands on on server side authorization issue in this lab we will use burp proxy try to manipulate the parameters and will see the impact. The server side authorization issue is in bank transfer function of an app as now a days some android apps rely on traditional architecture like REST interfaces to perform the functions. We can intercept the server client communication in 2 ways: 1) Go to settings -->more -->mobile networks --> Access point names create one new access point change proxy option to your proxy IP and change the port to port of proxy and save it. now your communication will be intercepted by proxy. 2)Another way is to start the emulator in proxy mode by giving below command emulator.exe @[AVD name] -http-proxy [proxy IP]:[proxy port] so now we are ready to intercept the communication. Lets launch the app Now as I said the server s...