19.09.2017 Views

the-web-application-hackers-handbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

272 Chapter 8 n Attacking Access Controls<br />

HACK STEPS<br />

(CONTINUED)<br />

3. One way to perform this testing manually is to walk through a protected<br />

multistage process several times in your browser and use your proxy to<br />

switch <strong>the</strong> session token supplied in different requests to that of a<br />

less-privileged user.<br />

4. You can often dramatically speed up this process by using <strong>the</strong> “request in<br />

browser” feature of Burp Suite:<br />

a. Use <strong>the</strong> higher-privileged account to walk through <strong>the</strong> entire multistage<br />

process.<br />

b. Log in to <strong>the</strong> <strong>application</strong> using <strong>the</strong> lower-privileged account (or none<br />

at all).<br />

c. In <strong>the</strong> Burp Proxy history, find <strong>the</strong> sequence of requests that were<br />

made when <strong>the</strong> multistage process was performed as a more privileged<br />

user. For each request in <strong>the</strong> sequence, select <strong>the</strong> context menu<br />

item “request in browser in current browser session,” as shown in<br />

Figure 8-4. Paste <strong>the</strong> provided URL into your browser that is logged in<br />

as <strong>the</strong> lower-privileged user.<br />

d. If <strong>the</strong> <strong>application</strong> lets you, follow through <strong>the</strong> remainder of <strong>the</strong><br />

multi-stage process in <strong>the</strong> normal way, using your browser.<br />

e. View <strong>the</strong> result within both <strong>the</strong> browser and <strong>the</strong> proxy history to<br />

determine whe<strong>the</strong>r it successfully performed <strong>the</strong> privileged action.<br />

Figure 8-4: Using Burp to request a given item within <strong>the</strong> current browser session

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

Saved successfully!

Ooh no, something went wrong!