Solved

j2me Midlet Verification/Validation Problem

Posted on 2008-06-16
5
1,041 Views
Last Modified: 2013-11-24
Hello all,

Lets examine the following scenario:
I have developed a Midlet, i have digitally Signed with a CA, and i am installing it in a Handset.
lets say that a hacker have managed to:
(1)find the src code of my midlet
(2)modify the code according to his needs but make it looks same with mine
(3)remove the signed midlet from the handset, and install his malicious "clone" Midlet.

The questions are:
(a)How the user can know that the midlet that he is launching is signed Midlet and NOT one that it is NOT signed?
(b)Is there another way that the user can check (Options perhaps?) that the Midlet is Digitally Signed?
(c)Can be done this with code on a signed Midlet? Namely to show to user that the midlet that he is using is
   signed and not a malicious one OR this is NOT so secure?
(d)For Nokia6500 and for an UNSigned Midlet when i use Options->Details i can see Name,Size,Creation Time,Version,Vendor,Certificate of the Midlet.
   Is there a way that a malicious user or program to make an UNSigned Midlet look secure?(namely to show that certificate is valid)

Thank you very much!

NiKolaos
0
Comment
Question by:deathstar641
5 Comments
 
LVL 13

Accepted Solution

by:
MicheleMarcon earned 43 total points
ID: 21800349

All you can do is go to

www.verisign.com

and buy a "Code signing" signature.

0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 41 total points
ID: 21801361
a) I think if the midlet is signed the user will be prompted with a popup window when tries to acees restricted APIs.
b) You can but this depends heavily on the mobiel device you are using. For Nokia devices you can do something like this: http://wiki.forum.nokia.com/index.php/Java_ME_FAQ#I_signed_my_midlet_with_a_Verisign.2FThawte_and_it.27s_not_installing_on_device_X.2C_what.27s_wrong_with_it.3F
c) I guess you *could* do that if you read the certificates and iterate through them.
d) I am not sure but I guess there are always ways to hack it.
0
 
LVL 12

Assisted Solution

by:keyurkarnik
keyurkarnik earned 41 total points
ID: 21923896
a)All standard phones check if a midlet is signed or not. A midlet could be signed by your own certificate or by one of the code signing certificates. As long as the root of the certiifcate chain is in your phone's list, it will treat the midlet as trusted. If the root os your certificate isnt in the phone's list, it will be treated as untrusted (even if its signed)

b)When the user tries to install the application, nearly all phones will show the certificate if its signed. The phone provides the capability of viewing the certificate

c) There is no need to write code for this. The signing is done FOR the code, so you need not put the certificate check inside the midlet. (Even if you do something like that - at installation it will b treated as an untrusted midlet. Only when the program starts will the other things come into effect - which defeats the entire purpose)

d)Unless the certificate is actually valid, it will not be possible to show the certificate as valid. Also, someone would not be able to duplicate your signing certificate as long as you dont give it away.


Note : You could add the certificate into the phone (in the security - Certificates or similar sections). So all the applications signed by that certificate will be valid. But this will require the user to first install the certificate manually
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
eclipse apache tomcat admin console 52 123
iterator/ListIterator approach 17 41
Java string replace 11 55
collection output issue 9 39
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question