9.1.x security system works?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexSecurity
Author Message
darkgrue
Developer


Joined: Apr 20, 2004
Posts: 536
Location: Lancaster, CA

PostPost subject: Re: 9.1.x security system works?
Posted: Fri Jul 06, 2007 3:42 am
Reply with quote

Here's an example of Security wierdness at my site. The IP's page is about 6 pages of blank banned IP's. Can't remove them, can't figure out what to do with them. The "details" link just brings up a page with a blank area (the rest of the page appear to render correctly including side blocks, headers and footers) where presumably the details would be.

Do I have a table with corrupt entries that needs to be cleaned out (and how would I do that), or is something else wrong?

_________________
It is pitch black. You are likely to be eaten by a grue.

darkgrue's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu 11.04, Atom D525/Apache 2.2.17/MySQL 5.1.54/PHP 5.3.5/Dragonfly 10.0.04 CVS
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: 9.1.x security system works?
Posted: Fri Jul 06, 2007 8:31 am
Reply with quote

what about footer debug infos?
_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
darkgrue
Developer


Joined: Apr 20, 2004
Posts: 536
Location: Lancaster, CA

PostPost subject: Re: 9.1.x security system works?
Posted: Fri Jul 06, 2007 10:33 pm
Reply with quote

NanoCaiordo wrote:
what about footer debug infos?

Oh, uh, right! Embarassed

PHP:
<?php
admin
/modules/security.Warning line 286: inet_ntop() [function.inet-ntop]: Invalid in_addr value

and

PHP:
<?php
admin
/modules/security.Warning line 311: inet_pton() [function.inet-pton]: Unrecognized address
Notice line 319
: Undefined variable: result

for IP's and Details, respectively. It would seem that the source table had bad data in it? (Pehaps as a result of running the old, broken CVS code at some point?)

_________________
It is pitch black. You are likely to be eaten by a grue.

darkgrue's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu 11.04, Atom D525/Apache 2.2.17/MySQL 5.1.54/PHP 5.3.5/Dragonfly 10.0.04 CVS
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: 9.1.x security system works?
Posted: Fri Jul 06, 2007 10:47 pm
Reply with quote

Bad data into the database table is, for sure, the source of the problem.

What i don't understand is why you got bad data in it and what is the 'broken CVS code' that you a referring to.

Does the problem still persist?

If so check that the ipn field, in cms_security table, is varbinary type (always been varbinary so for sure it will still be but we never know).

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
darkgrue
Developer


Joined: Apr 20, 2004
Posts: 536
Location: Lancaster, CA

PostPost subject: Re: 9.1.x security system works?
Posted: Sat Jul 07, 2007 12:49 am
Reply with quote

NanoCaiordo wrote:
Bad data into the database table is, for sure, the source of the problem.

Hmmn, I suspected as much.

NanoCaiordo wrote:
What i don't understand is why you got bad data in it and what is the 'broken CVS code' that you a referring to.

I was running the CVS code when the Security module was still being worked out. At one point I recall the module was acknowledged as being broken (to be fair, it was CVS code, and still be worked on). In any case, I did use the code at different stages of its development, so I guess it's not much of a surprise it's gotten bad data into the table.

NanoCaiordo wrote:
Does the problem still persist?

If so check that the ipn field, in cms_security table, is varbinary type (always been varbinary so for sure it will still be but we never know).

Table schema's good, I think.

I ran a TRUNCATE TABLE cms_security, which cleaned out all the blank entries (although now I think there may be a problem with the default theme template for that page, I don't know it's handling an empty list gracefully).

_________________
It is pitch black. You are likely to be eaten by a grue.

darkgrue's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu 11.04, Atom D525/Apache 2.2.17/MySQL 5.1.54/PHP 5.3.5/Dragonfly 10.0.04 CVS
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3678
Location: Melbourne, AU

PostPost subject: Re: 9.1.x security system works?
Posted: Sat Jul 07, 2007 1:12 am
Reply with quote

TRUNCATE TABLE was a bit to aggressive, you have lost all user-agents ips, referrers and mail domains as well.

However you could get all install/sql/data/agents.php's data and run a custom script to insert the original data back.

If empty data was because an old CVS bug, see how you go now and let us know.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
darkgrue
Developer


Joined: Apr 20, 2004
Posts: 536
Location: Lancaster, CA

PostPost subject: Re: 9.1.x security system works?
Posted: Sat Jul 07, 2007 3:02 am
Reply with quote

I re-ran the install/sql/data/agents.php script, so my table's back in order.

I think the IP's being wrong was the old CVS code causing problems. So I'll give it another shot, see what happens.

Documentation, and a possible problem with the template still stand out as needing work ATM though. =)

EDIT: I re-enabled Flood protection to see how it worked out, within a few minutes, I got a message from one my users saying that the flood protection was triggering repeatedly for them, so I had to turn it off again. It would seem that a straigt-up clicks-per-minute rate is not granular enough, regardless of how it's set.

I believe it also breaks the Web metaphor, for lack of a better term. One of the points of hyperlinks are that you can move through the heirarchy, backwards and forwards, quickly. If the interface now forces you to slow down significantly, the usability's going to drop through the floor. There are plenty of reasons that a user would legitimately fire off a salvo of requests, and I suspect trying to moderate the user's behavior in this way isn't going to work out well.

Not necessarily apropos to this, but I've recently come under attack from a linkspam botnet that was sending only the POST command of a forum posting (no GETs at all), so it was posting spam about at the rate of a post every 15 minutes. "Flooding" in one sense, but far too low and slow to be caught by any rate-limiting feature (even one strictly limited to posting).

I'm not sure that the feature really hasn't been overcome by events. If the rate's set high enough that it won't catch natural short-attention-span human browsing, your server's probably already too crippled by the amount of traffic to even process the checks to see if flooding is happening. Too low, and you have to browse like a granny to keep from triggering it (and alienate your users). It's not protecting from the linkspam.

So I guess the question is, what is Flood protection supposed to protect against in terms of current threats, and is it effective against it, or is it an idea that is just OBE?

_________________
It is pitch black. You are likely to be eaten by a grue.

darkgrue's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu 11.04, Atom D525/Apache 2.2.17/MySQL 5.1.54/PHP 5.3.5/Dragonfly 10.0.04 CVS
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexSecurity All times are GMT
Go to page Previous  1, 2
Page 2 of 2


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.8621 seconds with 19 DB Queries in 0.0777 seconds
Memory Usage: 2.93 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy