<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Privacy error with private sql address books</title> 
  <pubDate>Mon, 06 Apr 2026 21:50:02 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/671</link> 
  <atom:link rel="self" type="application/rss+xml" title="Privacy error with private sql address books" href="https://bugs.horde.org/ticket/671/rss" /> 
  <description>Privacy error with private sql address books</description> 
 
   
   
  <item> 
   <title>There seems to be a privacy/security error with private sql </title> 
   <description>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 -&gt; user can add an entry in anybody&#039;s

private sql address book.



I&#039;ve a private address book configured like this:

  &#039;title&#039; =&gt; &#039;My Addressbook&#039;,

    &#039;type&#039; =&gt; &#039;sql&#039;,

    &#039;params&#039; =&gt; array(

        &#039;phptype&#039; =&gt; &#039;mysql&#039;,

        &#039;hostspec&#039; =&gt; &#039;localhost&#039;, // username, db, password removed

        &#039;table&#039; =&gt; &#039;turba_objects&#039;

    ),

     /* missing options straight from sources.php.dist */

    &#039;public&#039; =&gt; false,

    &#039;readonly&#039; =&gt; false,

    &#039;admin&#039; =&gt; array(),

    &#039;export&#039; =&gt; true

);



In the &quot;Add&quot; form there&#039;s a hidden field:

&lt;input type=&quot;hidden&quot; name=&quot;object[__owner]&quot; value=&quot;invaliduser@not.my.domain&quot;/&gt;



If the user set&#039;s the object[__owner] value he/she can add an entry to

anybody&#039;s address book.



AFAIK the problem is that addobjectaction.php doesn&#039;t check that the

form value is the same as Auth::getAuth() (or that Auth::getAuth() belongs

to the &#039;admin&#039; =&gt; array()) ???



(also after reading thru deleteobject.php it seems that when removing

entries the only check is that object_id matches the &#039;key&#039; form data,

I think the code should check that Auth::getAuth matches owner_id or

is in the admin array).



-Jarno</description> 
   <pubDate>Thu, 07 Oct 2004 10:21:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/671#t2443</link> 
  </item> 
   
  <item> 
   <title>Should all now be fixed in CVS, thanks for the report. So it</title> 
   <description>Should all now be fixed in CVS, thanks for the report. So it&#039;ll be in any future versions of Turba 1.2 and definitely in Turba 2.0.</description> 
   <pubDate>Sun, 10 Oct 2004 04:12:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/671#t2481</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
