Software architect working in Symbian/S60 area since 2000 and still being enthusiastic about mobility. Please visit my introduction page on Forum Nokia Champions web page.
tote_b5 | 27 October, 2007 03:48
Well, 3:00am has already passed and I'm tired and sleepy. One thing doesn't let me sleep, though. I've just stumbled upon these articles (Exploring S60 with AllFiles and Goodbye S60 Platform Security, Hello CAPABILITIES!) and I can't believe my eyes: Platform Security hacked?!
Briefly, the solution is as follows:
antonypr | 27/10/2007, 17:41
Hi tote,tote_b5 | 27/10/2007, 17:51
Hmm,Sorcery-ltd | 27/10/2007, 18:40
Perhaps the real problem here is that the software update process is not in any way secure. The software updater shouldn't be re-flashing the phone with any old image. We have to sign applications before they can go on the phone, but you can just edit a software update and it will still be flashed.Sorcery-ltd | 28/10/2007, 11:45
One further thought that struck me, if it hasn't been done already. To align with the new changes to Symbian Signed, the obvious fix to this on the phone side is never to allow the user to grant AllFiles, DRM or TCB and also only to allow the most basic capabilities for self-signed applications regardless of the capabilities that are "user grantable" (since open signed is now available for freeware).tote_b5 | 28/10/2007, 15:43
Mark,Sorcery-ltd | 28/10/2007, 16:28
Hi,tote_b5 | 28/10/2007, 17:40
Yeah, you're right in spotting the diff between the two types of deployment mechanisms. However, I still wonder 1: if Symbian Signed will really trace and eventually block applications, 2: how will they identify developers (since they don't require certificates, publisher IDs).PushL | 28/10/2007, 17:15
tote_b5 | 28/10/2007, 17:52
Well, as I've already pointed out, I can't see why the documentation of SW Intallation policy is published. That can be treated as sort of a flaw, negligence, I think.Mark Wilcox | 29/10/2007, 14:29
puterman | 29/10/2007, 16:15
kevinauthor | 29/10/2007, 22:45
Zdenko | 30/10/2007, 13:22
chall3ng3r | 30/10/2007, 14:44
tote_b5 | 30/10/2007, 15:06
Rippe | 30/10/2007, 15:23
Nokia takes all security issues seriously. We are determined to be active in the development of security controls and preventive measures.
Nokia is aware that it may be possible to modify the software update package of a limited amount of device models. This type of intentional modification may make the mobile device inoperational. This issue has no impact to the user unless there's intention to do these modifications.
We have taken necessary steps to correct this issue, and it will be fixed in future releases. It's important to note that our latest device models are not impacted with this case.
alb3530 | 30/10/2007, 18:40
There should never be a way to actually change security parameters.
If there's a standard set of capabilities that are user-grantable in Symbian v9, they should be the only ones user-grantable, and system shouldn't be expecting changes in a single ini file.
But what we see is the system is watching a configuration file, as if it was waiting for the security parameters to be changed and all capabilities to be granted by user.
In S60 2nd edition, you can change some system parameters by taking advantage of the fact some configuration files have priority when they are in writeable drives.
For example, you find the file Z:/System/data/genericnif.ini in the device.Then you copy it to the same path of E: drive (E:/System/data/genericnif.ini) , edit "mtuvalue" using some text editor, save the changes, and you've just changed the real MTU value.You can also copy resource files located at Z:/System/data/ from other phones to E:/System/data/ of your phone and give applications new languages.
All i can say is fortunatelly (or unfortunatelly for some people) it's not even easier to disable platform security in S60 3rd edition.The file swipolicy.ini (a plain text file) is found under Z:/System/data/ , that's a public directory in real device.If you copy it to E:/System/data/ and edit it, giving user the power to grant all capabilities, the changes won't take effect even after phone is restarted.The ini file copied to E: (from Z:) luckily isn't considered.
But if such a small breach was open, the Symbian 9 PlatSec concept would be really ruined at least in some devices.Even i'd have already done it 6 months ago approximately, cause i've tried such approach in a N80.And anyone else could have done also even without reading the documentation about software installer's policy parameters, available at symbian site, cause the contents of swipolicy.ini are easily understandable by anyone with average knowledge of Symbian 9.
If Symbian really needed to keep platform security settings that flexible, they should at least have stored it in binary format instead plain text.
PlatSec configurations were the last thing that should be stored in plain text format.
Best regards
Antony | 30/10/2007, 22:57
Hi,
It's been asked a couple of times here - why is the format of "swipolicy.ini" published in the Symbian Developer Library?
There are two answers to this question.
(1) It was intended to allow developers working within the emulator to re-configure the platform security settings during development so they don't even need to use developer certificates.
(2) Any security system that relies on file formats, function ordinals, or any non-user-specific information being kept secret is doomed. Security by obscurity is well established as a bad idea.
Cheers,
Antony
Antony | 31/10/2007, 09:48
Hi,
The above posting should have said @publishAll rather than @publishPartner.
Cheers,
Antony
tote_b5 | 31/10/2007, 10:23
To those not familiar with Symbian's tagging policy (e.g. @publishPartner, @publishAll), you may find this document useful:
http://developer.symbian.com/main/downloads/papers/symbian_tagging_policy/Symbian_Tagging_Policy_&_Guidelines_v1.0.pdf
Tote
-miniME- | 01/11/2007, 08:07
klaus peter | 01/11/2007, 08:36
William | 01/11/2007, 13:07
bjoernQ | 01/11/2007, 14:25
Durr | 01/11/2007, 16:04
anonymous | 09/11/2007, 10:40
It's been said it's in ini file to make debugging more easy. It's very good that now it is more easy on phone too :)
Kumar | 11/11/2007, 13:28
tote_b5 | 12/11/2007, 02:20
Software architect working in Symbian/S60 area since 2000 and still being enthusiastic about mobility. Please visit my introduction page on Forum Nokia Champions web page.
RDF Facets:
qfnZtopicQUqfnBlogTopicZgeneralQ
qfnZtopicQUqfnTopicZcppQ
qfnZtopicQUqfnTopicZseriesE5f60Q
qfnZtypeQUqfnTypeZBlogContentQ
qfnZtypeQUqfnTypeZBlogE45ntryQ
qfnZtypeQUqfnTypeZCommunityContentQ
qfnZtypeQUqfnTypeZWebpageQ
qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX
Re: Symbian Platform Security - hacked?
Sorcery-ltd | 27/10/2007, 16:38
I can understand it being in the update because you might get your phone from a paranoid operator who doesn't allow any installs but their own certified ones or something like that. Then you'd need a software update that would effectively unlock the phone if you moved to another network.
However, this looks like the Unix security equivalent of storing your root password on your hard disk in plain text. It's just waiting for someone to find it. From the comments on the article it sounds like it had been spotted before it got out as someone has bricked their phone by trying the same thing on another model. Even with the file in plain text, if there was a CRC check for it stored somewhere else in the update image it would immediately be harder to crack. I agree completely though - the update should definitely be encrypted. The trouble is that the phone probably doesn't have enough RAM to decrypt a complete update, so it would have to be done on the PC - then it would still be in memory on the PC unencrypted at some point.
I had some involvement with the OTA software update stuff and that's a lot more secure than this.
I wouldn't be surprised if that article had disappeared early next week.... and this blog posting?
Mark