Solved

j2me Midlet Verification/Validation Problem

Posted on 2008-06-16
5
1,042 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sql import cannot be resolved jsp 3 116
Java: The Public Class Main 4 65
Java basic valueOf question 1 50
Cisco ASA: Java web start no go, asdm launcher no go 3 88
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn different types of Android Layout and some basics of an Android App.
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

734 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