6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/22/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#671] Privacy error with private sql address books
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ .___..___ __ [__)[__) _/ [__ / ` | \| \./__.[___\__.
Comment
> There seems to be a privacy/security error with private sql address books: > > When adding an entry (calling addobjectaction.php) user can define the > > owner_id database column -> user can add an entry in anybody's > > private sql address book. > > > > I've a private address book configured like this: > > 'title' => 'My Addressbook', > > 'type' => 'sql', > > 'params' => array( > > 'phptype' => 'mysql', > > 'hostspec' => 'localhost', // username, db, password removed > > 'table' => 'turba_objects' > > ), > > /* missing options straight from sources.php.dist */ > > 'public' => false, > > 'readonly' => false, > > 'admin' => array(), > > 'export' => true > > ); > > > > In the "Add" form there's a hidden field: > > <input type="hidden" name="object[__owner]" > value="invaliduser@not.my.domain"/> > > > > If the user set's the object[__owner] value he/she can add an entry to > > anybody's address book. > > > > AFAIK the problem is that addobjectaction.php doesn't check that the > > form value is the same as Auth::getAuth() (or that Auth::getAuth() belongs > > to the 'admin' => array()) ??? > > > > (also after reading thru deleteobject.php it seems that when removing > > entries the only check is that object_id matches the 'key' form data, > > I think the code should check that Auth::getAuth matches owner_id or > > is in the admin array). > > > > -Jarno
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers