Skip to main content

developerWorks >  Rational  >  Forums  >  Rational AppScan Developer Edition  >  developerWorks

Scanning (Explore Stage) problem    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 7 - Pages: 1 - Last Post: Nov 16, 2009 5:03 PM Last Post By: bbrazeau Threads: [ Previous | Next ]
KAshish

Posts: 2
Registered: Aug 24, 2009 03:45:17 AM
Scanning (Explore Stage) problem
Posted: Aug 24, 2009 04:18:30 AM
 
Click to report abuse...   Click to reply to this thread Reply
While scanning a web application, during the Explore stage, the "Total Number of URLs to be visited" goes on increasing first. It reaches more than 9000 and then suddenly if decreases down to around 400. Meanwhile "Number of visited URLs" also increases gradually and then the Testing starts.

Anybody, please explain why it is happening so and what configuration I may need to check.
bbrazeau

Posts: 65
Registered: Aug 26, 2008 02:30:28 PM
Re: Scanning (Explore Stage) problem
Posted: Aug 24, 2009 07:27:09 PM   in response to: KAshish in response to: KAshish's post
 
Click to report abuse...   Click to reply to this thread Reply
The reason that this is occurring is that when AppScan is going through it's explore phase, it is finding all the links in the application, regardless if they are part of the application or not. It then goes through and processes the found links and discards the ones that it will not test (not part of the domain, path limit exceeded, etc). This is why you see this number increase to a high level and then level out at 400. To find the links that were not included in the scan, go to View > Application Data and click on the Filder URL's in the drop down menu. This will show you links that were removed during the testing phase.

The first number in Visited URLs (x)/x. counts how many URL's we've actually visited during the explore sequence, which is why this number gradually increases.
jgScanner

Posts: 8
Registered: May 12, 2009 03:17:30 PM
Re: Scanning (Explore Stage) problem
Posted: Nov 03, 2009 10:38:16 AM   in response to: bbrazeau in response to: bbrazeau's post
 
Click to report abuse...   Click to reply to this thread Reply
In the Status Bar there are two numbers after Visited URL's xx/xx

The online help indicates that the first number is Number of URL's visited
and the second number is Total URL's to be visited.
Then to the right of that is TestsCompleted and then TestsToBeCompleted

I need to know everything there is to know about these numbers - please exhaustively
reply to this question.

=====================================================
Scenario A

For example when doing the
1.) create a new scan from scan template A.
2.) mode is single threaded
3.) perform only the explore stage
4.) repeat the above 3 steps

AppScan then will display varying numbers in the following columns
To Be Visited URLs and TestToBeCompleted

Explore Visited URLs / ToBeVisitedURLs TestsCompleted/TestToBeCompleted
1 252/630 0/32101
2 252/595 0/32101
3 252/494 0/32099
4 252/494 0/32099
5 252/474 0/32099
6 252/473 0/32099

What is going here ?
Why are the Visited URL's the same but the ToBeVisitedURL's varying
Why are the TrestToBeCompleted numbers varying ?
(Note this is being run in single threaded mode)

Insert response to Scenario A. here)
========================================================================
========================================================================


Scenario B.

Another scenario is where I import a manual explore file exd.
1.) Create a new scan from Scan Template B
2.) Import manual explore from Manual1.exd
3.) AppScan runs the analyze step
4.) Do not allow AppScan to run an explore - only use explore from the imported explore file.

I then see the following set of numbers
Explore Visited URLs / ToBeVisitedURLs TestsCompleted/TestToBeCompleted
1 46/98 0/7122
2 45/98 0/7122
3 48/137 0/6903
4 46/98 0/7122
5 46/98 0/7122


What is going here ?
Why are the Visited URL's the same but the ToBeVisitedURL's varying
Why are the TrestToBeCompleted numbers varying ?
(Note this is being run in single threaded mode)

(Insert response to Scenario B. here)

========================================================================
========================================================================
Scenario C.

A 3rd scenario is a modified version of above scenario #2
But this time I re-import the manual explore file again and again
into the same scan file, until the import menu item is grayed out (meaning AppScan
will no longer allow me to re-import the manual explore file)
The following numbers occur after each re-import.

Explore# Visited URLs / ToBeVisitedURLs TestsCompleted/TestToBeCompleted
(Import from manual explore file - do not allow AppScan to run an explore after importing)
1 41/102 0/6479

Now just re-import from the same manual explore file that was used previously.

ReImport# Visited URLs / ToBeVisitedURLs TestsCompleted/TestToBeCompleted
1 83/102 0/7067
2 125/180 0/7655
3 167/220 0/8243
4 209/220 0/8831
5 220/220 0/9616
6 after re-import #5 the Import menu item is grayed out.

But now the VisitedURLs and ToBeVisitedURL's are equal.

What is going here ?
Why are the Visited URL's and ToBeVisitedURL's slowing increasing until
they both equal each other ?

Why are the TrestToBeCompleted numbers varying ?

(Note this is being run in single threaded mode)

Insert response to Scenario C. here)
========================================================================

If I always use the same scan template file to create a new scan file
Is it safe to say that AppScan will never explore and test the same way twice ?

Meaning that in order to trust AppScan's results I would need to run let's say
5 to 10 scan's from the same scan template and then average the results together ?

(This is single threaded mode)

Please advise
Thanks

bbrazeau

Posts: 65
Registered: Aug 26, 2008 02:30:28 PM
Re: Scanning (Explore Stage) problem
Posted: Nov 05, 2009 07:37:36 PM   in response to: jgScanner in response to: jgScanner's post
 
Click to report abuse...   Click to reply to this thread Reply
Before we delve into each scenario are you stopping the scan at any point or are the results you are showing are the results after the explore phase has completed?

Do you have any multi-step sequences setup in the scan templates you are using?

-B
jgScanner

Posts: 8
Registered: May 12, 2009 03:17:30 PM
Re: Scanning (Explore Stage) problem
Posted: Nov 09, 2009 10:26:58 AM   in response to: bbrazeau in response to: bbrazeau's post
 
Click to report abuse...   Click to reply to this thread Reply
No - the results are after the explore phase has completed.
No - there are no multi step processes in the template.

I open the scan template
I have imported the manual scan exd file before saving as a separate new scan file
and have also saved it as a new scan file before importing. Results are the same.

After importing is done, AppScan always does an analysis of the import and then stops. I do
not let AppScan perform it's own explore.

Aside Note - I did notice that if I did not save before importing then AppScan would prompt with
the include additional hosts found dialog box. If I saved first AppScan did not display the
dialog box.

bbrazeau

Posts: 65
Registered: Aug 26, 2008 02:30:28 PM
Re: Scanning (Explore Stage) problem
Posted: Nov 16, 2009 12:45:25 PM   in response to: jgScanner in response to: jgScanner's post
 
Click to report abuse...   Click to reply to this thread Reply
Interesting.

In the Scan Configuration, before you import the manual explore file, try disabling the following option (Scan Configuration > Concurrent Logins)

The differences in the amount of URL's found also could be explained by communication errors. You would need to enable the traffic log (Tools > Options > Enable request / response logging) to see if this was affecting the URL count.

Also, when did you record the manual explore? Has there been any changes to the site since you recorded it.

And finally, are there any sections of you site that if you enter in some data, you would get a different response, or have to follow a specific path to get somewhere (eg. credit card application)?

-B
jgScanner

Posts: 8
Registered: May 12, 2009 03:17:30 PM
Re: Scanning (Explore Stage) problem
Posted: Nov 16, 2009 03:28:49 PM   in response to: bbrazeau in response to: bbrazeau's post
 
Click to report abuse...   Click to reply to this thread Reply
B

I re ran the imports for both concurrent logins enabled and disabled - no difference.
"Exactly" same numbers for either enabled (checked) and disabled (unchecked).

Scenario D

I changed the value of the enabled/disabled after opening the template file (scant) but
before saving it as a scan file and before importing anything.

1.) create new scan from scant template file
2.) save to new scan file
3.) import manual explore from exd file
4.) results after 1st import
concurrent is enabled
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
46/107 0/7122 // 46/107 0/7122
5.) save to scan file enabled
6.) import ontop of and into existing scan file enabled
7.) results after 2nd import
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
94/136 0/7698 // 94/136 0/7698
8.) repeat
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
142/211 // 0/8274
9.) repeat
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
181/234 // 0/8742
10.) repeat
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
229/234 // 0/9318
11.) repeat
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
234/234 // 0/10069
12.) repeat
Visited URLs / ToBeVisitedURLs // TestsCompleted/TestToBeCompleted
234/234 // 0/10069
13.) since the numbers stabilized I stopped re-importing.

I checked the request/response log file and there were no communication errors.

Application Differences
Scenario A = application #X

Scenario B = application #Y
Scenario C = application #Y

Scenario D = application #Y - new build

I don't change the application during a re-import, in other words, the set of numbers
in a particular scenario are from the same application, AppScan is not exited nor
is any scan configuration options changed.

Note - All import scenarios were configured as single threaded.

As you can see, the increasing number observance occurs

Again, I need to know

1.) is it "legal" to re-import into a file you just imported ?
2.) what do each of the following mean ?
Visited URLs ?
ToBeVisitedURLs ?
TestsCompleted ?
TestToBeCompleted ?

3.) What is going here ?
4.) Why are the Visited URL's and ToBeVisitedURL's slowing increasing until
they both equal each other ?

5.) How many times do you need to run AppScan with the same scan template ( changing nothing
except that the time of day changes) to be able to trust AppScan's results ?

Thanks
jg

bbrazeau

Posts: 65
Registered: Aug 26, 2008 02:30:28 PM
Re: Scanning (Explore Stage) problem
Posted: Nov 16, 2009 05:03:22 PM   in response to: jgScanner in response to: jgScanner's post
 
Click to report abuse...   Click to reply to this thread Reply
For re-importing the manual explore data over and over again, this is not recommended due to the fact that the redundant path limit will kick in and limit the pages you are scanning (which is why after a while, it stops at a specific number).

Without seeing how you site is setup, and your URL structure, it sounds like you might have parameter values in the URL, which might explain the results you are seeing here.

Take a look at the following technotes to see if they help you with getting more consistent coverage:

http://www-01.ibm.com/support/docview.wss?rs=203&uid=swg21317594

http://www-01.ibm.com/support/docview.wss?rs=203&uid=swg21313378
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums