While this caveat behavior is known and possibly relied upon by lsl scripts.
Nobody should be writing a slua script expecting this security issue to exist.
So if possible could a
ll.HTTPRequest
from slua, only trigger the
http_response
event in the slua script making the request.
Or a
dataserver
request also respond only to the requesting script.
Not in any other, script regardless of their platform runtime.
This might be a slight pain to implement to keep the behavior for lsl on luau scripts, but I think worth it for slua
Test
Place 2 scripts in a prim save them with the following content
ll.HTTPRequest("https://secondlife.com",{},"")
function http_response(id,stat,meta,body)
ll.OwnerSay(`{ll.GetScriptName()} = {stat}`)
end
Note that on saving of the second script you get 2 owner says, one from each script stating the response status.
Ideally this behavior should be avoided for slua.
Alternate suggestion
It was suggested it may be possible to instead add a new
HTTP_*
flag
Something like
ll.HTTPRequest(
"https://secondlife.com",
{
HTTP_PRIVATE_REQUEST, TRUE
},
""
)
This would not work for dataserver events though