Skip to content

A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.

1.8 KB
Raw Blame
package opensuite.proxy;

import opensuite.core.SuiteContext;
import opensuite.ui.OptionsPage;
import opensuite.ui.Ui;

import javax.swing.*;

/** Settings for the bundled testing browser, shown under Settings > Browser. */
public class BrowserSettingsPanel extends OptionsPage {

    public BrowserSettingsPanel(SuiteContext ctx) {
        boolean relaxNow = ctx.settings().getBool(BrowserFlags.RELAX_KEY, true);
        JCheckBox relax = Ui.check("relax browser security while testing", relaxNow);
        relax.addActionListener(e ->
                ctx.settings().setBool(BrowserFlags.RELAX_KEY, relax.isSelected()));
        JTextArea relaxNote = Ui.note(
            "Applies to the bundled browser and the crawler, which both run in an "
            + "isolated profile, separate from your regular browser profile. Allows cross-origin "
            + "reads, mixed content, private network requests and pop-ups, so that requests "
            + "the browser would otherwise block still reach the proxy and are "
            + "scanned. This increases coverage of the application. It does not change "
            + "scanner results for pages already seen, because every "
            + "passive check analyses the HTTP exchange at the proxy and does not rely on "
            + "browser enforcement. Takes effect the next time the browser is "
            + "launched.");
        section("Testing browser", relax, relaxNote);

        JTextArea where = Ui.note(
            "The browser is launched from the globe icon in the top bar or from Open browser on "
            + "the Proxy tab. It uses the bundled Chromium if present, otherwise a Chromium "
            + "installation found on the local host, with a dedicated profile under ~/.opensuite/browser and the "
            + "proxy's CA certificate already trusted.");
        section("Launching", where);
    }
}