19.09.2017 Views

the-web-application-hackers-handbook

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

220 Chapter 7 n Attacking Session Management<br />

configure various options that affect how tokens are collected, and <strong>the</strong>n click<br />

<strong>the</strong> start capture button to begin capturing tokens. If you have already obtained<br />

a suitable sample of tokens through o<strong>the</strong>r means (for example, by saving <strong>the</strong><br />

results of a Burp Intruder attack), you can use <strong>the</strong> manual load tab to skip <strong>the</strong><br />

capturing of tokens and proceed straight to <strong>the</strong> statistical analysis.<br />

Figure 7-2: Configuring Burp Sequencer to test <strong>the</strong> randomness of a session token<br />

When you have obtained a suitable sample of tokens, you can perform <strong>the</strong><br />

statistical analysis on <strong>the</strong> sample. You can also perform interim analyses while<br />

<strong>the</strong> sample is still being captured. In general, obtaining a larger sample improves<br />

<strong>the</strong> reliability of <strong>the</strong> analysis. The minimum sample size that Burp requires is<br />

100 tokens, but ideally you should obtain a much larger sample than this. If <strong>the</strong><br />

analysis of a few hundred tokens shows conclusively that <strong>the</strong> tokens fail <strong>the</strong><br />

randomness tests, you may reasonably decide that it is unnecessary to capture<br />

fur<strong>the</strong>r tokens. O<strong>the</strong>rwise, you should continue capturing tokens and re-perform<br />

<strong>the</strong> analysis periodically. If you capture 5,000 tokens that are shown to pass <strong>the</strong><br />

randomness tests, you may decide that this is sufficient. However, to achieve<br />

compliance with <strong>the</strong> formal FIPS tests for randomness, you need to obtain a<br />

sample of 20,000 tokens. This is <strong>the</strong> largest sample size that Burp supports.<br />

Burp Sequencer performs <strong>the</strong> statistical tests at character level and bit level.<br />

The results of all tests are aggregated to give an overall estimate of <strong>the</strong> number

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!