failmap/admin

View on GitHub
websecmap/scanners/__init__.py

Summary

Maintainability
D
2 days
Test Coverage

File __init__.py has 579 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""
A list of all scan types that are reliable and can be used in production environments (reporting, etc).

If you want to add a new scanner, you'll have to go through the following steps.
- Add it to the correct list below (todo: automate discovery of what scanners are available)
Severity: Major
Found in websecmap/scanners/__init__.py - About 1 day to fix

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        {
            "name": "http",
            "verbose name": "HTTP/HTTPS Endpoint discovery",
            "description": "Discovers and verifies the existence of HTTP/HTTPS services on standard and alternative ports.",
            "can discover endpoints": True,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 2 other locations - About 40 mins to fix
    websecmap/scanners/__init__.py on lines 236..261
    websecmap/scanners/__init__.py on lines 361..376

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 34.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        {
            "name": "dns_endpoints",
            "verbose name": "Finds DNS pointers towards supposedly existing services. Used for internet.nl scans.",
            "description": "Checks DNS for various advertised services and manages a special type of endpoint to resemble "
            "it's discovery and verification (life cycle).",
    Severity: Major
    Found in websecmap/scanners/__init__.py and 2 other locations - About 40 mins to fix
    websecmap/scanners/__init__.py on lines 236..261
    websecmap/scanners/__init__.py on lines 311..325

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 34.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 3 locations. Consider refactoring.
    Open

        {
            "name": "subdomains",
            "verbose name": "Discover subdomains using open data sources",
            "description": "Uses NSEC1 and Certificate Tranparency to discover new urls. "
            "About NSEC1: Discover new domains using DNSSEC NSEC1 enumeration. This is a powerful but not frequently used "
    Severity: Major
    Found in websecmap/scanners/__init__.py and 2 other locations - About 40 mins to fix
    websecmap/scanners/__init__.py on lines 311..325
    websecmap/scanners/__init__.py on lines 361..376

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 34.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

        "internet_nl_mail_auth_dmarc_exist": {
            "high": ["failed"],
            "medium": ["warning"],
            "low": ["info"],
            "ok": ["passed", "good_not_tested"],
    Severity: Major
    Found in websecmap/scanners/__init__.py and 3 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 113..119
    websecmap/scanners/__init__.py on lines 121..127
    websecmap/scanners/__init__.py on lines 129..135

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

        "internet_nl_mail_auth_spf_exist": {
            "high": ["failed"],
            "medium": ["warning"],
            "low": ["info"],
            "ok": ["passed", "good_not_tested"],
    Severity: Major
    Found in websecmap/scanners/__init__.py and 3 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 113..119
    websecmap/scanners/__init__.py on lines 129..135
    websecmap/scanners/__init__.py on lines 137..143

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

        "internet_nl_mail_auth_dkim_exist": {
            "high": ["failed"],
            "medium": ["warning"],
            "low": ["info"],
            "ok": ["passed", "good_not_tested"],
    Severity: Major
    Found in websecmap/scanners/__init__.py and 3 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 113..119
    websecmap/scanners/__init__.py on lines 121..127
    websecmap/scanners/__init__.py on lines 137..143

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Identical blocks of code found in 4 locations. Consider refactoring.
    Open

        "internet_nl_mail_starttls_tls_available": {
            "high": ["failed"],
            "medium": ["warning"],
            "low": ["info"],
            "ok": ["passed", "good_not_tested"],
    Severity: Major
    Found in websecmap/scanners/__init__.py and 3 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 121..127
    websecmap/scanners/__init__.py on lines 129..135
    websecmap/scanners/__init__.py on lines 137..143

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "autoexplain_dutch_untrusted_cert",
            "verbose name": "Explains specific TLS certificates that are not trusted by default.",
            "description": "",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 263..277
    websecmap/scanners/__init__.py on lines 279..293
    websecmap/scanners/__init__.py on lines 295..309
    websecmap/scanners/__init__.py on lines 546..560
    websecmap/scanners/__init__.py on lines 562..576
    websecmap/scanners/__init__.py on lines 578..592

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "autoexplain_microsoft_neighboring_services",
            "verbose name": "Explains new neighboring services of endpoints already explained by trust microsoft.",
            "description": "",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 263..277
    websecmap/scanners/__init__.py on lines 279..293
    websecmap/scanners/__init__.py on lines 295..309
    websecmap/scanners/__init__.py on lines 530..544
    websecmap/scanners/__init__.py on lines 546..560
    websecmap/scanners/__init__.py on lines 578..592

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "autoexplain_no_https_microsoft",
            "verbose name": "Allows certain microsoft services that don't require https to result in a high risk issue.",
            "description": "",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 263..277
    websecmap/scanners/__init__.py on lines 279..293
    websecmap/scanners/__init__.py on lines 295..309
    websecmap/scanners/__init__.py on lines 530..544
    websecmap/scanners/__init__.py on lines 546..560
    websecmap/scanners/__init__.py on lines 562..576

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "autoexplain_trust_microsoft",
            "verbose name": "Trusts certain microsoft services such as SIP, Lyndiscover and others with.",
            "description": "",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 263..277
    websecmap/scanners/__init__.py on lines 279..293
    websecmap/scanners/__init__.py on lines 295..309
    websecmap/scanners/__init__.py on lines 530..544
    websecmap/scanners/__init__.py on lines 562..576
    websecmap/scanners/__init__.py on lines 578..592

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "dns_known_subdomains",
            "verbose name": "Subdomain discovery using known subdomains",
            "description": "Attempts to contact the list of known subdomains on other domains. ",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 279..293
    websecmap/scanners/__init__.py on lines 295..309
    websecmap/scanners/__init__.py on lines 530..544
    websecmap/scanners/__init__.py on lines 546..560
    websecmap/scanners/__init__.py on lines 562..576
    websecmap/scanners/__init__.py on lines 578..592

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "dns_clean_wildcards",
            "verbose name": "Clean Wildcard addresses.",
            "description": "Remove domains that have the same content as the wildcard.",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 263..277
    websecmap/scanners/__init__.py on lines 295..309
    websecmap/scanners/__init__.py on lines 530..544
    websecmap/scanners/__init__.py on lines 546..560
    websecmap/scanners/__init__.py on lines 562..576
    websecmap/scanners/__init__.py on lines 578..592

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 7 locations. Consider refactoring.
    Open

        {
            "name": "dns_wildcards",
            "verbose name": "Discover if a domain/subdomain has a wildcard DNS entry.",
            "description": "",
            "can discover endpoints": False,
    Severity: Major
    Found in websecmap/scanners/__init__.py and 6 other locations - About 35 mins to fix
    websecmap/scanners/__init__.py on lines 263..277
    websecmap/scanners/__init__.py on lines 279..293
    websecmap/scanners/__init__.py on lines 530..544
    websecmap/scanners/__init__.py on lines 546..560
    websecmap/scanners/__init__.py on lines 562..576
    websecmap/scanners/__init__.py on lines 578..592

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 33.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status