Page 1 of 2

OSSL notecard functions and threat level

Posted: Wed Aug 06, 2014 6:12 pm
by Handy Low
The following OSSL functions have a threat level of "very high":

osMakeNotecard()
osGetNotecardLine()
osGetNotecardLine()
osGetNumberOfNotecardLines()

Why is the threat level so severe? Is there any chance of it being reduced (ideally to "none")?

Re: OSSL notecard functions and threat level

Posted: Wed Aug 06, 2014 7:59 pm
by Ilan Tochner
Hi Handy,

Those are the default OpenSim threat levels. If they are set at this level it's probably because there is some grieffing attack vector that uses these functions for creating mischief.

Until we know what that vulnerability is, and can assess the threat it creates, we won't be changing those values from their default.

Re: OSSL notecard functions and threat level

Posted: Wed Aug 06, 2014 11:26 pm
by Handy Low
Thanks, Ilan. It's hard to imagine any kind of griefing that involves (say) counting the lines in a notecard (especially when you can do that anyway with native LSL functions, just in a messier way), but I take your point.

Re: OSSL notecard functions and threat level

Posted: Wed Aug 06, 2014 11:40 pm
by Ilan Tochner
Maybe each such access to a notecard requires a database query and allowing it can enable easy DOSing of the sim by creating hundreds of objects constantly calling these functions (I'm just guessing). In any case, some OpenSim developer obviously saw a way this can be abused or else the threat level for these functions would have been set much lower.

Re: OSSL notecard functions and threat level

Posted: Thu Aug 07, 2014 6:37 pm
by Handy Low
Yes, perhaps the event-based design of the native LSL notecard functions acts as a fence to that sort of attack.

Re: OSSL notecard functions and threat level

Posted: Fri Aug 08, 2014 5:31 am
by Min Tigerpaw
What are the consequences of a OSSL-function being rated with a high threat level? :?:
They seem to work without problems in Kitely and OS-grid e.g. in my recently launched "MT College Board" and are extremely useful; however some grids lioke Meta apparently has put restrictions on their use (which is an issue for exportable stuff).
I'm using the osNotecard functions for some of my scripted builds and intend to do that more as they are really very useful. :!:
Hope there are no plans to restrict those functions in Kitely and osGrid as they are key to my new videoplayer and other script-projects. It's really nasty if you can't save data to a notecard via script as in SL - for me a clear plus and differentiator for Kitely/OpenSim vs SL.

Re: OSSL notecard functions and threat level

Posted: Fri Aug 08, 2014 9:01 am
by Handy Low
Unless I'm mistaken, the OSSL notecard functions (and others with a high threat level) will only work in objects belonging to the owner of the region they're in.

Re: OSSL notecard functions and threat level

Posted: Fri Aug 08, 2014 2:46 pm
by Min Tigerpaw
Handy Low wrote:Unless I'm mistaken, the OSSL notecard functions (and others with a high threat level) will only work in objects belonging to the owner of the region they're in.
Hmm... :? thought I had checked, that with my alt the used osNotecard functions were working (at least some weeks ago) - and that they also worked in a sandbox of another grid - need to ckeck again!

If what you describe is what it really is - then it's a bit scary from my view:
Let's say someone uses my MT Colllege Board at a teaching grid where he/she is not the grid-owner he/she will not be able to save what was created on the board :evil:
or
If a approved user , of my upcoming videoplayer, who is not the owner of the player, wants to save a playlist he/she will not be able to do so :evil:
If a future furniture with multipose seating autosaves to a notecard this will not work if it's not placed on the owners grid and used be the owner. :evil:

Let's wait until I've checked if the restrictions really are as described - if so:
As these are serious restrictions for developing OpenSim towards a good interactive experience I heavily vote for a review of these ratings (or the consequences for this rating). I can't imagine that the alternative - to allow scripts to use an external server to save in game data - is a more safe approach against griefing.

Re: OSSL notecard functions and threat level

Posted: Fri Aug 08, 2014 3:08 pm
by Handy Low
I completely agree, Min. The inability to save data persistently (aside from reusing prim parameters such as description) has been to my mind one of the most frustrating shortcomings of LSL scripting in SL, and it's a huge shame that OpenSim doesn't address this in a portable manner without changing OpenSim.ini.

Saving data "in the cloud" may be fashionable at the moment, but it's a horrible solution to this particular issue.

Re: OSSL notecard functions and threat level

Posted: Fri Aug 08, 2014 3:28 pm
by Ilan Tochner
Hi Min,

OpenSim requires such high threat level scripts to be run by the region owner not the grid owner. Bought items will therefore work in your customers' own Kitely worlds and in the regions they have connected to other grids. This is default OpenSim behavior, we haven't changed it - the only parameter that changes between different grids is what threat level is set as the maximum which is allowed for non region owners (or parcel owners, etc.). See: http://opensimulator.org/wiki/Threat_level and http://www.kitely.com/virtual-world-new ... supported/