<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="0.92">
<channel>
	<docs>http://backend.userland.com/rss092</docs>
	<title>Achievo Community</title>
	<link>http://www.achievo.org/forum/</link>
	<description></description>
	<managingEditor>ivo@achievo.org</managingEditor>
	<webMaster>ivo@achievo.org</webMaster>
	<lastBuildDate>Sat, 22 Nov 2008 00:31:11 GMT</lastBuildDate>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59131#59131</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=6&quot; target=&quot;_blank&quot;&gt;boy&lt;/a&gt;&lt;br /&gt;

Posted: Sat Nov 22, 2008 1:10 am (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hi cbc,
&lt;br /&gt;

&lt;br /&gt;
1. I think you don't really understand the problem.
&lt;br /&gt;

&lt;br /&gt;
Say your host employs the following structure:
&lt;br /&gt;

&lt;br /&gt;
/home/cbc/www/
&lt;br /&gt;
/home/someguy/www/
&lt;br /&gt;
/home/someothercustomer/www/
&lt;br /&gt;

&lt;br /&gt;
Now either the someguy account gets hacked or someguy is 'evil', anyway, a script gets uploaded:
&lt;br /&gt;

&lt;br /&gt;
/home/someguy/www/findwriteablefiles.php
&lt;br /&gt;

&lt;br /&gt;
This script then looks in /home/ and because the administrator forgot to not make /home/ readable for every user, he gets a list with all the accounts on that system (or through some other way), then the script checks out all the subdirectories of every user and looks for (php/html) files it can write to.
&lt;br /&gt;

&lt;br /&gt;
Then it writes it's evil code.
&lt;br /&gt;

&lt;br /&gt;
Now note that even if you had the code /home/cbc/mycode/ someguy would still have been able to write to it, because atktmp needs to be writable to the httpd user and someguys scripts run as the httpd user.
&lt;br /&gt;

&lt;br /&gt;
That's what I suspect happened.
&lt;br /&gt;

&lt;br /&gt;
Although narrowing down the attack surface by moving non-browesable code outside the www root is definitely a good thing.
&lt;br /&gt;

&lt;br /&gt;
2. Like stevie said... ATK has been around a while, at the start of PHP3 I believe. When everybody just did everything in the webroot.
&lt;br /&gt;
It's tough to change that now.
&lt;br /&gt;
Although I believe it can be done, especially for custom ATK applications with what I mentioned in the previous reply.
&lt;br /&gt;

&lt;br /&gt;
3. Good luck. Hope you have a good host.
&lt;br /&gt;

&lt;br /&gt;
4. Please do.
&lt;br /&gt;_________________&lt;br /&gt;The most likely way for the world to be destroyed, most experts agree, is by accident. 
&lt;br /&gt;
That's where we come in; we're computer professionals. 
&lt;br /&gt;
We cause accidents.
&lt;br /&gt;
- Nathaniel Borenstein&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: blocking list atribute already filled - sending mail</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59121#59121</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=1336&quot; target=&quot;_blank&quot;&gt;ralphy&lt;/a&gt;&lt;br /&gt;

Posted: Sat Nov 22, 2008 12:01 am (GMT 2)&lt;br /&gt;
Topic Replies: 10&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Bert,
&lt;br /&gt;

&lt;br /&gt;
after reading the value in Debug Statement:
&lt;br /&gt;

&lt;br /&gt;
  &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Invoking 'editPage' on actionhandler for action edit&amp;quot;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#41;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @C&amp;#58;\Program Files\Zend\Apache2\htdocs\recette\atk\handlers\class.atkedithandler.inc, line 79
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; atkActionHandler-&amp;gt;invoke
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;editPage&amp;quot;,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array&amp;#40;id=49, commenta=xxxxxxxxxxxx, =, cod_cli=Array, type_contact=MAIL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , atkprimkey=commentaire_com.id='49'&amp;#41;,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; false
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#41;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
Type_contact value if filled (MAIL) but only the id field has quotes.
&lt;br /&gt;
Just after updating, field is Null :
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;#91;&amp;quot;type_contact&amp;quot;&amp;#93;=&amp;gt;
&lt;br /&gt;
&amp;nbsp; string&amp;#40;0&amp;#41; &amp;quot;&amp;quot;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Debug Statement
&lt;br /&gt;
&amp;#91;+0.54661s / 0.05343s / 11.34MB&amp;#93; atkoci9db&amp;#58;query&amp;#40;&amp;#41;&amp;#58; UPDATE commentaire_com SET commenta='xxxxxxxxxxxx jjjjj',type_contact=NULL WHERE commentaire_com.id='49'
&lt;br /&gt;
Backtrace&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
 &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp;atkNode-&amp;gt;updateDb
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; array&amp;#40;id=49, commenta=xxxxxxxxxxxx&amp;nbsp; &amp;nbsp; jjjjj, =, cod_cli=Array, type_contact=, atkprimkey=commentaire_com.id='49', __executedpreUpdate=1&amp;#41;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#41;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
hope it helps to understand
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59111#59111</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=1983&quot; target=&quot;_blank&quot;&gt;cbc&lt;/a&gt;&lt;br /&gt;
Subject: Moving atktmp outside website root&lt;br /&gt;
Posted: Fri Nov 21, 2008 11:28 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hi All!
&lt;br /&gt;

&lt;br /&gt;
1. My understanding -- please correct me if I'm wrong -- is that moving files outside the website root would prevent their being accessed via HTTP, but would not prevent their being written to if permissions were not set properly. In the case of the event that started this thread, permissions on atktmp were 775 recursively, owner me, group httpd.
&lt;br /&gt;

&lt;br /&gt;
2. Nevertheless, when setting up ATK I was a little surprised that the libraries are in web-accessible locations by default. Can these and atktmp be located outside the root? Haven't tried it. May not help, but it can't hurt. Jorge is right, it seems to me.
&lt;br /&gt;

&lt;br /&gt;
3. I am in a dialogue with my host at present, following up on Boy's suggestion. Not getting much help though. 
&lt;br /&gt;

&lt;br /&gt;
4. If I find anything out from the host, or figure out how these files were written to, I will certainly post it here.
&lt;br /&gt;

&lt;br /&gt;
THANKS!
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: MYSQL Table relationships and dependence</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59101#59101</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=2026&quot; target=&quot;_blank&quot;&gt;muaz&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 11:13 pm (GMT 2)&lt;br /&gt;
Topic Replies: 6&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;The descriptor_def() in my city node is:
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;function descriptor_def&amp;#40;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return &amp;quot;&amp;#91;post_code&amp;#93; &amp;#91;name&amp;#93;&amp;quot;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;[/code]
&lt;br /&gt;

&lt;br /&gt;
I commented out the all the setDescriptorTemplate() functions but there is no difference.
&lt;br /&gt;

&lt;br /&gt;
Also since we are talking about the descriptor_def() function, I have an attribute &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;$this-&amp;gt;add &amp;#40; new atkDateAttribute &amp;#40; &amp;quot;start_date&amp;quot;, AF_OBLIGATORY &amp;#41; &amp;#41;;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt; and whenever I call it through
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;function descriptor_def&amp;#40;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return &amp;quot;&amp;#91;start_date&amp;#93; - &amp;#91;end_date&amp;#93;&amp;quot;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
I get an &amp;quot;array&amp;quot; and not the value of the date. Is there any special way to call date attributes? 
&lt;br /&gt;

&lt;br /&gt;
Thanks
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: blocking list atribute already filled - sending mail</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59091#59091</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=296&quot; target=&quot;_blank&quot;&gt;BERT&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 10:59 pm (GMT 2)&lt;br /&gt;
Topic Replies: 10&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Ralph,
&lt;br /&gt;

&lt;br /&gt;
I'm not sure at this point.  Have you turned on debug and looked (atk_var_dump)  at the record values after you read them (in the editPage function ) and also on the preUpdate function?  If so is type_contact set in the record variable?
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: MYSQL Table relationships and dependence</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59081#59081</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=296&quot; target=&quot;_blank&quot;&gt;BERT&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 10:47 pm (GMT 2)&lt;br /&gt;
Topic Replies: 6&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;1st off you don't need to setDescriptorTemplate  if the descriptor_def is set as what you want to display.  In my example I wanted a more specific value ([Name])  instead of the one I had set in my node. 
&lt;br /&gt;

&lt;br /&gt;
What is the descriptor_def in your City Node?  Is it already 'Name' if not try setting it to that.
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59071#59071</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=6&quot; target=&quot;_blank&quot;&gt;boy&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 10:20 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Rik, ATK has some support for that too: &lt;a href=&quot;http://forum.achievo.org/forum/viewtopic.php?t=10581&amp;amp;highlight=configapplicationdir&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;Achievo Forum: atk library outside public folder?&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
I would always welcome people to try that for their applications and see how/if that works.
&lt;br /&gt;_________________&lt;br /&gt;The most likely way for the world to be destroyed, most experts agree, is by accident. 
&lt;br /&gt;
That's where we come in; we're computer professionals. 
&lt;br /&gt;
We cause accidents.
&lt;br /&gt;
- Nathaniel Borenstein&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: OneToOne Relations in a Tabbed Pane</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59061#59061</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=1702&quot; target=&quot;_blank&quot;&gt;snapple42&lt;/a&gt;&lt;br /&gt;
Subject: One to Many works...&lt;br /&gt;
Posted: Fri Nov 21, 2008 9:54 pm (GMT 2)&lt;br /&gt;
Topic Replies: 3&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I tried a One To Many relation in the pane, and it came up fine....
&lt;br /&gt;

&lt;br /&gt;
Also, I've tried putting the OneToOne relations in a regular tab, and that does work.
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59051#59051</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=325&quot; target=&quot;_blank&quot;&gt;stevie&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 9:47 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;But, it is a trend to move all 'non-browsable' files out of the public directory.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
...would guess its a paradigm since PHP 3, which unfortunately was not noticed early enough by many famous php projects like ATK, Joomla and others. So it offen needs a hint mentioned above &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;
&lt;br /&gt;

&lt;br /&gt;
or such lines like this:
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;if&amp;#40;basename &amp;#40;$_SERVER&amp;#91;'SCRIPT_NAME'&amp;#93;&amp;#41; == basename &amp;#40;__FILE__&amp;#41;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; die &amp;#40;&amp;quot;no direct access allowed&amp;quot;&amp;#41;;
&lt;br /&gt;
&amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
...or...
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;// Check to ensure this file is included in Joomla!
&lt;br /&gt;
defined&amp;#40;'_JEXEC'&amp;#41; or die&amp;#40; 'Restricted access' &amp;#41;;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;_________________&lt;br /&gt;Impresario, Web Developer since 1782, CTO for personal freedom &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59041#59041</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=715&quot; target=&quot;_blank&quot;&gt;Rik&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 9:32 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hi Jorge,
&lt;br /&gt;

&lt;br /&gt;
Your solution won't help the problem described by cdc. This most probably happened because of wrongly set permissions. No matter where you would put the atktmp directory, this still would be possible.
&lt;br /&gt;

&lt;br /&gt;
But, it is a trend to move all 'non-browsable' files out of the public directory.
&lt;br /&gt;

&lt;br /&gt;
Cheers!
&lt;br /&gt;_________________&lt;br /&gt;Actiview
&lt;br /&gt;
Full-service internet agency
&lt;br /&gt;
&lt;a href=&quot;http://www.actiview.nl&quot; target=&quot;_blank&quot;&gt;http://www.actiview.nl&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59031#59031</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=325&quot; target=&quot;_blank&quot;&gt;stevie&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 9:15 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;Directory hint not to forget:&lt;/span&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;option indexes 
&lt;br /&gt;
&amp;nbsp;
&lt;br /&gt;
&amp;lt;Directory &amp;quot;/srv/www/web9/html/&amp;quot;&amp;gt;
&lt;br /&gt;
&amp;lt;FilesMatch &amp;quot;&amp;#40;.&amp;#40;cnt|inc|tpl|h|sql|ini|conf|class|bin|exe|lng|sh|pl&amp;#41;$&amp;#41;|&amp;#40;.*~$&amp;#41;&amp;quot;&amp;gt; 
&lt;br /&gt;
Order deny,allow
&lt;br /&gt;
deny from all 
&lt;br /&gt;
&amp;lt;/FilesMatch&amp;gt; 
&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;_________________&lt;br /&gt;Impresario, Web Developer since 1782, CTO for personal freedom &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59021#59021</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=174&quot; target=&quot;_blank&quot;&gt;jgarifuna&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 8:38 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;I find this very concerning, specially as I'm continuing to rollout more ATK sites with public interaction.
&lt;br /&gt;

&lt;br /&gt;
I wonder if those files cached on atktmp could be moved to a none-web location on the server. So as long as the reference to the atktmp folder is noted on the config file, any script that uses it should not have a problem getting to the correct cache.
&lt;br /&gt;

&lt;br /&gt;
I see this approach being used by web-apps that allow users to upload secure files from a web form.
&lt;br /&gt;

&lt;br /&gt;
To put this within context, assuming the following directory structure:
&lt;br /&gt;

&lt;br /&gt;
/home/my_account/public_html/atk_installation/atktmp
&lt;br /&gt;

&lt;br /&gt;
move atktmp so it recides on:
&lt;br /&gt;

&lt;br /&gt;
/home/my_account/atktmp
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Whether this is the host's issue or not, I think we (ATK developers) need to provide reasonable solutions to address it so ATK wont take the bad reputation of being insecure. 
&lt;br /&gt;

&lt;br /&gt;
If there is anything to learn from history, what can deduced is that at the end of the day, people will point fingers at the technology being used and not the offender. Microsoft and to a certain extent PHP itself continue to suffer from this dilemma.
&lt;br /&gt;_________________&lt;br /&gt;Jorge Garifuna
&lt;br /&gt;
Professional Web Developer
&lt;br /&gt;
Garinet Global Inc.
&lt;br /&gt;
&lt;a href=&quot;http://www.GariDigital.com&quot; target=&quot;_blank&quot;&gt;http://www.GariDigital.com&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: MYSQL Table relationships and dependence</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59011#59011</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=2026&quot; target=&quot;_blank&quot;&gt;muaz&lt;/a&gt;&lt;br /&gt;

Posted: Fri Nov 21, 2008 7:41 pm (GMT 2)&lt;br /&gt;
Topic Replies: 6&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Hello BERT,
&lt;br /&gt;

&lt;br /&gt;
Thanks for the reply. Ok, I have implemented the relationships as in the code. the code is in the member node.
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;$attr = &amp;amp;$this-&amp;gt;getAttribute &amp;#40; &amp;quot;address_id&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$attr-&amp;gt;setDescriptorTemplate &amp;#40; &amp;quot;&amp;#91;address&amp;#93;&amp;quot; &amp;#41;; //set to only show address field. address is the name of the field in the address table
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$address_node = &amp;amp;$attr-&amp;gt;getDestination &amp;#40;&amp;#41;; //get node of address_id
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$address_attr = &amp;amp;$address_node-&amp;gt;getAttribute &amp;#40; &amp;quot;city_id&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$address_attr-&amp;gt;setDescriptorTemplate &amp;#40; &amp;quot;&amp;#91;name&amp;#93;&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$city_node = &amp;amp;$address_attr-&amp;gt;getDestination &amp;#40;&amp;#41;; //get node of city_id
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$city_attr = &amp;amp;$city_node-&amp;gt;getAttribute &amp;#40; &amp;quot;canton_id&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$city_attr-&amp;gt;setDescriptorTemplate &amp;#40; &amp;quot;&amp;#91;name&amp;#93;&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$canton_node = &amp;amp;$city_attr-&amp;gt;getDestination &amp;#40;&amp;#41;; //get node of canton_id
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$canton_attr = &amp;amp;$canton_node-&amp;gt;getAttribute &amp;#40; &amp;quot;country_id&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$canton_attr-&amp;gt;setDescriptorTemplate &amp;#40; &amp;quot;&amp;#91;name&amp;#93;&amp;quot; &amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$attr-&amp;gt;addListColumn &amp;#40; &amp;quot;city_id&amp;quot; &amp;#41;; // add city_id to DivDept listcolumn 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$address_attr-&amp;gt;addListColumn &amp;#40; &amp;quot;canton_id&amp;quot; &amp;#41;; // add canton_id to DivDept listcolumn 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$city_attr-&amp;gt;addListColumn &amp;#40; &amp;quot;country_id&amp;quot; &amp;#41;; // add country_id to DivDept listcolumn &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
There are five tables:
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br /&gt;
CREATE TABLE Member&amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`memberid` int&amp;#40;10&amp;#41; unsigned NOT NULL auto_increment,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`title` VARCHAR&amp;#40;50&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`firstname` VARCHAR&amp;#40;50&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`lastname` VARCHAR&amp;#40;50&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`company_id` int&amp;#40;10&amp;#41; unsigned NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`address_id` int&amp;#40;10&amp;#41; unsigned NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PRIMARY KEY&amp;nbsp; &amp;#40;`memberid`&amp;#41;
&lt;br /&gt;
&amp;#41;TYPE=InnoDB;
&lt;br /&gt;

&lt;br /&gt;
CREATE TABLE Address&amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`addressid` int&amp;#40;10&amp;#41; unsigned NOT NULL auto_increment,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`address` VARCHAR&amp;#40;200&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`city_id` int&amp;#40;10&amp;#41; unsigned NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PRIMARY KEY&amp;nbsp; &amp;#40;`addressid`&amp;#41;
&lt;br /&gt;
&amp;#41;TYPE=InnoDB;
&lt;br /&gt;

&lt;br /&gt;
CREATE TABLE City&amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`post_code` int&amp;#40;10&amp;#41; UNSIGNED NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`name` VARCHAR&amp;#40;50&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`canton_id` int&amp;#40;10&amp;#41; UNSIGNED NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PRIMARY KEY&amp;nbsp; &amp;#40;`post_code`&amp;#41;
&lt;br /&gt;
&amp;#41; TYPE=InnoDB;
&lt;br /&gt;

&lt;br /&gt;
CREATE TABLE Canton&amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`cantonid` int&amp;#40;10&amp;#41; unsigned NOT NULL auto_increment,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`name` VARCHAR&amp;#40;50&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`country_id` int&amp;#40;10&amp;#41; unsigned NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PRIMARY KEY&amp;nbsp; &amp;#40;`cantonid`&amp;#41;
&lt;br /&gt;
&amp;#41;TYPE=InnoDB;
&lt;br /&gt;

&lt;br /&gt;
CREATE TABLE Country&amp;#40;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`countryid` int&amp;#40;10&amp;#41; unsigned NOT NULL auto_increment,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;`name` VARCHAR&amp;#40;50&amp;#41; NOT NULL,
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;PRIMARY KEY&amp;nbsp; &amp;#40;`countryid`&amp;#41;
&lt;br /&gt;
&amp;#41;TYPE=InnoDB;
&lt;br /&gt;

&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
This time there is no error. However, when I add a new member and visit the view page, I only see the address. I do not see the city, canton and country values.
&lt;br /&gt;

&lt;br /&gt;
Thanks for the help
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=59001#59001</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=325&quot; target=&quot;_blank&quot;&gt;stevie&lt;/a&gt;&lt;br /&gt;
Subject: Yes, I think so too...&lt;br /&gt;
Posted: Fri Nov 21, 2008 6:50 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Yes, I think so too... that boy is right in this case.
&lt;br /&gt;

&lt;br /&gt;
My suggestions are made for more security related to 
&lt;br /&gt;
attempts over the front side over all. I was wondering how mutch happens when I first start with modsec &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_lol.gif&quot; alt=&quot;Laughing&quot; border=&quot;0&quot; /&gt;.
&lt;br /&gt;
For example the rate of blind scannings of IPs for injectable/vulnerable
&lt;br /&gt;
applications/scripts encreased enormously in the last few years.  &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_eek.gif&quot; alt=&quot;Shocked&quot; border=&quot;0&quot; /&gt; 
&lt;br /&gt;
Therefore the german ministry of it-security advices to use a WAF
&lt;br /&gt;
on every non-private site.  &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_cool.gif&quot; alt=&quot;Cool&quot; border=&quot;0&quot; /&gt; 
&lt;br /&gt;

&lt;br /&gt;
c u st.
&lt;br /&gt;_________________&lt;br /&gt;Impresario, Web Developer since 1782, CTO for personal freedom &lt;img src=&quot;http://www.achievo.org/forum/images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
</description>
</item>
<item>
	<title>ATK Development Questions :: RE: Injection Attack</title>
	<link>http://www.achievo.org/forum/viewtopic.php?p=58991#58991</link>
	<description>Author: &lt;a href=&quot;http://www.achievo.org/forum/profile.php?mode=viewprofile&amp;u=1983&quot; target=&quot;_blank&quot;&gt;cbc&lt;/a&gt;&lt;br /&gt;
Subject: Thanks for suggestions&lt;br /&gt;
Posted: Fri Nov 21, 2008 6:41 pm (GMT 2)&lt;br /&gt;
Topic Replies: 17&lt;br /&gt;&lt;br /&gt;
&lt;span class="postbody"&gt;Boy and Stevie:
&lt;br /&gt;

&lt;br /&gt;
THANKS for your thoughts and suggestions. I believe Boy is probably correct since this is not a public application -- it requires login -- and I assume the code could not have been injected through the login form. I suppose the perp could have come in some other way, still via HTTP, or used stolen login credentials, but Occam's Razor says &amp;quot;no&amp;quot; (at this point). I will pursue Boy's suggestions on the hosting side and move to a new home if I don't get answers I like.
&lt;br /&gt;

&lt;br /&gt;
Stevie: Thanks for your great suggestions -- I am going to take a look at ModSecurity, Suhosin, and PHPIDS -- perhaps not for this site, but I have other sites where (one of) these might come in handy.
&lt;br /&gt;

&lt;br /&gt;
I don't know about anyone else, but from what I see these injection attacks are becoming more and more common -- and it's not just script kiddies rattling the locks either. A few more tools in the kit are MOST WELCOME.
&lt;br /&gt;

&lt;br /&gt;
Thanks again!
&lt;br /&gt;

&lt;br /&gt;
-C
&lt;/span&gt;&lt;br /&gt;
</description>
</item>
</channel>
</rss>

