Skip to content

web-enrich

The web-enrich module attempts to connect to an HTTP server and extract HTTP headers, redirects, HTML source code, the web technologies and enrich data that the module webv2 couldn't find or doesn't look for.

web-enrich Request Example

curl -v -L https://api.binaryedge.io/v1/tasks -d '{"type":"scan", "options":[{"targets":["X.X.X.X"], "ports":[{"port":80, "protocol":"tcp", "modules":["web-enrich"], "config":{}}]}]}' -H "X-Token:<Token>"

web-enrich Request Options

These are optional parameters that can alter the behaviour of the module. These options can be inserted into the "config" object on the request.

  • extended - Extend functionalities of plugins. This could be tests that would take some time
    • "config":{"extended":true}

Features of the extended flag (currently available):

  • WordPress Plugin:
    • If no users were found it will try to enumerate the first 50 users in another way
    • It will check if the top 200 plugins are installed

Schema

web-enrich Event Schema

{
    ...
    "result": {
        "data": {
            "http_version":"string",
            "ssl":"bool",
            "fqdn":"string",
            "headers":"object",
            "redirects":"list",
            "url":"string",
            "name":"string",
            "category":"string",
            "drupal": {
                "version":"list",
                "cpe":"string",
                "confidence":"int",
                "modules":"list"
            },
            "f5_bigip": {

            },
            "joomla": {
                "version":"list",
                "cpe":"string",
                "confidence":"int",
                "components":"list",
                "modules":"list",
                "plugins":"list",
                "templates":"list"
            },
            "magento": {
                "version":"list",
                "type":"string",
                "cpe":"string",
                "confidence":"int",
                "cache_leak":"bool",
                "internal_information":{
                    "internal_path":"string"
                }
            },
            "umbraco": {
                "version":"list",
                "cpe":"string",
                "confidence":"int",
                "internal_information": {
                    "physical_path":"string",
                    "local_address":"string",
                    "remote_address":"string",
                    "remote_host":"string",
                    "remote_port":"string",
                    "http_x_forwarded_for":"string",
                    "http_x_forwarded_for_port":"string"
                }
            },
            "wordpress": {
                "version":"list",
                "cpe":"string",
                "confidence":"int",
                "plugins":"list",
                "themes":"list",
                "users":"list",
                "directory_listing":"list",
                "internal_information": {
                    "internal_path":"string"
                }
            },
            "citrix_netscaler": {
                "name":"string",
                "host":"string",
                "port":"string"
            },
            "f5_bigip_loadbalancer": {
                "pool_name":"string",
                "host":"string",
                "port":"int",
                "route_domain":"string",
                "ipv6":"bool"
            },
            "secrets": {
                "amazon_aws_s3_url":"list",
                "square_oauth_secret":"list",
                "amazon_aws_keys":"list"
            }
        }
    }
}

Contents of the fields:

  • http_version - HTTP version
  • ssl - If the connection was made in HTTPS
  • fqdn - Fully Qualified Domain name of the web server
  • headers - Header information from the web server
  • redirects - List of redirects before reaching final response
  • url - Calculated url of the web application
  • name - Name of the technology
  • category - Categories of the technology
  • drupal - Drupal Plugin
    • version - List with the version or possible versions of the technology
    • cpe - CPE of the technology
    • confidence - Confidence level for the match (decreases based on checks for a full match)
    • modules - Information about the modules present
  • f5_bigip - F5 BigIP Plugin
  • joomla - Joomla Plugin
    • version - List with the version or possible versions of the technology
    • cpe - CPE of the technology
    • confidence - Confidence level for the match (decreases based on checks for a full match)
    • components - Information about the components present
    • modules - Information about the modules present
    • plugins - Information about the plugins present
    • templates - Information about the templates present
  • magento - Magento Plugin
    • version - List with the version or possible versions of the technology
    • type - Type of Magento Installation (Community or Enterprise)
    • cpe - CPE of the technology
    • confidence - Confidence level for the match (decreases based on checks for a full match)
    • cache_leak - Check of Cache Leak problem
    • internal_path - Internal path of the web application
  • umbraco - Umbraco Plugin
    • version - List with the version or possible versions of the technology
    • cpe - CPE of the technology
    • confidence - Confidence level for the match (decreases based on checks for a full match)
    • internal_information - Internal WebApp/Machine Information
      • physical_path - Internal path of the web application
      • local_address - Local address of the machine
      • remote_address - Remote address of the machine
      • remote_host - Remote Host of the connection
      • remote_port - Remote Port of the connection
      • http_x_forwarded_for - Host of connection through HTTP Proxy or Load balancer
      • http_x_forwarded_for_port - Port of connection through HTTP Proxy or Load balancer
  • wordpress - WordPress plugin
    • version - List with the version or possible versions of the technology
    • cpe - CPE of the technology
    • confidence - Confidence level for the match (decreases based on checks for a full match)
    • plugins - Information about the plugins present
    • users - Information about the users present
    • directory_listing - Paths that have directory listing
    • internal_path - Internal path of the web application
  • citrix_netscaler - Citrix Netscaler plugin
    • name - Name of the Citrix Netscaler cookie
    • host - Host of the Citrix Netscaler machine
    • port - Port of the Citrix Netscaler machine
  • f5_bigip_loadbalancer - F5 BigIP Load Balancer Plugin
    • pool_name - Pool Name of the F5 BigIP Load Balancer
    • host - Host of the F5 BigIP Load Balancer
    • port - Port of the F5 BigIP Load Balancer
    • route_domain - Route Domain of the F5 BigIP Load Balancer
    • ipv6 - If host is IPv6
  • secrets - Secrets Plugin
    • amazon_aws_s3_url - Amazon s3 bucket url
    • amazon_aws_keys - Amazon aws keys
    • square_oauth_secret - Square oauth secret

web-enrich Event Example

{
    ...
    "result": {
        "data":{
            "url":"https://URL/",
            "name":"WordPress",
            "category":[
                "CMS",
                "Blogs"
            ],
            "wordpress":{
                "version":[
                    "4.9.13"
                ],
                "cpe":"cpe:/a:wordpress:wordpress:4.9.13",
                "confidence":100,
                "plugins":[
                    {
                        "name":"WP Social Icons",
                        "slug":"wp-social-icons",
                        "version":"1.1",
                        "site_url":"https://URL/wp-content/plugins/wp-social-icons/readme.txt",
                        "plugin_url":"https://plugins.svn.wordpress.org/wp-social-icons/"
                    },
                    {
                        "name":"Contact Form 7",
                        "slug":"contact-form-7",
                        "version":"4.4.1",
                        "site_url":"https://URL/wp-content/plugins/contact-form-7/readme.txt",
                        "plugin_url":"https://plugins.svn.wordpress.org/contact-form-7/"
                    }
                ],
                "themes":[
                    {
                        "name": "RT-Theme 17",
                        "slug": "rttheme17",
                        "version": "2.7.1",
                        "site_url": "http://URL/wp-content/themes/rttheme17/style.css",
                        "theme_url": "http://themeforest.net/user/stmcan"
                    }
                ],
                "users":[
                    {
                        "name":"axxxxn",
                        "username":"axxxxn",
                        "email_md5":"43xxxxxxxxxxxxxxxxxxxxxxxxxxxx11"
                    },
                    {
                        "name":"Axxxxxxxxxxxxk",
                        "username":"axxxxxa",
                        "email_md5":"59xxxxxxxxxxxxxxxxxxxxxxxxxxxxbf"
                    },
                    {
                        "name":"Lxxxxxxxxxxo",
                        "username":"lxxxxxe",
                        "email_md5":"13xxxxxxxxxxxxxxxxxxxxxxxxxxxx30"
                    }
                ],
                "directory_listing":[
                    "/wp-includes/",
                    "/wp-content/uploads/"
                ],
                "internal_information": {
                    "internal_path":"/home/naxxxxxor/public_html/"
                }
            },
            "http_version":"HTTP/1.1",
            "ssl":true,
            "fqdn":"URL",
            "headers":{
                "date":"Wed, 12 Feb 2020 01:15:43 GMT",
                "content-type":"text/html; charset=UTF-8",
                "transfer-encoding":"chunked",
                "connection":"keep-alive",
                "set-cookie":"__cfduid=d3f69fd24fe38afa5984d479c144382501581470142; expires=Fri, 13-Mar-20 01:15:42 GMT; path=/; domain=.intactinfo.com; HttpOnly; SameSite=Lax",
                "x-powered-by":"PHP/7.2.27",
                "x-pingback":"https://URL/xmlrpc.php",
                "link":"<https://URL/wp-json/>; rel=\"https://api.w.org/\", <https://URL/>; rel=shortlink",
                "cache-control":"max-age=600",
                "expires":"Wed, 12 Feb 2020 01:25:43 GMT",
                "vary":"Accept-Encoding,User-Agent",
                "strict-transport-security":"max-age=31536000",
                "cf-cache-status":"DYNAMIC",
                "expect-ct":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
                "server":"cloudflare",
                "cf-ray":"563ab6897a2c546c-MAD",
                "content-encoding":"gzip"
            },
            "redirects":[
                {
                    "status_code":301,
                    "redirect_uri":"http://IP:80/",
                    "headers":{
                        "date":"Wed, 12 Feb 2020 01:15:41 GMT",
                        "server":"Apache",
                        "x-powered-by":"PHP/7.2.27",
                        "x-pingback":"http://URL/xmlrpc.php",
                        "location":"https://IP/",
                        "cache-control":"max-age=600",
                        "expires":"Wed, 12 Feb 2020 01:25:41 GMT",
                        "strict-transport-security":"max-age=31536000",
                        "vary":"User-Agent",
                        "content-length":"0",
                        "keep-alive":"timeout=5, max=100",
                        "connection":"Keep-Alive",
                        "content-type":"text/html; charset=UTF-8"
                    }
                },
                {
                    "status_code":301,
                    "redirect_uri":"https://IP/",
                    "headers":{
                        "date":"Wed, 12 Feb 2020 01:15:42 GMT",
                        "server":"Apache",
                        "x-powered-by":"PHP/7.2.27",
                        "x-pingback":"https://URL/xmlrpc.php",
                        "location":"https://URL/",
                        "cache-control":"max-age=600",
                        "expires":"Wed, 12 Feb 2020 01:25:42 GMT",
                        "strict-transport-security":"max-age=31536000",
                        "vary":"User-Agent",
                        "content-length":"0",
                        "keep-alive":"timeout=5, max=100",
                        "connection":"Keep-Alive",
                        "content-type":"text/html; charset=UTF-8"
                    }
                }
            ]
        }
    }
}