Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Security Configurations
Updated Nov 06, 2024

    Security Configurations

    Nov 06, 2024
      • 1 Randomize Secrets
      • 2 Cookies
      • 3 Content Security Policy

      The following security enhancements were added to prevent software vulnerabilities in all the OMK Applications. 

      Versions affected: 

      • opCharts 4.2.5

      • opConfig 4.2.4

      • opEvents 4.0.2

      • opHA 3.3.1

      • opReports 4.2.2

      Randomize Secrets

      A new tool to randomize the secrets from the command line. This tool will randomize omkd_secrets tokens in OMK and also, NMIS auth_web_key when it matches some of the OMK tokens. The omkd_secrets token is used for Single-Sign-On, see SSO for Firstwave Applications. 

      This tool is also called by the installer and fixed CVE-2021-38551.

      Usage instructions:

      /usr/local/omk/bin/opcommon-cli.exe act=secrets_randomise [force=true] [length=N]

      Where:

        • force=true will change the token even if this is not the default (Like =~ change_me)

        • length=N will force the token length to N (32 by default)

      Cookies

      Cookie

      Support

      Behaviour

      Cookie

      Support

      Behaviour

      HttpOnly

      :check_mark: By default

      The cookies are not going to be accessible from the JavaScript API.

      secure

      :check_mark: Should be enabled by setting the configuration item "auth_secure_cookie" => "true" in opCommon.json.

      This cookie could be sent just in a request ciphered over https protocol. That's the reason why it is not set by default. 

      SameSite

      set to Strict

      :check_mark: Supported since the following versions:

      • Open-AudIT 4.4.0

      • opAddress 2.1.0

      • opCharts 4.3.0

      • opConfig 4.3.0

      • opEvents 4.1.0

      • opHA 3.4

      • opReports 4.3.0

      The cookie set to strict means that the browser only sends the cookie if the request was made in the website that originally established the cookie. 

      Content Security Policy

      Content Security Policy is a HTTP response header that helps you restrict which resources (JavaScript, CSS, Images, etc.) are loaded from the allowed sites. This helps to mitigate some attacks of Cross Site Scripting (XSS) and data injection. 

      Some background information can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy

      The default values can be overwritten by setting the configuration item security_content_policy under the authentication section in the configuration file, opCommon.json.

      The default values included in the source code are:

      "connect-src 'self' opmantek.com community.opmantek.com services.opmantek.com ws: wss: maps.googleapis.com maps.google.com maps.gstatic.com; font-src 'self' fonts.gstatic.com; form-action 'self'; frame-ancestors 'none'; frame-src 'none'; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline' maps.googleapis.com maps.google.com; style-src 'self' fonts.googleapis.com 'unsafe-inline'; worker-src 'self';"

      NOTE - Open-AudIT has slightly different default attributes - it includes the img-src tag, as well as adding maps.googleapis.com to the connect-src tag. See below.

      "connect-src 'self' opmantek.com community.opmantek.com services.opmantek.com maps.googleapis.com ws: wss: maps.google.com maps.gstatic.com; font-src 'self' fonts.gstatic.com; form-action 'self'; frame-ancestors 'none'; frame-src 'none'; img-src 'self' data: maps.google.com maps.gstatic.com; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline' maps.googleapis.com maps.google.com; style-src 'self' fonts.googleapis.com 'unsafe-inline'; worker-src 'self';"

      Depending on what you need to achieve, you will need to update your configuration to include some or all of the default options as well as options specific to your environment.

      For example, if you want to include one of the FirstWave applications in an iFrame, you would need to include directives for frame-ancestors and frame-src, e.g.

      frame-ancestors https://*.yourdomain.com frame-src https://*.yourdomain.com

      The final configuration would be something like the following:

      The below is formatted for easy reading. In the JSON file no line breaks should be used.

      Note that you should replace *.yourdomain.com with an appropriate domain for your use-case.

      "security_content_policy": "connect-src 'self' opmantek.com community.opmantek.com services.opmantek.com ws: wss: maps.googleapis.com maps.google.com maps.gstatic.com; font-src 'self' fonts.gstatic.com; form-action 'self'; frame-ancestors https://*.yourdomain.com; frame-src https://*.yourdomain.com; manifest-src 'none'; media-src 'none'; object-src 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline' maps.googleapis.com maps.google.com; style-src 'self' fonts.googleapis.com 'unsafe-inline'; worker-src 'self';"

       

       

        Community Home

        opCommon
        • Downloads
          Downloads
        • Downloads
          Downloads
        • Downloads
          Downloads
        • How-to articles
          How-to articles
        Results will update as you type.
        • Google Maps API Key
        • High Volume SNMP Trap Processing
        • How to make configuration changes to opCommon.nmis and other files
        • NMIS 2026 Security Release
        • How To Select a Network Monitoring Solution
        • Installing and Refreshing Your License
        • Installing NMIS9 Compatible OMK Applications in a Disconnected (Air-Gapped) Environment
        • Introduction to the Linux Operating System
        • JSON Configuration Files
        • Access Rights in the 2026 OMK Security releases
        • Keeping Track of your Licenses
        • Migrating NMIS and Modules from CentOS 6 to CentOS 7
        • MongoDB Data Migration, Backup and Restore
        • MongoDB Installation
        • Moving to systemd
        • Multiple Open Ports for Opmantek applications
        • NMIS/OMK Timezone Configuration
        • Node Administration with opnode_admin
        • OMK Authentication Methods
        • OMK::Common public methods
        • OMK Common Settings to Consider Changing
        • OpenAudIT-NMIS Integration
        • opIntegration Home
        • Opmantek Products and Apache Log4J Vulnerability - Log4Shell CVE-2021-44228
        • Opmantek Products and Apache Log4J Vulnerability - Log4Shell CVE-2021-45105
        • Opmantek Support Case Opening Checklist
        • Opmantek System Configuration
        • Firstwave VM Installation and Getting Started
        • Packages and Modules Summary
        • FirstWave VM Release Notes
        • Parallel opReports Solution: New platform opReports 3.4.1 running in parallel with old platform OMK Apps including opReports 3.2.0
        • Parallel opReports Solution: New platform opReports 3.5.2 running in parallel with old platform OMK Apps including opReports 3.2.0
        • Product Compatibility
        • Product Compatibility NMIS 8
        • Redis and Opmantek Applications
        • Reducing a Server's Memory Footprint when OMK applications are installed
        • Relocating NMIS9 and OMK logs
        • Required packages for installing our products
        • Restore Backup after Install
        • Securing Opmantek Applications
        • Security Configurations
        • Smarter non-interactive installation with Preseeding
        • SSO for Firstwave Applications
        • Supported Time Formats
        • The FirstWave Installer
        • The Opmantek Installer
        • The Opmantek Support Tool
        • Training
        • Trialing Opmantek's Products
        • Upgrading FirstWave Applications
        • Upgrading From MongoDB 3.0 to MongoDB 3.2
        • Upgrading to MongoDB 3.2 Using Wired Tiger
        • Upgrading to MongoDB 4.2
        • Upgrading to MongoDB 6.0
        • Upgrading to MongoDB 7.0
        • VirtualBox Installation Guide Screenshots (Windows / Linux)
        • Virtual Machine Maintenance: Updating Software
        • How-to articles
        • How to create a custom field in Open-AudIT and integrate that into NMIS/OMK
        • Node Audit API
        • NMIS Suite for Docker
        • Security changes in the 2026 OMK Security releases
        • Common changes in the 2026 OMK Security releases
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 51, "requestCorrelationId": "d4e4ab8396214437ae962291af58b2ff"}