crawl/ReCrawl as X user

greggles - November 4, 2008 - 18:42
Project:Security scanner component for SimpleTest module
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:ingo86
Status:fixed
Description

I believe that the module needs to crawl the site as multiple users. The current module only scans as the anonymous user. However, different users will see vastly different parts of the site. Sometimes XSS weaknesses only manifest on admin pages of the site even if the content is added as a lower privileged user. Sometimes a user may see XSS because they have access content but not administer nodes.

So, I think ideally the settings page should have some new boxes:

1) Users to use for Crawl/ReCrawl which is either an arbitrary number of users, but should at least be three boxes for users.

2) The user account to use for the seeding

#1

ingo86 - November 5, 2008 - 10:59
Assigned to:Anonymous» ingo86

The current module scans as administrative user. Look into the database table, the first link captured is the admin page.
Does it works bad for you?

#2

greggles - November 5, 2008 - 16:08

That does seem to work fine, but doesn't get a really representative view of the site. As http://drupal.org/node/270000 explains,

Users with permission to 'administer nodes' are never restricted by node access modules. Users who do not have permission to 'access content' will never gain access from a node access module. Only users who have 'access content' and not 'administer nodes' are eligible for the wild world of node access module control.

That's just for node access limitations, not even considering things like block visibility, but I think the point stands that the Crawl/ReCrawl should run as a variety of users to make sure that the site is safe under all conditions.

#3

ingo86 - November 15, 2009 - 00:07
Status:active» fixed

In the new version for Drupal 7 I will surely add the feature you requested. Maybe, it's better to do a scan using a user for every role (escaping users that are part of more than one role), to be sure that everything is fine.
Thank you.

 
 

Drupal is a registered trademark of Dries Buytaert.