r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Plugin-2] Browser Plugins

Gabriele
12-May-2006
[780x2]
i mean - i cannot fix it if i don't have the master source file. 
we can send improvements to carl, but i don't think he has time to 
consider them right now.
i'd say, wait after rebol 3 is out. that code will most likely need 
to be rewritten anyway.
Pekr
12-May-2006
[782x2]
but that is exactly proper proxy detection fails ... the code checks 
for proxy settings on inproper assumptions ... so - then why to release 
rebol 2 plug-in at all? :-)
I will study it once again to see ... but someone could confirm, 
if I am right thinking it is the function responsible for proxy detection 
:-)
Volker
12-May-2006
[784]
Threads: Rebol puts important stuff in globals. That is similar to 
putting things in the globl context: with a single thread it is ok 
to change a var. With multiple threads andno coordination, itleads 
to chaos.. Think two threads use the  same interpreter-pc.
Pekr
12-May-2006
[785x2]
ok, ok, I just do not understand, why browser should use several 
different threads? Couldn't it be simply that they multiplex between 
various stuff? In such case  - nothing would be conflicting? (beware 
- just a speculation of non-experienced low-level "coder" :-)
don't tell me, that for each instance of Flash e.g., it uses separate 
threads? And what embedded OSes, which do not have threads? I wonder 
if it limits number of flash banners on the site displayed?
Volker
12-May-2006
[787x3]
Thats the part called thread-safe. Such things can be done, but need 
some organisation. For example (speculation): rebol does something 
like
  forever[ do-next-step ]

And now that has to be changed insomething which returns in between. 
And save all theglobals currently scattered everywhere in the sourcecode.
But i guess each instance of flash uses really an own thread.
Some things are simpler then. As long as the threads dont need to 
work together.
JoshM
12-May-2006
[790]
Regarding multiple threads/instances: we're looking into a solution 
that may solve this problem.
JoshM
15-May-2006
[791x4]
Hi all. Hope you had a good weekend.
I am working on a design doc for making the default security settings 
for the plugin more restrictive.
I know we talked about it a while ago, but those discussions are 
long gone from REBOL and from the web......I apologize, I should 
have archived them. Can you repost your thoughts on the default security 
model, in *concise* posts please? thank you!
I'm sorry, those discussions are long gone from AltME and the web 
archive, that's what I meant to say.
Volker
15-May-2006
[795]
BTW, you talked about rebol as external process,sharing window. Its 
not plugin, but could that work between rebol-apps? view-desktop 
could profit a lot.
JoshM
15-May-2006
[796]
hmm. good thoughts. I don't think that will go into the next release 
of plugin, but you could suggest it in the general REBOL 3.0 area
Volker
15-May-2006
[797x2]
Extra Security, some thoughts:
- 'secure for ips, eg: secure [net ask tcp://rebol.com allow]
- don't share sandbox-folders between hosts.
- if possible memory-restriction, hd, cpu?
- clipboard-restriction somehow?

- check for memory-access, specially disable struct! . IMO real hackers 
will figure out how to inject code by poke. 

- reblets can store executable code by naming the file *.exe. Does 
not run immediate, but script can open folder in explorer by browse, 
and one wrong click runs it. (or is windows smarter now? Maybe you 
could add an own extension always, and maybe store everything as 
64#{} ?

- Make sure untrusted reblets don't run invisible, can snoop clipboard, 
or at least users online-times. I guess creatives can find other 
uses.

- Maybe some kind of log about starts/stops, with urls? To have a 
little chance of tracking. Some kind of global console.
- Running out of thoughts for now.
- protect access to real file-pathes. kind of chroot. getting 'what-dir 
can be a good hint for attacks i guess. At least mozilla puts a random 
part in profile-folders.
Sunanda
15-May-2006
[799]
A couple of quick thoughts:

[*] Don't allow reading/writing outside of a local sandbox......That 
includes not allowing access to URLs elsewhere on the web.  permitting 
wider local access and permitting wider web access should be separate 
security settings
[*] Disallow send by default
Pekr
15-May-2006
[800x4]
huh, are we talking rebol then?
disallowing send? why? can't you just send email by java script?
I would not limit rebol networking at all, I would add some security, 
yes, but not limitation ...
What Volker suggests might work, but then rebol's secure dialect 
should be extended ....
Volker
15-May-2006
[804x3]
Yes of course with dialog. And some way to set prferences. I like 
how noscript does that.
disallowing send - how many spam can i send on your account while 
you run my reblet?
Maybe change it and open the users mail-client with the prepared 
email?
Maxim
15-May-2006
[807x2]
that is a very good idea volker!
this should actually be added as a standard REBOL feature IMHO!
Volker
15-May-2006
[809x2]
Thinking about it, yes. Maybe the standard things native, browser, 
email, editor. With an option to use mail and editor inbuild. Maybe 
these could run by 'launch, so they are rebol, but reblets cant touch 
the real code.
BTW how about changing the exe to a thin wrapper around the dll? 
Would be a single download for both. (could be offered in both ways, 
completely one exe, or wrapper + plugin + dll).
Allen
15-May-2006
[811x2]
Volker. Jaime.  Clipboard access should probably raise a security 
request, like it does in (secured) browsers.   Maybe it should also 
be part of 'secure  ...
woops, not Jaime ==> Josh
Volker
15-May-2006
[813x2]
Yes. its tricky. restriction is very inconvenient, but snooping can 
be valuable. I sometimes even clip passwords..
Maybe a native 'field, which is not accessible from the script until 
"enter", and allowing pasting there? Rebol3, how much protection 
can modules give?
Allen
15-May-2006
[815]
Yes. You should try disabling third party cookies in your browsers 
and see how much stuff is leaked to  through that., easy enough to 
steal from a form a user just filled out ;-)
ScottT
15-May-2006
[816]
Looks like Volker covered the security issues I'd note.  About Rebol 
as a COM server process--I would think that would be the way to go. 
 Pretty sure that is how Acrobat runs, too.  Basically, the first 
time you run into a PDF on the web Acrobat32 starts, and handles 
all instances.
Anton
15-May-2006
[817]
To disallow send properly means a mini firewall.  If you disallow 
SEND, script implements its own function. If you remove smtp scheme, 
script implements its own smtp scheme. Therefore, you have to get 
it at the root, which is to block outgoing tcp on port 25.
Pekr
16-May-2006
[818]
hmm, blocking port 25? What if I am a hacker and I run smtp on purpose 
on different port? ;-)
Henrik
16-May-2006
[819]
let's hope hackers are very stupid then :-)
Volker
16-May-2006
[820]
That mini-firewall is in my secure-proposal:  secure [net ask tcp://rebol.com 
allow].

Although securing ports would be nice too, secure [net ask tcp://rebol.com 
80 8080 - 9090 allow].
Oldes
16-May-2006
[821]
Be carefull with restricting Rebol. I like Rebol, because I can simply 
do things, which I cannot do in other apps. I cannot believe, that 
Maxim wants to remove send even from Rebol and replace it with some 
application. Why? Do I need xxMB large aplication just to send message? 
What will be better in Rebol than in Flash, if you remove the best 
parts of Rebol?
Volker
16-May-2006
[822]
Because you run in the browser now and spy/adware/spammers will love 
rebol without such things.
Maxim
16-May-2006
[823]
Oldes, it should be a different word yes. every plugin does not send 
mail directly, they prepare the mail. it is what user expects.
Volker
16-May-2006
[824]
With exe people run rebol intentionally (although /desktop goes in 
the other direction). With plugin user goes to a web-page and webdesigner 
turns that into a rebol-page without notice.
Oldes
16-May-2006
[825]
I agree, that some security is needed, but just want to say, not 
to give everything away just because there may be one bad guy
Pekr
16-May-2006
[826]
I ask once again - isn't it possible to send email using javascript 
and getting into browser settings?
Maxim
16-May-2006
[827]
we must not view rebol in the browser as a means to distribute any 
apps.   I also think the plugin should have a complete control panel 
which allows user to choose from "allways/ask/never" for every sensitive 
aspect.
Volker
16-May-2006
[828]
If that is possible the browser is severely broken.
Oldes
16-May-2006
[829]
Rebol as a plugin is here more then 2 years. It was plenty of time 
to do evil things