Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-783

appc-security-jailbreak-detect does not prevent application launch on jailbroken device

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Verification
    • Labels:
      None
    • Environment:

      SDK 4.1.0
      iOS 8.4 Jailbroken on iPhone 6
      titanium 4.0.1
      appc 4.1.2
      alloy 1.6.0
      sdk in tiapp.xml 4.1.0.GA

    • Customer Priority:
      Immediate
    • Customer Labels:
    • Sprint:
      2015 Sprint 20 Tooling

      Description

      Documentation

      The special property appc-security-jailbreak-detect can be used to increase the security of your application by preventing the mobile app from running on a Jailbroken (iOS) or rooted (Android) device.

      In my testing this does not work. Sample app attached

      Steps to reproduce

      Create app

      ti create jailbreak
      ... choose mobile
      ... chose iphone
      ... ID is com.seth.jailbreak
      cd jailbreak
      

      Add properties just to be extra sure that the properties in enabled

      // note I test with no properties too

      <?xml version="1.0" encoding="UTF-8"?>
      <ti:app xmlns:ti="http://ti.appcelerator.org">
              <id>com.seth.jailbreak</id>
              <name>JailbreakApp</name>
              <version>1.0</version>
              <publisher>not specified</publisher>
              <url></url>
              <description></description>
              <copyright>not specified</copyright>
              <icon>appicon.png</icon>
              <fullscreen>false</fullscreen>
              <navbar-hidden>false</navbar-hidden>
              <analytics>true</analytics>
              <guid>d57bfc79-1587-443f-8244-359bc960bafa</guid>
              <property name="ti.ui.defaultunit" type="string">dp</property>
              <property name="appc-security-debugger-detect">true</property>
              <property name="appc-security-jailbreak-detect">true</property>
              <ios>...
      

      Build the app

      ti build -p ios -T device
      // builds
      

      Launch

      Open the app on the device

      Expected vs Actual

      Expected
      App closes right away or doesn't open
      Actual
      App opens and works like a normal app

        Attachments

        1. IMG_0332.PNG
          IMG_0332.PNG
          64 kB
        2. jailbreak.gif
          jailbreak.gif
          1.63 MB
        3. jailbreak.tar.gzip
          9.77 MB
        4. main.m
          2 kB
        5. tiapp.xml
          2 kB

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                stoda Seth Toda
              • Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code