Apache OpenOffice (AOO) Bugzilla – Issue 92940
editing of shared basic extension possible
Last modified: 2013-02-24 21:01:26 UTC
it's possible to *edit* basic code, deployed inside shared extensions. changes will be removed after restart. IMHO this could be a security issue. in oo 241 editing of shared basic was not possible at all.
Andreas, please have a look ... Thanks Kay
ab->brinzing: I don't understand in which way this should effect security. Could you please explain. STARTED, 3.1 for now
> I don't understand in which way this should effect security. a user should not be able to add/change/replace shared code ...
If the shared code stored on a device where the user has no write access, it's not possible to commit any changes anyway. So I see no real security issue here, but I agree that setting shared extension libs to read only would be better. But: As notified by a user on the extensions dev mailing list this problem also applies to user extensions. They can be edited but saving the changes does not succeed. This is a regression and as discussed with mh it will be fixed as 3.0 showstopper in the scope of this issue. Additionally libraries in shared extensions will be made read only like all pre installed shared libraries. -> OOo 3.0, P2 (data loss)
FIXED
ab->jsk: To test, take any extension containing Basic (for convenience: Q:\bugdoc\bis93000\i92940_ExtensionWithBasicLib.oxt) and install it 1. in user The library's Basic modules should be editable as before. When saving and restarting the Office (without quickstarter!) the changes should still be there. Before they were lost. 2. in shared The library's Basic modules shouldn't be editable any more like all pre installed libraries (Euro, Tools, etc.). The extension must *not* be added to user/basic/script.xlc + dialog.xlc
Cannot test Linux, as the provided build is a tgz-archive which installs into the users home directory which again gives the user full read/write access to the shared layer. Unpacking the archive to /opt as root is known to give an unusable installation.
Verified using the suggested sample extension. Owners can write (and survive restart), non owners cannot alter module in BASIC IDE
*** Issue 93635 has been marked as a duplicate of this issue. ***
Verified, BASIC from shared context cannot be edited (though marked and copied), changes to BASIC in user context is possible and saved ok. Closing