RE: [Zope] Re: Re: [Security] How to encrypt a Zope oid ?
[Sinclair]
Example : a document has url : $ZOPE/.../document_manager/document_37.
I wish the displayed url looks like : $ZOPE/.../document_manager?document=k2316fge54dsgb51v3vsdv4
That is the document_manager who translates an unreadable parameter to document real url.
What I want to avoid is somebody trying to access manually to document_38, document_39, etc., just to add more security...
If I wanted to look at the document, I would just copy and paste that document number. Do you really mean that you do not want people to be able to __guess__ other neraby URLs? Why would you not want that? If you think that an unauthorized person should not be able to view a given page, you need to apply some authorization machinary. An obfuscated URL is not really enough. If that is not what you mean, then presumably you are willing to allow any user to access those pages. Why, then, would you want to make it harder for them to do so? If you want the pages to appear only within their intended frame, a user with the right browser can easily defeat that intention unless you enforce it using javascript in the page. Please explain further why you wish to restrict access to those pages, then maybe you will get more useful suggestions. Cheers, Tom P
On Mon, 2003-09-15 at 11:48, Passin, Tom wrote: [snip]
If you want the pages to appear only within their intended frame, a user with the right browser can easily defeat that intention unless you enforce it using javascript in the page.
Which isn't secure at all, since someone who is really dedicated would just fire up curl, wget, lynx, etc (insert tool of choice here) to attempt to grab whatever they want anyway, bypassing any javascript on the page. -- Edward Muller - http://www.interlix.com - "Open Source Specialists" Dedicated Zope Hosting - Web Hosting - Open Source Consulting Network & PC Service & Support - Custom Programming Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572 Jabber: edwardam@jabber.interlix.com - AIM: edwardam453 - ICQ: 287033
Example : a document has url : $ZOPE/.../document_manager/document_37.
I wish the displayed url looks like : $ZOPE/.../document_manager?document=k2316fge54dsgb51v3vsdv4
I can't imagine *why* you think that would be more secure. My guess would be that this is *less* secure, if anything, since document_manager will need to have the largest possible permission set to work correctly. It would become a single point of failure with greater security implications than the failure of any one piece it manages. But if you really must, it's easy enough. Make document_manager a Python script that has one giant mapping of object ids and "encoded" ids. For a request to the "encrypted" id, return the contents of a call to the object specified in your mapping. But I think you're working hard to reinvent a wheel here, and I'm not convinced your proposed wheel is even round. :-) You'll probably be better off spending this time becoming familiar with Zope's existing security model. HTH, Dylan
participants (3)
-
Dylan Reinhardt -
Edward Muller -
Passin, Tom