Skip to content

Commit 6c0d81d

Browse files
authored
Merge pull request #559 from psiinon/dont-auto-forced-user
Dont automate forced user mode
2 parents 50246af + b1d00ea commit 6c0d81d

File tree

5 files changed

+26
-9
lines changed

5 files changed

+26
-9
lines changed

addOns/help/src/main/javahelp/contents/start/features/authentication.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<body>
88
<h1>Authentication</h1>
99
ZAP can handle a wide range of authentication mechanisms.<br>
10+
If you are new to ZAP automation then the best place to start is the ZAP
11+
<a href="https://www.zaproxy.org/docs/authentication/">Authentication Decision Tree</a> (external link).
12+
<p>
1013
Each <a href="contexts.html">Context</a> has:
1114
<ul>
1215
<li>an <a href="authmethods.html">Authentication Method</a> which defines how authentication is handled.
@@ -63,17 +66,22 @@ <h2>Configuration example</h2>
6366
<li>Define as many users as you need in the Session Properties -> Users section.</li>
6467
</ol>
6568
After configuring authentication, various actions are available in ZAP. For example, you can now select the user in the
66-
Spider dialogue. Or, using the Forced User Mode,
67-
you can force all the interactions that go through ZAP for a given Context to be from the perspective of a User.
68-
The Forced User Mode is enabled via a button in the toolbar (the one with the user and the lock) and
69-
is configured via Session Properties -> Forced User Mode.
69+
Spider dialogue.
7070
<br>
7171
Most of the steps above apply as well for other authentication methods. The only things that change when trying
7272
to configure authentication using a different method is step 6. Instead of that, select the authentication
7373
method required from the drop-down list and configure it as needed. More details about configuring each type
7474
of authentication can be found in the <a href="authmethods.html">Authentication Methods</a> page and in the
7575
<a href="../../ui/dialogs/session/contexts.html">Context Session screens</a>.
7676

77+
<h2><a name="forceduser">Forced User Mode</a></h2>
78+
When Forced User Mode is enabled then all interactions that go through ZAP for a given context will be
79+
updated to be from the perspective of the specified User.<br>
80+
The Forced User Mode is enabled via a button in the toolbar (the one with the user and the lock) and
81+
is configured via Session Properties -> Forced User Mode.<br>
82+
<b>Important:</b> Forced User Mode is just intended for manual testing and should not be used in automation -
83+
there are much better alternatives.
84+
7785
<h2><a name="envvars">Authentication Header Environmental Variables</a></h2>
7886
A set of environmental variables are available which allow you to easily add an authentication header to all of the requests that are proxied through ZAP or initiated
7987
by the ZAP tools, including the spiders and active scanner:

addOns/help/src/main/javahelp/contents/start/features/httpsessions.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@
77
<body>
88
<h1>HTTP Sessions</h1>
99
<p>This tool keeps track of the existing HTTP Sessions on a
10-
particular Site and allows the Zaproxy user to force all requests to
10+
particular Site and allows the ZAP user to force all requests to
1111
be on a particular session. Basically, it allows the user to easily
1212
switch between user sessions on a Site and to create a new Session
1313
without "destroying" the existing ones.</p>
14+
15+
<p>
16+
The tool is only intended for manual testing and should not be used in automation -
17+
there are much better alternatives.
18+
If you are new to ZAP automation then the best place to start is the ZAP
19+
<a href="https://www.zaproxy.org/docs/authentication/">Authentication Decision Tree</a> (external link).
1420

1521
<p>
1622
It is based on the concept of Session Tokens, which are HTTP message
1723
parameters (for now only Cookies) which allow an HTTP server to
1824
connect a request message with any previous requests or data stored.
19-
In the case of Zaproxy, conceptually, session tokens have been
25+
In the case of ZAP, conceptually, session tokens have been
2026
classified into 2 categories: default session tokens and site session
2127
tokens. The default session tokens are the ones that the user can set
2228
in the <a href="../../ui/dialogs/options/httpsessions.html">Options

addOns/help/src/main/javahelp/contents/start/pentest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <H2>See also</H2>
4949
<H2>External Links</H2>
5050
<table>
5151
<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
52-
https://www.owasp.org/wstg</td>
52+
<a href="https://www.owasp.org/wstg">https://www.owasp.org/wstg</a></td>
5353
<td> OWASP Testing Guide</td></tr>
5454
</table>
5555

addOns/help/src/main/javahelp/contents/start/proxies.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<BODY>
1010
<H1>Configuring Proxies</H1>
1111
<p>
12-
You will need to configure your browser to use ZAP as a proxy.<br>
12+
The best way to use a browser with ZAP is to launch it from ZAP.
13+
It will then be automatically configured to proxy through ZAP and to ignore certificate warnings.
14+
<p>
15+
If for any reason you are unable or unwilling to do that then you will need to configure your browser to use ZAP as a proxy.<br>
1316
By default, ZAP uses an Address of 'localhost' and a Port of '8080', but these can be changed via the Options > Network > Local Servers/Proxies screen.
1417

1518
Instructions for the latest versions of the most commonly used browsers:

addOns/help/src/main/javahelp/contents/ui/tlmenu/edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <H4>Previous Result</H4>
3737
<a href="../tabs/response.html">Response</a> tab as appropriate.
3838

3939
<H3>Enable / Disable Forced User Mode</H3>
40-
This switches forced user mode on and off.<br/>
40+
This switches <a href="../../start/features/authentication.html#forceduser">Forced User Mode</a> on and off.<br/>
4141
The menu item is only enabled when you have defined a forced user for at least one
4242
<a href="../../start/features/contexts.html">context</a>, which can be done via the
4343
<a href="../dialogs/session/contexts.html">Session Contexts</a> dialog.

0 commit comments

Comments
 (0)