App-WebPerimeterScan
view release on metacpan or search on metacpan
lib/App/WebPerimeterScan/Messages.pm view on Meta::CPAN
8000 => 'An alternate HTTP port is exposed',
8080 => 'An alternate HTTP port is exposed',
8443 => 'An alternate HTTPS port is exposed',
8888 => 'An alternate HTTP port is exposed',
9200 => 'Elasticsearch has no authentication by default',
11211 => 'memcached has no authentication at all',
27017 => 'MongoDB has historically shipped without authentication',
other => 'A service is reachable on this port',
},
},
'port-open.evidence' => {
select => 'has_banner',
forms => {
yes => 'Banner: {banner}',
other => 'TCP connect succeeded, no banner',
},
},
'port-open.fix' => 'Close the port at the firewall unless it must be public; if it must, restrict it by source address and require authentication.',
'ports-other-open.title' => 'Other reachable ports: {ports}',
'ports-other-open.detail' => 'These are not inherently unsafe, but every open port is attack surface that has to be patched and monitored.',
'ports-other-open.evidence' => 'Open: {ports}',
'ports-other-open.fix' => 'Close anything not actively needed.',
'outdated-ssh-banner.title' => 'SSH announces an old version',
'outdated-ssh-banner.detail' => 'OpenSSH releases before {minimum} include versions with published remote flaws; the banner alone is not proof of a working exploit, but it is a strong hint.',
'outdated-ssh-banner.fix' => 'Upgrade OpenSSH and restart sshd.',
'outdated-ssh-banner.item' => 'port {port}: {banner}',
# ==================================================================
# Well-known paths
# ==================================================================
'git-exposed.title' => 'Exposed Git repository metadata',
'git-exposed.detail' => 'The .git directory is being served. Source code, commit history and any credentials ever committed can be reconstructed from it.',
'git-exposed.fix' => 'Deny requests to /.git/ at the web server, and deploy with the repository outside the document root.',
'git-head.title' => 'Exposed Git HEAD',
'git-head.detail' => 'A Git ref file is readable, which confirms the repository is exposed.',
'git-head.fix' => 'Deny requests to /.git/ at the web server.',
'svn-exposed.title' => 'Exposed Subversion metadata',
'svn-exposed.detail' => 'Subversion administrative files are readable.',
'svn-exposed.fix' => 'Deny requests to /.svn/ at the web server.',
'env-exposed.title' => 'Exposed environment file',
'env-exposed.detail' => 'A dotenv file is downloadable. These usually hold database passwords, API keys and application secrets.',
'env-exposed.fix' => 'Serve only the application entry point: deny dotfiles at the web server and keep configuration above the document root.',
'htpasswd-exposed.title' => 'Exposed password file',
'htpasswd-exposed.detail' => 'An htpasswd file is downloadable, so password hashes can be taken offline and cracked.',
'htpasswd-exposed.fix' => 'Store password files outside the document root and deny access to dotfiles.',
'htaccess-exposed.title' => 'Exposed .htaccess',
'htaccess-exposed.detail' => 'Server configuration is readable and reveals internal rewrite targets and module versions.',
'htaccess-exposed.fix' => 'Deny access to dotfiles at the web server.',
'web-config-exposed.title' => 'Exposed web.config',
'web-config-exposed.detail' => 'An IIS configuration file is readable and may contain connection strings.',
'web-config-exposed.fix' => 'Deny access to web.config.',
'php-config-backup.title' => 'Exposed WordPress configuration backup',
'php-config-backup.detail' => 'A backup copy of wp-config.php is downloadable, exposing database credentials and salts.',
'php-config-backup.fix' => 'Remove backup copies from the document root and deny requests for .bak/.old/.orig files.',
'sql-dump-exposed.title' => 'Exposed database dump',
'sql-dump-exposed.detail' => 'A database dump is downloadable, which is usually a complete copy of the application data.',
'sql-dump-exposed.fix' => 'Remove dumps from the web root and store backups off the web server.',
'ds-store-exposed.title' => 'Exposed .DS_Store',
'ds-store-exposed.detail' => 'A macOS folder index is readable, which leaks the names of files (sometimes files that are otherwise unreachable) in that directory.',
'ds-store-exposed.fix' => 'Deny dotfiles at the web server and stop deploying macOS metadata.',
'server-status-exposed.title' => 'Apache server-status is public',
'server-status-exposed.detail' => 'mod_status is reachable, exposing internal URLs, client addresses and server load.',
'server-status-exposed.fix' => 'Restrict /server-status with Require ip on localhost, or disable mod_status.',
'server-info-exposed.title' => 'Apache server-info is public',
'server-info-exposed.detail' => 'mod_info is reachable and publishes the full module configuration.',
'server-info-exposed.fix' => 'Restrict /server-info with Require ip on localhost, or disable mod_info.',
'phpinfo-exposed.title' => 'phpinfo() is public',
'phpinfo-exposed.detail' => 'A phpinfo page leaks absolute paths, loaded extensions, environment variables and sometimes credentials.',
'phpinfo-exposed.fix' => 'Delete phpinfo scripts from production.',
'spring-actuator-exposed.title' => 'Spring Boot actuator environment is public',
'spring-actuator-exposed.detail' => 'The actuator env endpoint is reachable and commonly exposes datasource credentials and API keys.',
'spring-actuator-exposed.fix' => 'Require authentication on /actuator/**, and only expose health and info.',
'spring-health-exposed.title' => 'Spring Boot actuator health is public',
'spring-health-exposed.detail' => 'Health detail is public. This is minor on its own but confirms a Spring Boot management surface.',
'spring-health-exposed.fix' => 'Expose only the health endpoint, and set management.endpoint.health.show-details=never.',
'composer-json-exposed.title' => 'composer.json is public',
'composer-json-exposed.detail' => 'Dependency pins are readable, which tells an attacker exactly which versions to try.',
'composer-json-exposed.fix' => 'Deny access to composer.json and composer.lock.',
'package-json-exposed.title' => 'package.json is public',
'package-json-exposed.detail' => 'Dependency pins are readable, which tells an attacker exactly which versions to try.',
'package-json-exposed.fix' => 'Deny access to package.json and package-lock.json.',
'crossdomain-xml.title' => 'Permissive crossdomain.xml',
'crossdomain-xml.detail' => 'A wildcard Flash cross-domain policy lets any site read responses from this origin (still honoured by some legacy clients).',
'crossdomain-xml.fix' => 'Remove crossdomain.xml, or restrict allow-access-from to specific trusted domains.',
'security-txt-present.title' => 'security.txt is published',
'security-txt-present.detail' => 'Good: this gives a researcher a route to report a finding to you privately.',
'security-txt-present.evidence' => 'Contact directive found',
'robots-disclosure.title' => {
plural => 'count',
forms => {
one => 'robots.txt names {count} path',
other => 'robots.txt names {count} paths',
},
},
'robots-disclosure.detail' => 'robots.txt is public. Anything listed there is a map of what the operator considers sensitive; it must not be the only protection.',
'robots-disclosure.evidence' => 'Disallow: {paths}',
'robots-disclosure.fix' => 'Enforce access control on these paths rather than relying on robots.txt, and consider not listing them at all.',
};
1;
__END__
=encoding utf8
=head1 NAME
( run in 0.758 second using v1.01-cache-2.11-cpan-99fa8243a42 )