Skip to content

Commit 220d593

Browse files
authored
Merge pull request #74 from telerik/niliev/warnings
docs: add article about the security dialogs
2 parents 6b20b8c + c0592aa commit 220d593

File tree

11 files changed

+135
-71
lines changed

11 files changed

+135
-71
lines changed

images/security-dialogs-reset.png

95.9 KB
Loading

images/security-dialogs.png

32.9 KB
Loading

troubleshoot-fiddler/403iis.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
title: 403 Error connecting to localhost
2+
title: Error 403 connecting to localhost
33
slug: 403IIS
44
publish: true
5-
position: 7
5+
position: 70
66
---
77

8-
403 Error connecting to localhost
9-
=================================
8+
# Error 403 Connecting to localhost
109

1110
When connecting to http://localhost on a WindowsXP version of IIS, you may see many **HTTP/403** errors. This is caused by WindowsXP's 10 connection limit. To reduce the incidence of this problem, ensure that **"Reuse Connections to Servers"** is checked in the **Tools | Fiddler Classic Options | Connections** dialog.

troubleshoot-fiddler/bindtoportlocalhost8888.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22
title: "Unable to bind to port [Localhost: 8888]"
33
slug: BindToPortLocalhost8888
44
publish: true
5-
position: 8
5+
position: 80
66
---
77

8-
Microsoft ISA Firewall client may cause Fiddler Classic to detach.
9-
When starting Fiddler Classic under nonadmin account (ordinary User) you may see an error message:
108

11-
Unable to bind to port [Localhost: 8888]. This is usually due to another running copy of Fiddler Classic.
12-
(An attempt was made to access a socket in a way forbidden by its access permissions)
9+
# Unable to bind to port Localhost:8888
10+
11+
Microsoft ISA Firewall client may cause Fiddler Classic to detach. When starting Fiddler Classic under nonadmin account (ordinary User) you may see an error message:
12+
13+
```
14+
Unable to bind to port [Localhost: 8888]. This is usually due to another running copy of Fiddler Classic.
15+
(An attempt was made to access a socket in a way forbidden by its access permissions)
16+
```
1317

1418
**Fix:**
15-
Close Fiddler.
16-
Using REGEDIT, add a new STRING under **HKCU\Software\Microsoft\Fiddler2** named **ExclusivePort** with value **False**
19+
- Close the Fiddler Classic application.
20+
- Open **REGEDIT**
21+
- Add a new STRING under **HKCU\Software\Microsoft\Fiddler2** named **ExclusivePort** with value **False**.

troubleshoot-fiddler/certerrors.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
title: Certificate Errors and .NET security exceptions
33
slug: CertErrors
44
publish: true
5-
position: 2
5+
position: 20
66
---
77

8-
Problem: Certificate errors or .NET security exceptions while capturing traffic
9-
-------------------------------------------------------------------------------
8+
# Certificate errors or .NET security exceptions while capturing traffic
109

1110
Solution:
1211
---------

troubleshoot-fiddler/configurationsystemerror.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22
title: Configuration system failed to initialize
33
slug: ConfigurationSystemError
44
publish: true
5-
position: 4
5+
position: 40
66
---
77

8-
#### Fiddler Classic crashes on startup complaining about the "Configuration System":
8+
# Fiddler Classic crashes on startup complaining about the "Configuration System"
99

10+
This folowing error message indicates that one of the .NET Framework's configuration files is corrupt. The most common fix for this is to trigger the Windows OS update and install all available .NET Framework updates. If that doesn't work, try re-installing the .NET Framework. If that doesn't work, try editing the file specified in the error message to correct whatever the error message is complaining about.
1011

11-
Sorry, you may have found a bug...
12+
```
13+
Sorry, you may have found a bug...
1214
13-
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report using the Help | Send Feedback menu.
14-
Configuration system failed to initialize
15-
Source: System.Configuration
16-
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
17-
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
15+
Fiddler has encountered an unexpected problem. If you believe this is a bug in Fiddler, please copy this message by hitting CTRL+C, and submit a bug report using the Help | Send Feedback menu.
16+
Configuration system failed to initialize
17+
Source: System.Configuration
18+
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
19+
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
1820
19-
System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 134)
20-
or
21+
System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 134)
22+
```
2123

22-
System.Configuration.ConfigurationErrorsException: Unrecognized configuration section runtime. (C:\Program Files (x86)\Fiddler2\Fiddler.exe.Config line 2)
24+
or
2325

24-
This error message indicates that one of the .NET Framework's configuration files is corrupt. The most common fix for this is to visit WindowsUpdate and install all available .NET Framework updates. If that doesn't work, try re-installing the .NET Framework. If that doesn't work, try editing the file specified in the error message to correct whatever the error message is complaining about.
26+
```
27+
System.Configuration.ConfigurationErrorsException: Unrecognized configuration section runtime. (C:\Program Files (x86)\Fiddler2\Fiddler.exe.Config line 2)
28+
```

troubleshoot-fiddler/crashonstartup.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
title: Fiddler exits unexpectedly on startup
33
slug: CrashOnStartup
44
publish: true
5-
position: 5
5+
position: 50
66
---
77

8-
#### Fiddler Classic Crashes on Startup with an unhelpful message box
8+
# Fiddler Classic Crashes on Startup with an unhelpful message box
99

1010
If you see this message box when starting Fiddler:
1111

1212
![fiddlercrash](../images/fiddlercrash.png)
1313

14-
1514
...it generally means that your .NET Framework installation is corrupt. If you uninstall and reinstall the .NET 2.0 Framework, the problem is usually resolved.

troubleshoot-fiddler/nolocalauth.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
title: No authentication when capturing traffic to local IIS server
33
slug: NoLocalAuth
44
publish: true
5-
position: 3
5+
position: 30
66
---
77

8-
#### Fiddler's "Automatic Authentication" feature doesn't work when server and client are on the same machine?
8+
# Fiddler's "Automatic Authentication" feature doesn't work when server and client are on the same machine?
9+
910
If IIS and the client are on the same machine, then a feature called "Loopback protection" is causing the authentication request to fail because your computer recognizes that it is authenticating to itself, and it is unexpected (due to the proxy).
1011

1112
You'll need to set **DisableLoopbackCheck=1** as described here: [http://support.microsoft.com/kb/926642](http://support.microsoft.com/kb/926642)

troubleshoot-fiddler/outofmemory.md

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
title: Out-of-Memory exception
33
slug: OutOfMemory
44
publish: true
5-
position: 1
5+
position: 10
66
---
77

8-
#### Fiddler Classic throws an out-of-memory exception
8+
# Fiddler Classic throws an out-of-memory exception
99

1010
Sometimes, Fiddler Classic may show a dialog containing the following text:
1111

12-
Exception of type 'System.OutOfMemoryException' was thrown.
13-
at System.IO.MemoryStream.set_Capacity(Int32 value)
14-
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
15-
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
16-
at Fiddler.Session.Execute(Object objThreadstate)
12+
```
13+
Exception of type 'System.OutOfMemoryException' was thrown.
14+
at System.IO.MemoryStream.set_Capacity(Int32 value)
15+
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
16+
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
17+
at Fiddler.Session.Execute(Object objThreadstate)
18+
```
1719

1820
Fiddler Classic works by storing the entire request and response in memory. If you are performing a huge download (hundreds of megabytes) it's possible that Fiddler Classic cannot find a free memory block large enough to hold the entire contiguous response, and hence you'll run into this "out of memory" problem. It's also possible that if you have thousands of sessions in the Fiddler Classic session list, even a relatively small memory block will not be available to store a response a few megabytes in size. You can reduce the incidence of this problem by clearing the **Web Sessions** list (CTRL+X) or configuring it to automatically trim to the most recent two hundred sessions (Click the Filters tab, and click the "Keep only the most recent sessions" option at the bottom).
1921

@@ -23,6 +25,7 @@ Developers can learn more about this here: [https://blogs.msdn.com/ericlippert/a
2325

2426
If you're on a 32-bit machine, you can avoid out-of-memory errors when downloading huge files by adding the following code inside the **OnPeekAtResponseHeaders** function inside Rules > Customize Rules. The line in red will cause Fiddler Classic not to keep a copy of the large file:
2527

28+
```js
2629
// This block enables streaming for files larger than 5mb
2730
if (oSession.oResponse.headers.Exists("Content-Length"))
2831
{
@@ -37,23 +40,25 @@ If you're on a 32-bit machine, you can avoid out-of-memory errors when downloadi
3740
}
3841
}
3942
}
43+
```
4044

4145
If you're using [FiddlerCore](http://fiddler2.com/core) or writing a Fiddler Classic Extension, you can use code like this:
42-
43-
Fiddler.FiddlerApplication.ResponseHeadersAvailable += delegate(Fiddler.Session oS)
44-
{
45-
// This block enables streaming for files larger than 5mb
46-
if (oS.oResponse.headers.Exists("Content-Length"))
47-
{
48-
int iLen = 0;
49-
if (int.TryParse(oS.oResponse["Content-Length"], out iLen))
50-
{
51-
// File larger than 5mb? Don't save its content
52-
if (iLen > 5000000)
53-
{
54-
oS.bBufferResponse = false;
55-
oS["log-drop-response-body"] = "save memory";
56-
}
57-
}
58-
}
59-
};
46+
```js
47+
Fiddler.FiddlerApplication.ResponseHeadersAvailable += delegate(Fiddler.Session oS)
48+
{
49+
// This block enables streaming for files larger than 5mb
50+
if (oS.oResponse.headers.Exists("Content-Length"))
51+
{
52+
int iLen = 0;
53+
if (int.TryParse(oS.oResponse["Content-Length"], out iLen))
54+
{
55+
// File larger than 5mb? Don't save its content
56+
if (iLen > 5000000)
57+
{
58+
oS.bBufferResponse = false;
59+
oS["log-drop-response-body"] = "save memory";
60+
}
61+
}
62+
}
63+
};
64+
```
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Security Warnings and Consent Dialog
3+
description: Learn about the security warning that Fiddler can trigger upon different user interactions.
4+
slug: fc-security-warnings
5+
publish: true
6+
position: 5
7+
---
8+
9+
# Security Warnings and Consent Dialogs in Fiddler Classic
10+
11+
The Fiddler Classic application loads a list of add-ons and extensions on startup or upon user actions (for example, open diff tool in inspectors). Additionally, users can download or create extensions or change the default tools' settings. To guarantee that harmless third-party tools are not loaded, the application automatically checks them, informs the user, and asks for consent to operate. The security dialog has three applicable options as follows:
12+
13+
**Do not allow**: The action will be terminated immediately when chosen. The consent dialog will re-appear upon consecutive interactions of the same type.
14+
15+
**Allow**: When chosen, the action is executed immediately. The consent dialog will appear upon consecutive interactions of the same type.
16+
17+
**Always Allow**: When chosen, the action is executed immediately. The consent dialog will not appear in the future.
18+
19+
![security dialogs in Fiddler Classic](../images/security-dialogs.png)
20+
21+
The consent dialogs in Fiddler Classic are triggered upon the following actions or user interactions:
22+
23+
- During application startup, when the application loads unknown plugins.
24+
- During application startup, when the application loads unknown inspectors.
25+
- During application startup, when the application loads unknown transcoders.
26+
- During application startup, when the application loads unknown extensions.
27+
- When the user clicks on a menu item that was created.
28+
- When the user tries to select an app to open a file (session response, autoresponder rule response).
29+
- When the user tries to edit an autoresponder rule response with the default editor for that file type.
30+
- When the user tries to compare two sessions with the configured external compare tool in the app settings.
31+
- When the user tries to edit the FiddlerScript rules with the configured external editor (when different from our FSE), it is also set in app settings.
32+
- When the user chooses to save a session response and open the file directly (or start it if it is executable).
33+
- When the user executes a custom context menu action from the image response inspector.
34+
- When the user tries to open an image with an external editor from the image response inspector.
35+
- When the user sets a custom tool for some Fiddler functionality such as, such as custom makecert.exe or brotli.exe,
36+
- When the user chooses to open a session url with a specific browser (browsers are detected using heuristics, so it is not sure that they are installed).
37+
- During capturing, if the user has specified a custom certificate maker assembly.
38+
39+
## Reset All Consent Dialogs
40+
41+
All consent dialogs in Fiddler Classic can be explicitly reset through the **Tools > Options > Extensions > Reset Allow Security Exceptions**
42+
43+
![Reset security dialogs in Fiddler Classic](../images/security-dialogs-reset.png)
44+
45+

0 commit comments

Comments
 (0)