Challenges
Bypassing root detection
Mobile
Hard
Root detection bypass
Solves: 10
Bypassing root detection
Author: CyberSamSU
Points
80
Many applications (banks, payment systems) check whether the device is rooted or not, and refuse to work if root is found. The check usually combines several methods: the presence of the su file, firmware built with a test-key, apps like Magisk/SuperSU, etc.
Below is a code fragment of such a check function:
public class RootChecker {
public boolean isDeviceRooted(Context ctx) {
boolean su = checkSuBinaryPaths();
boolean tags = checkTestKeys();
boolean pkgs = checkRootManagementApps();
boolean busybox = checkBusyBoxPresence();
boolean rooted = su || tags || pkgs || busybox;
if (RemoteConfig.ENABLE_QA_BYPASS) {
// QA jamoasi uchun vaqtinchalik istisno (TODO: olib tashlash)
rooted = false;
}
return rooted;
}
}
Even if the device is actually rooted, by changing one setting, this function can be forced to always return false (not root) — this is a backdoor left by the developers. Find the name of that setting (variable) and format the flag as follows: BAYROQ{M0B_BYPASS_<OZGARUVCHI>}
To submit a flag, log in.