Sha256: a1dc7a1317d7de72651b4c295630ef7a172301397fc38693f1f491000c4193e8

Contents?: true

Size: 1.89 KB

Versions: 53

Compression:

Stored size: 1.89 KB

Contents

Feature: dawn reports security issues 
  When it scans a sinatra application that it is not updated and it has XSS

  Scenario: dawn detects the sinatra version
    Given a vulnerable sinatra application exists
    When I run `bundle exec dawn /tmp/sinatra-vulnerable`
    Then the stdout should contain "1.2.6"

  Scenario: dawn tells there are no vulnerabilities
    Given a vulnerable sinatra application exists
    When I run `bundle exec dawn /tmp/sinatra-vulnerable`
    Then the stdout should contain "4 vulnerabilities found"
    And the stdout should contain "Not revised code failed"
    And the stdout should contain "CVE-2013-0269 failed"
    And the stdout should contain "CVE-2013-1800 failed"
    And the stdout should contain "1 reflected XSS found"
    And the stdout should contain "request parameter \"name\""

    # Test for --output json
  Scenario: dawn can give a brief json output as well
    Given a vulnerable sinatra application exists
    When I run `bundle exec dawn -s /tmp/sinatra-vulnerable --output json`
    Then the stdout should contain "{\"status\":"OK",\"target\":"/tmp/sinatra-vulnerable",\"mvc\":"sinatra",\"mvc_version\":"1.2.6",\"vulnerabilities_count\":4,\"vulnerabilities\":["Not revised code","CVE-2013-0269","CVE-2013-1800"],\"mitigated_vuln_count\":0,\"mitigated_vuln\":[],\"reflected_xss\":["request parameter \"name\""]}"


    # Tests for --count-only option
  Scenario: dawn can give just the number of issues found as output
    Given a vulnerable sinatra application exists
    When I run `bundle exec dawn --count-only -s /tmp/sinatra-vulnerable`
    Then the stdout should contain "4"

  Scenario: dawn can give just the number of issues found as output
    Given a vulnerable sinatra application exists
    When I run `bundle exec dawn --count-only -s /tmp/sinatra-vulnerable --output json`
    Then the stdout should contain "{\"status\":"OK",\"vulnerabilities_count\":4}"

Version data entries

53 entries across 53 versions & 2 rubygems

Version Path
dawnscanner-2.2.0 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.1.1 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.1.0 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.0.0 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.0.0.rc5 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.0.0.rc4 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.0.0.rc3 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.0.0.rc2 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-2.0.0.rc1 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.9 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.8 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.7 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.6 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.5 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.4 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.3 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.2 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.1 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.6.0 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled
dawnscanner-1.5.2 features/dawn_scan_a_vulnerable_sinatra_app.feature.disabled