├── README.md ├── asvs.db ├── asvs.rb ├── create_asvs_database.rb ├── create_masvs_database.rb ├── cwe.rb ├── docs └── images │ ├── asvs-issues.png │ ├── asvs-label-search.png │ ├── asvs-milestones.png │ └── asvs-project-board.png └── masvs.db /README.md: -------------------------------------------------------------------------------- 1 | # OWASP ASVS Issue Tracker 2 | 3 | Create a github personal access token, then set an environment variable named GITHUB_PERSONAL_ACCESS_TOKEN with the value of your access token 4 | 5 | The value of will dictate which issues will be associated to their corresponding ASVS milestones. For instance, a level 3 issue will not be assigned to a milestone if is set to 2. All issues regardless of their level will still be created. 6 | 7 | ``` 8 | ./asvs.rb 9 | Missing or invalid arguments: asvs.rb 10 | Example: asvs.rb asvs-graphql 2 /home/bobdobs/projects/ 11 | ``` 12 | 13 | **Create an issue for each ASVS requirement** 14 | 15 | ![Screenshot](docs/images/asvs-issues.png) 16 | 17 | **Filter issues by label** 18 | 19 | ![Screenshot](docs/images/asvs-label-search.png) 20 | 21 | **Group ASVS requirements into milestones to easily track progress** 22 | 23 | ![Screenshot](docs/images/asvs-milestones.png) 24 | 25 | **Create project boards to visualize work** 26 | 27 | ![Screenshot](docs/images/asvs-project-board.png) 28 | -------------------------------------------------------------------------------- /asvs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spyd3r/owasp-asvs-github/0c10b5d2da4333151305a4534c08277092da1528/asvs.db -------------------------------------------------------------------------------- /asvs.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | $LOAD_PATH << '.' 3 | require 'octokit' 4 | require 'sqlite3' 5 | require 'fileutils' 6 | require 'milestones' 7 | require 'cwe' 8 | 9 | include CWE 10 | 11 | if ARGV.length != 3 12 | puts "Missing or invalid arguments: asvs.rb " 13 | puts "Example: asvs.rb asvs-graphql 2 /home/bobdobs/projects/" 14 | exit 15 | end 16 | 17 | project = ARGV[0] 18 | project_level = ARGV[1] 19 | repo_path = ARGV[2] 20 | 21 | # create directory path from repo_path argument if it doesn't already exist 22 | if not File.directory? repo_path 23 | FileUtils.mkdir_p repo_path 24 | end 25 | 26 | # docs - http://octokit.github.io/octokit.rb/Octokit/Client 27 | 28 | ACCESS_TOKEN = ENV['GITHUB_PERSONAL_ACCESS_TOKEN'] 29 | 30 | client = Octokit::Client.new(:access_token => ACCESS_TOKEN) 31 | client.auto_paginate = true 32 | 33 | # connect to asvs.db 34 | db = SQLite3::Database.new('asvs.db') 35 | 36 | # create repository - http://octokit.github.io/octokit.rb/Octokit/Client/Repositories.html 37 | puts "Creating repository..." 38 | repository = client.create_repository(project) 39 | 40 | # create milestones 41 | milestones = { 42 | "Architecture, Design and Threat Modeling Verification Requirements" => "Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tAt1 components of the application are identified and have a reason for being in the app\r\n\r\n\tAt2 the architecture has been defined and the code adheres to the architecture\r\n\r\n\tAt3 the architecture and design is in place, in use, and effective", 43 | "Authentication Verification Requirements" => "Authentication is the act of establishing, or confirming, something (or someone) as authentic, that is, that claims made by or about the thing are true. Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tVerifies the digital identity of the sender of a communication.\r\n\r\n\tEnsures that only those authorised are able to authenticate and credentials are transported in a secure manner.", 44 | "Session Management Verification Requirements" => "One of the core components of any web-based application is the mechanism by which it controls and maintains the state for a user interacting with it. This is referred to this as Session Management and is defined asthe set of all controls governing state-full interaction between a user and the web-based application. Ensure that a verified application satisfies the following high level session management requirements:\r\n\r\n\tSessions are unique to each individual and cannot be guessed or shared.\r\n\r\n\tSessions are invalidated when no longer required and timed out during periods of inactivity.", 45 | "Access Control Verification Requirements" => "Authorization is the concept of allowing access to resources only to those permitted to use them. Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tPersons accessing resources holds valid credentials to do so.\r\n\r\n\tUsers are associated with a well-defined set of roles and privileges.\r\n\r\n\tRole and permission metadata is protected from replay or tampering.", 46 | "Validation, Sanitization and Encoding Verification Requirements" => "The most common web application security weakness is the failure to properly validate input coming from the client or from the environment before using it. This weakness leads to almost all of the major vulnerabilities in web applications, such as cross site scripting, SQL injection, interpreter injection, locale/Unicode attacks, file system attacks, and buffer overflows. Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tAll input is validated to be correct and fit for the intended purpose.\r\n\r\n\tData from an external entity or client should never be trusted and should be handled accordingly.", 47 | "Stored Cryptography Verification Requirements" => "Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tThat all cryptographic modules fail in a secure manner and that errors are handled correctly.\r\n\r\n\tThat a suitable random number generator is used when randomness is required.\r\n\r\n\tThat access to keys is managed in a secure way.", 48 | "Error Handling and Logging Verification Requirements" => "The primary objective of error handling and logging is to provide a useful reaction by the user, administrators, and incident response teams. The objective is not to create massive amounts of logs, but high quality logs, with more signal than discarded noise. High quality logs will often contain sensitive data, and must be protected as per local data privacy laws or directives. This should include:\r\n\r\n\tNot collecting or logging sensitive information if not specifically required.\r\n\r\n\tEnsuring all logged information is handled securely and protected as per its data classification.\r\n\r\n\tEnsuring that logs are not forever, but have an absolute lifetime that is as short as possible.\r\n\r\n\tIf logs contain private or sensitive data, the definition of which varies from country to country, the logs become some of the most sensitive information held by the application and thus very attractive to attackersin their own right.", 49 | "Data Protection Verification Requirements" => "There are three key elements to sound data protection: Confidentiality, Integrity and Availability (CIA). This standard assumes that data protection is enforced on a trusted system, such as a server, which has been hardened and has sufficient protections. The application has to assume that all user devices are compromised in some way. Where an application transmits or stores sensitive information on insecure devices, such as shared computers, phones and tablets, the application is responsible for ensuring data stored on these devices is encrypted and cannot be easily illicitly obtained, altered or disclosed. Ensure that a verified application satisfies the following high level data protection requirements:\r\n\r\n\tConfidentiality: Data should be protected from unauthorised observation or disclosure both in transit and when stored.\r\n\r\n\tIntegrity: Data should be protected being maliciously created, altered or deleted by unauthorizedattackers.\r\n\r\n\tAvailability: Data should be available to authorized users as required.", 50 | "Communications Verification Requirements" => "Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tThat TLS is used where sensitive data is transmitted.\r\n\r\n\tThat strong algorithms and ciphers are used at all times.", 51 | "Malicious Code Verification Requirements" => "Ensure that a verified application satisfies the following high level requirement:\r\n\r\n\tDetected malicious activity is handled securely and properly as to not affect the rest of the application.", 52 | "Business Logic Verification Requirements" => "Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tThe business logic flow is sequential and in order.", 53 | "Files and Resources Verification Requirements" => "Ensure that a verified application satisfies the following high level requirements:\r\n\r\n\tUntrusted file data should be handled accordingly and in a secure manner.\r\n\r\n\tObtained from untrusted sources are stored outside the webroot and limited permissions.", 54 | "API and Web Service Verification Requirements" => "Ensure that a verified application that uses RESTful or SOAP based web services has:\r\n\r\n\tadequate authentication, session management and authorization of all web services\r\n\r\n\tInput validation of all parameters that transit from a lower to higher trust level\r\n\r\n\tBasic interoperability of SOAP web services layer to promote API use", 55 | "Configuration Verification Requirements" => "Ensure that a verified application has:\r\n\r\n\tUp to date libraries and platform(s).\r\n\r\n\tA secure by default configuration.\r\n\r\n\tSufficient hardening that user initiated changes to default configuration do not unnecessarily expose or create security weaknesses or flaws to underlying systems." 56 | } 57 | puts "Creating milestones..." 58 | milestones.each do | title, desc | 59 | client.create_milestone(repository.full_name, title, {:description => desc}) 60 | end 61 | 62 | # create milestone hash with :title => milestone_id 63 | milestones = {} 64 | client.list_milestones(repository.id).each do | milestone | 65 | milestones[milestone.title] = milestone.number 66 | end 67 | 68 | # create issues 69 | puts "Creating issues..." 70 | issues = db.execute('SELECT * FROM ISSUES') 71 | issue_metadata = {} 72 | issues.each do | issue | 73 | issue_id = issue[0] 74 | issue_section = issue[1] 75 | issue_level = issue[2] 76 | issue_weight = issue[3] 77 | issue_cwe = issue[4] 78 | issue_milestone = issue[5] 79 | issue_title = issue[6] 80 | unless issue_cwe == "-1" 81 | cwe = CWE.const_get(issue_cwe.upcase) 82 | description = "For additional information on this requirement, see [#{cwe[:title]}](#{cwe[:link]})" 83 | else 84 | description = nil 85 | end 86 | issue = client.create_issue(repository.full_name, issue_title, description, {:milestone => issue_milestone.to_i <= project_level.to_i ? milestones[issue_milestone] : nil, :labels => "#{issue_section},#{issue_id},Level #{issue_level}"}) 87 | issue_metadata[issue.id] = {} 88 | issue_metadata[issue.id]["section"] = issue_section 89 | issue_metadata[issue.id]["level"] = issue_level 90 | end 91 | 92 | # create project boards and project cards 93 | puts "Creating project boards..." 94 | boards = db.execute('SELECT * FROM BOARDS') 95 | boards.each do | board | 96 | section = board[0] 97 | title = board[1] 98 | milestone = board[2] 99 | project = client.create_project(repository.full_name, section + ' - ' + title, {:body => milestone}) 100 | columns = ["Open", "Closed", "Level 1", "Level 2", "Level 3"] 101 | columns.each do | name | 102 | client.create_project_column(project.id, name) 103 | end 104 | column_label_map = {section => {}} 105 | project_columns = client.project_columns(project.id) 106 | project_columns.each do | column | 107 | column_label_map[section][column.name] = column.id 108 | end 109 | # create project cards for each board by label 110 | issue_metadata.each do | issue_id, issue_data | 111 | level = issue_data["level"] 112 | issue_section = issue_data["section"] 113 | if issue_section.eql? section 114 | case level 115 | when 1 116 | client.create_project_card(column_label_map[section]["Level 1"], content_id: issue_id, content_type: 'Issue') 117 | when 2 118 | client.create_project_card(column_label_map[section]["Level 2"], content_id: issue_id, content_type: 'Issue') 119 | when 3 120 | client.create_project_card(column_label_map[section]["Level 3"], content_id: issue_id, content_type: 'Issue') 121 | else 122 | puts "Not creating a board card" 123 | end 124 | end 125 | end 126 | end 127 | 128 | # map milestone titles to their URLs 129 | project_milestones = client.milestones(repository.full_name) 130 | milestones = {} 131 | project_milestones.each do | milestone | 132 | milestones[milestone.title] = milestone.html_url 133 | end 134 | 135 | # change directory to repo_path 136 | Dir.chdir repo_path 137 | system("git clone #{repository.clone_url}") 138 | Dir.chdir repo_path + repository.clone_url.split('/')[-1].split('.')[0] 139 | 140 | readme_lines = ["[Architecture, Design and Threat Modeling Verification Requirements](#{milestones['Architecture, Design and Threat Modeling Verification Requirements']})\r\n\r\n", 141 | "[Authentication Verification Requirements](#{milestones['Authentication Verification Requirements']})\r\n\r\n", 142 | "[Session Management Verification Requirements](#{milestones['Session Management Verification Requirements']})\r\n\r\n", 143 | "[Access Control Verification Requirements](#{milestones['Access Control Verification Requirements']})\r\n\r\n", 144 | "[Validation, Sanitization and Encoding Verification Requirements](#{milestones['Validation, Sanitization and Encoding Verification Requirements']})\r\n\r\n", 145 | "[Stored Cryptography Verification Requirements](#{milestones['Stored Cryptography Verification Requirements']})\r\n\r\n", 146 | "[Error Handling and Logging Verification Requirements](#{milestones['Error Handling and Logging Verification Requirements']})\r\n\r\n", 147 | "[Data Protection Verification Requirements](#{milestones['Data Protection Verification Requirements']})\r\n\r\n", 148 | "[Communications Verification Requirements](#{milestones['Communications Verification Requirements']})\r\n\r\n", 149 | "[Malicious Code Verification Requirements](#{milestones['Malicious Code Verification Requirements']})\r\n\r\n", 150 | "[Business Logic Verification Requirements](#{milestones['Business Logic Verification Requirements']})\r\n\r\n", 151 | "[Files and Resources Verification Requirements](#{milestones['Files and Resources Verification Requirements']})\r\n\r\n", 152 | "[API and Web Service Verification Requirements](#{milestones['API and Web Service Verification Requirements']})\r\n\r\n", 153 | "[Configuration Verification Requirements](#{milestones['Configuration Verification Requirements']})\r\n\r\n" 154 | ] 155 | 156 | File.open('README.md', 'w') do | f | 157 | readme_lines.each { |line| f.puts line } 158 | end 159 | 160 | system('git add README.md') 161 | system('git commit -m "Initial commit"') 162 | system('git push origin master') 163 | print("Project is ready. Access it at: #{repository.html_url}\r\n") 164 | -------------------------------------------------------------------------------- /create_asvs_database.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require "sqlite3" 3 | 4 | db = SQLite3::Database.open 'asvs.db' 5 | db.execute('''CREATE TABLE ISSUES 6 | (ID TEXT PRIMARY KEY NOT NULL, 7 | SECTION TEXT NOT NULL, 8 | LEVEL INT NOT NULL, 9 | WEIGHT INT NOT NULL, 10 | CWE TEXT NOT NULL, 11 | MILESTONE TEXT NOT NULL, 12 | TITLE TEXT NOT NULL);''') 13 | 14 | db.execute('''CREATE TABLE BOARDS 15 | (SECTION TEXT PRIMARY KEY NOT NULL, 16 | TITLE TEXT NOT NULL, 17 | MILESTONE TEXT NOT NULL );''') 18 | 19 | boards = [ 20 | {section: '1.1', title: 'Secure Software Development Lifecycle Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 21 | {section: '1.2', title: 'Authentication Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 22 | {section: '1.3', title: 'Session Management Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 23 | {section: '1.4', title: 'Access Control Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 24 | {section: '1.5', title: 'Input and Output Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 25 | {section: '1.6', title: 'Cryptographic Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 26 | {section: '1.7', title: 'Errors, Logging and Auditing Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 27 | {section: '1.8', title: 'Data Protection and Privacy Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 28 | {section: '1.9', title: 'Communications Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 29 | {section: '1.10', title: 'Malicious Software Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 30 | {section: '1.11', title: 'Business Logic Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 31 | {section: '1.12', title: 'Secure File Upload Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 32 | {section: '1.13', title: 'API Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 33 | {section: '1.14', title: 'Configuration Architectural Requirements', milestone: 'Architecture, Design and Threat Modeling Verification Requirements'}, 34 | {section: '2.1', title: 'Password Security Requirements', milestone: 'Authentication Verification Requirements'}, 35 | {section: '2.2', title: 'General Authenticator Requirements', milestone: 'Authentication Verification Requirements'}, 36 | {section: '2.3', title: 'Authenticator Lifecycle Requirements', milestone: 'Authentication Verification Requirements'}, 37 | {section: '2.4', title: 'Credential Storage Requirements', milestone: 'Authentication Verification Requirements'}, 38 | {section: '2.5', title: 'Credential Recovery Requirements', milestone: 'Authentication Verification Requirements'}, 39 | {section: '2.6', title: 'Look-up Secret Verifier Requirements', milestone: 'Authentication Verification Requirements'}, 40 | {section: '2.7', title: 'Out of Band Verifier Requirements', milestone: 'Authentication Verification Requirements'}, 41 | {section: '2.8', title: 'Single or Multi Factor One Time Verifier Requirements', milestone: 'Authentication Verification Requirements'}, 42 | {section: '2.9', title: 'Cryptographic Software and Devices Verifier Requirements', milestone: 'Authentication Verification Requirements'}, 43 | {section: '2.10', title: 'Service Authentication Requirements', milestone: 'Authentication Verification Requirements'}, 44 | {section: '3.1', title: 'Fundamental Session Management Requirements', milestone: 'Session Management Verification Requirements'}, 45 | {section: '3.2', title: 'Session Binding Requirements', milestone: 'Session Management Verification Requirements'}, 46 | {section: '3.3', title: 'Session Logout and Timeout Requirements', milestone: 'Session Management Verification Requirements'}, 47 | {section: '3.4', title: 'Cookie-based Session Management', milestone: 'Session Management Verification Requirements'}, 48 | {section: '3.5', title: 'Token-based Session Management', milestone: 'Session Management Verification Requirements'}, 49 | {section: '3.6', title: 'Re-authentication from a Federation or Assertion', milestone: 'Session Management Verification Requirements'}, 50 | {section: '3.7', title: 'Defenses Against Session Management Exploits', milestone: 'Session Management Verification Requirements'}, 51 | {section: '4.1', title: 'General Access Control Design', milestone: 'Access Control Verification Requirements'}, 52 | {section: '4.2', title: 'Operation Level Access Control', milestone: 'Access Control Verification Requirements'}, 53 | {section: '4.3', title: 'Other Access Control Considerations', milestone: 'Access Control Verification Requirements'}, 54 | {section: '5.1', title: 'Input Validation Requirements', milestone: 'Validation, Sanitization and Encoding Verification Requirements'}, 55 | {section: '5.2', title: 'Sanitization and Sandboxing Requirements', milestone: 'Validation, Sanitization and Encoding Verification Requirements'}, 56 | {section: '5.3', title: 'Output encoding and Injection Prevention Requirements', milestone: 'Validation, Sanitization and Encoding Verification Requirements'}, 57 | {section: '5.4', title: 'Memory, String, and Unmanaged Code Requirements', milestone: 'Validation, Sanitization and Encoding Verification Requirements'}, 58 | {section: '5.5', title: 'Deserialization Prevention Requirements', milestone: 'Validation, Sanitization and Encoding Verification Requirements'}, 59 | {section: '6.1', title: 'Data Classification', milestone: 'Stored Cryptography Verification Requirements'}, 60 | {section: '6.2', title: 'Algorithms', milestone: 'Stored Cryptography Verification Requirements'}, 61 | {section: '6.3', title: 'Random Values', milestone: 'Stored Cryptography Verification Requirements'}, 62 | {section: '6.4', title: 'Secret Management', milestone: 'Stored Cryptography Verification Requirements'}, 63 | {section: '7.1', title: 'Log Content Requirements', milestone: 'Error Handling and Logging Verification Requirements'}, 64 | {section: '7.2', title: 'Log Processing Requirements', milestone: 'Error Handling and Logging Verification Requirements'}, 65 | {section: '7.3', title: 'Log Protection Requirements', milestone: 'Error Handling and Logging Verification Requirements'}, 66 | {section: '7.4', title: 'Error Handling', milestone: 'Error Handling and Logging Verification Requirements'}, 67 | {section: '8.1', title: 'General Data Protection', milestone: 'Data Protection Verification Requirements'}, 68 | {section: '8.2', title: 'Client-side Data Protection', milestone: 'Data Protection Verification Requirements'}, 69 | {section: '8.3', title: 'Sensitive Private Data', milestone: 'Data Protection Verification Requirements'}, 70 | {section: '9.1', title: 'Communications Security Requirements', milestone: 'Communications Verification Requirements'}, 71 | {section: '9.2', title: 'Server Communications Security Requirements', milestone: 'Communications Verification Requirements'}, 72 | {section: '10.1', title: 'Code Integrity Controls', milestone: 'Malicious Code Verification Requirements'}, 73 | {section: '10.2', title: 'Malicious Code Search', milestone: 'Malicious Code Verification Requirements'}, 74 | {section: '10.3', title: 'Deployed Application Integrity Controls', milestone: 'Malicious Code Verification Requirements'}, 75 | {section: '11.1', title: 'Business Logic Security Requirements', milestone: 'Business Logic Verification Requirements'}, 76 | {section: '12.1', title: 'File Upload Requirements', milestone: 'Files and Resources Verification Requirements'}, 77 | {section: '12.2', title: 'File Integrity Requirements', milestone: 'Files and Resources Verification Requirements'}, 78 | {section: '12.3', title: 'File execution Requirements', milestone: 'Files and Resources Verification Requirements'}, 79 | {section: '12.4', title: 'File Storage Requirements', milestone: 'Files and Resources Verification Requirements'}, 80 | {section: '12.5', title: 'File Download Requirements', milestone: 'Files and Resources Verification Requirements'}, 81 | {section: '12.6', title: 'SSRF Protection Requirements', milestone: 'Files and Resources Verification Requirements'}, 82 | {section: '13.1', title: 'Generic Web Service Security Verification Requirements', milestone: 'API and Web Service Verification Requirements'}, 83 | {section: '13.2', title: 'RESTful Web Service Verification Requirements', milestone: 'API and Web Service Verification Requirements'}, 84 | {section: '13.3', title: 'SOAP Web Service Verification Requirements', milestone: 'API and Web Service Verification Requirements'}, 85 | {section: '13.4', title: 'GraphQL and other Web Service Data Layer Security Requirements', milestone: 'API and Web Service Verification Requirements'}, 86 | {section: '14.1', title: 'Build', milestone: 'Configuration Verification Requirements'}, 87 | {section: '14.2', title: 'Dependency', milestone: 'Configuration Verification Requirements'}, 88 | {section: '14.3', title: 'Unintended Security Disclosure Requirements', milestone: 'Configuration Verification Requirements'}, 89 | {section: '14.4', title: 'HTTP Security Headers Requirements', milestone: 'Configuration Verification Requirements'}, 90 | {section: '14.5', title: 'Validate HTTP Request Header Requirements', milestone: 'Configuration Verification Requirements'}, 91 | ] 92 | 93 | boards.each do |board| 94 | db.execute("INSERT INTO BOARDS VALUES (?, ?, ?)", board[:section], board[:title], board[:milestone]) 95 | end 96 | 97 | issues = [ 98 | {id: '1.1.1', section: '1.1', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the use of a secure software development lifecycle that addresses security in all stages of development. ([C1](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 99 | {id: '1.1.2', section: '1.1', level: 2, weight: 50, cwe: 'id1053', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the use of threat modeling for every design change or sprint planning to identify threats, plan for countermeasures, facilitate appropriate risk responses, and guide security testing.'}, 100 | {id: '1.1.3', section: '1.1', level: 2, weight: 50, cwe: 'id1110', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all user stories and features contain functional security constraints, such as "As a user, I should be able to view and edit my profile. I should not be able to view or edit anyone else\'s profile"'}, 101 | {id: '1.1.4', section: '1.1', level: 2, weight: 50, cwe: 'id1059', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify documentation and justification of all the application\'s trust boundaries, components, and significant data flows.'}, 102 | {id: '1.1.6', section: '1.1', level: 2, weight: 50, cwe: 'id637', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify implementation of centralized, simple (economy of design), vetted, secure, and reusable security controls to avoid duplicate, missing, ineffective, or insecure controls. ([C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 103 | {id: '1.1.7', section: '1.1', level: 2, weight: 50, cwe: 'id637', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify availability of a secure coding checklist, security requirements, guideline, or policy to all developers and testers.'}, 104 | {id: '1.10.1', section: '1.10', level: 2, weight: 50, cwe: 'id284', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that a source code control system is in use, with procedures to ensure that check-ins are accompanied by issues or change tickets. The source code control system should have access control and identifiable users to allow traceability of any changes.'}, 105 | {id: '1.11.1', section: '1.11', level: 2, weight: 50, cwe: 'id1059', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the definition and documentation of all application components in terms of the business or security functions they provide.'}, 106 | {id: '1.11.2', section: '1.11', level: 2, weight: 50, cwe: 'id362', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all high-value business logic flows, including authentication, session management and access control, do not share unsynchronized state.'}, 107 | {id: '1.11.3', section: '1.11', level: 3, weight: 100, cwe: 'id367', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all high-value business logic flows, including authentication, session management and access control are thread safe and resistant to time-of-check and time-of-use race conditions.'}, 108 | {id: '1.12.1', section: '1.12', level: 2, weight: 50, cwe: 'id552', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that user-uploaded files are stored outside of the web root.'}, 109 | {id: '1.12.2', section: '1.12', level: 2, weight: 50, cwe: 'id646', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that user-uploaded files - if required to be displayed or downloaded from the application - are served by either octet stream downloads, or from an unrelated domain, such as a cloud file storage bucket. Implement a suitable content security policy to reduce the risk from XSS vectors or other attacks from the uploaded file.'}, 110 | {id: '1.14.1', section: '1.14', level: 2, weight: 50, cwe: 'id923', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the segregation of components of differing trust levels through well-defined security controls, firewall rules, API gateways, reverse proxies, cloud-based security groups, or similar mechanisms.'}, 111 | {id: '1.14.2', section: '1.14', level: 2, weight: 50, cwe: 'id494', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that if deploying binaries to untrusted devices makes use of binary signatures, trusted connections, and verified endpoints.'}, 112 | {id: '1.14.3', section: '1.14', level: 2, weight: 50, cwe: 'id1104', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that the build pipeline warns of out-of-date or insecure components and takes appropriate actions.'}, 113 | {id: '1.14.4', section: '1.14', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that the build pipeline contains a build step to automatically build and verify the secure deployment of the application, particularly if the application infrastructure is software defined, such as cloud environment build scripts.'}, 114 | {id: '1.14.5', section: '1.14', level: 2, weight: 50, cwe: 'id265', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that application deployments adequately sandbox, containerize and/or isolate at the network level to delay and deter attackers from attacking other applications, especially when they are performing sensitive or dangerous actions such as deserialization. ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 115 | {id: '1.14.6', section: '1.14', level: 2, weight: 50, cwe: 'id477', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the application does not use unsupported, insecure, or deprecated client-side technologies such as NSAPI plugins, Flash, Shockwave, ActiveX, Silverlight, NACL, or client-side Java applets.'}, 116 | {id: '1.2.1', section: '1.2', level: 2, weight: 50, cwe: 'id250', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the use of unique or special low-privilege operating system accounts for all application components, services, and servers. ([C3](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 117 | {id: '1.2.2', section: '1.2', level: 2, weight: 50, cwe: 'id306', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that communications between application components, including APIs, middleware and data layers, are authenticated. Components should have the least necessary privileges needed. ([C3](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 118 | {id: '1.2.3', section: '1.2', level: 2, weight: 50, cwe: 'id306', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that the application uses a single vetted authentication mechanism that is known to be secure, can be extended to include strong authentication, and has sufficient logging and monitoring to detect account abuse or breaches.'}, 119 | {id: '1.2.4', section: '1.2', level: 2, weight: 50, cwe: 'id306', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all authentication pathways and identity management APIs implement consistent authentication security control strength, such that there are no weaker alternatives per the risk of the application.'}, 120 | {id: '1.4.1', section: '1.4', level: 2, weight: 50, cwe: 'id602', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that trusted enforcement points such as at access control gateways, servers, and serverless functions enforce access controls. Never enforce access controls on the client.'}, 121 | {id: '1.4.2', section: '1.4', level: 2, weight: 50, cwe: 'id284', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that the chosen access control solution is flexible enough to meet the application\'s needs.'}, 122 | {id: '1.4.3', section: '1.4', level: 2, weight: 50, cwe: 'id272', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify enforcement of the principle of least privilege in functions, data files, URLs, controllers, services, and other resources. This implies protection against spoofing and elevation of privilege.'}, 123 | {id: '1.4.4', section: '1.4', level: 2, weight: 50, cwe: 'id284', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the application uses a single and well-vetted access control mechanism for accessing protected data and resources. All requests must pass through this single mechanism to avoid copy and paste or insecure alternative paths. ([C7](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 124 | {id: '1.4.5', section: '1.4', level: 2, weight: 50, cwe: 'id275', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that attribute or feature-based access control is used whereby the code checks the user\'s authorization for a feature/data item rather than just their role. Permissions should still be allocated using roles. ([C7](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 125 | {id: '1.5.1', section: '1.5', level: 2, weight: 50, cwe: 'id1029', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that input and output requirements clearly define how to handle and process data based on type, content, and applicable laws, regulations, and other policy compliance.'}, 126 | {id: '1.5.2', section: '1.5', level: 2, weight: 50, cwe: 'id502', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that serialization is not used when communicating with untrusted clients. If this is not possible, ensure that adequate integrity controls (and possibly encryption if sensitive data is sent) are enforced to prevent deserialization attacks including object injection.'}, 127 | {id: '1.5.3', section: '1.5', level: 2, weight: 50, cwe: 'id602', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that input validation is enforced on a trusted service layer. ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 128 | {id: '1.5.4', section: '1.5', level: 2, weight: 50, cwe: 'id116', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that output encoding occurs close to or by the interpreter for which it is intended. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 129 | {id: '1.6.1', section: '1.6', level: 2, weight: 50, cwe: 'id320', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that there is an explicit policy for management of cryptographic keys and that a cryptographic key lifecycle follows a key management standard such as NIST SP 800-57.'}, 130 | {id: '1.6.2', section: '1.6', level: 2, weight: 50, cwe: 'id320', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that consumers of cryptographic services protect key material and other secrets by using key vaults or API based alternatives.'}, 131 | {id: '1.6.3', section: '1.6', level: 2, weight: 50, cwe: 'id320', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all keys and passwords are replaceable and are part of a well-defined process to re-encrypt sensitive data.'}, 132 | {id: '1.6.4', section: '1.6', level: 2, weight: 50, cwe: 'id320', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that symmetric keys, passwords, or API secrets generated by or shared with clients are used only in protecting low risk secrets, such as encrypting local storage, or temporary ephemeral uses such as parameter obfuscation. Sharing secrets with clients is clear-text equivalent and architecturally should be treated as such.'}, 133 | {id: '1.7.1', section: '1.7', level: 2, weight: 50, cwe: 'id1009', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that a common logging format and approach is used across the system. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 134 | {id: '1.7.2', section: '1.7', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that logs are securely transmitted to a preferably remote system for analysis, detection, alerting, and escalation. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 135 | {id: '1.8.1', section: '1.8', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all sensitive data is identified and classified into protection levels.'}, 136 | {id: '1.8.2', section: '1.8', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that all protection levels have an associated set of protection requirements, such as encryption requirements, integrity requirements, retention, privacy and other confidentiality requirements, and that these are applied in the architecture.'}, 137 | {id: '1.9.1', section: '1.9', level: 2, weight: 50, cwe: 'id319', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify the application encrypts communications between components, particularly when these components are in different containers, systems, sites, or cloud providers. ([C3](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 138 | {id: '1.9.2', section: '1.9', level: 2, weight: 50, cwe: 'id295', nist: nil, milestone: 'Architecture, Design and Threat Modeling Verification Requirements', title: 'Verify that application components verify the authenticity of each side in a communication link to prevent person-in-the-middle attacks. For example, application components should validate TLS certificates and chains.'}, 139 | {id: '2.1.1', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that user set passwords are at least 12 characters in length. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 140 | {id: '2.1.10', section: '2.1', level: 1, weight: 25, cwe: 'id263', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that there are no periodic credential rotation or password history requirements.'}, 141 | {id: '2.1.11', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that "paste" functionality, browser password helpers, and external password managers are permitted.'}, 142 | {id: '2.1.12', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the user can choose to either temporarily view the entire masked password, or temporarily view the last typed character of the password on platforms that do not have this as native functionality.'}, 143 | {id: '2.1.2', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that passwords 64 characters or longer are permitted. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 144 | {id: '2.1.3', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that passwords can contain spaces and truncation is not performed. Consecutive multiple spaces MAY optionally be coalesced. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 145 | {id: '2.1.4', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that Unicode characters are permitted in passwords. A single Unicode code point is considered a character, so 12 emoji or 64 kanji characters should be valid and permitted.'}, 146 | {id: '2.1.5', section: '2.1', level: 1, weight: 25, cwe: 'id620', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify users can change their password.'}, 147 | {id: '2.1.6', section: '2.1', level: 1, weight: 25, cwe: 'id620', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that password change functionality requires the user\'s current and new password.'}, 148 | {id: '2.1.7', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that passwords submitted during account registration, login, and password change are checked against a set of breached passwords either locally (such as the top 1,000 or 10,000 most common passwords which match the system\'s password policy) or using an external API. If using an API a zero knowledge proof or other mechanism should be used to ensure that the plain text password is not sent or used in verifying the breach status of the password. If the password is breached, the application must require the user to set a new non-breached password. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 149 | {id: '2.1.8', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that a password strength meter is provided to help users set a stronger password.'}, 150 | {id: '2.1.9', section: '2.1', level: 1, weight: 25, cwe: 'id521', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that there are no password composition rules limiting the type of characters permitted. There should be no requirement for upper or lower case or numbers or special characters. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 151 | {id: '2.10.1', section: '2.10', level: 2, weight: 50, cwe: 'id287', nist: ['5.1.1.1'], milestone: 'Authentication Verification Requirements', title: 'Verify that integration secrets do not rely on unchanging passwords, such as API keys or shared privileged accounts.'}, 152 | {id: '2.10.2', section: '2.10', level: 2, weight: 50, cwe: 'id255', nist: ['5.1.1.1'], milestone: 'Authentication Verification Requirements', title: 'Verify that if passwords are required, the credentials are not a default account.'}, 153 | {id: '2.10.3', section: '2.10', level: 2, weight: 50, cwe: 'id522', nist: ['5.1.1.1'], milestone: 'Authentication Verification Requirements', title: 'Verify that passwords are stored with sufficient protection to prevent offline recovery attacks, including local system access.'}, 154 | {id: '2.10.4', section: '2.10', level: 2, weight: 50, cwe: 'id798', nist: nil, milestone: 'Authentication Verification Requirements', title: 'Verify passwords, integrations with databases and third-party systems, seeds and internal secrets, and API keys are managed securely and not included in the source code or stored within source code repositories. Such storage SHOULD resist offline attacks. The use of a secure software key store (L1), hardware trusted platform module (TPM), or a hardware security module (L3) is recommended for password storage.'}, 155 | {id: '2.2.1', section: '2.2', level: 1, weight: 25, cwe: 'id307', nist: ['5.2.2', '5.1.1.2', '5.1.4.2', '5.1.5.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that anti-automation controls are effective at mitigating breached credential testing, brute force, and account lockout attacks. Such controls include blocking the most common breached passwords, soft lockouts, rate limiting, CAPTCHA, ever increasing delays between attempts, IP address restrictions, or risk-based restrictions such as location, first login on a device, recent attempts to unlock the account, or similar. Verify that no more than 100 failed attempts per hour is possible on a single account.'}, 156 | {id: '2.2.2', section: '2.2', level: 1, weight: 25, cwe: 'id304', nist: ['5.2.10'], milestone: 'Authentication Verification Requirements', title: 'Verify that the use of weak authenticators (such as SMS and email) is limited to secondary verification and transaction approval and not as a replacement for more secure authentication methods. Verify that stronger methods are offered before weak methods, users are aware of the risks, or that proper measures are in place to limit the risks of account compromise.'}, 157 | {id: '2.2.3', section: '2.2', level: 1, weight: 25, cwe: 'id620', nist: nil, milestone: 'Authentication Verification Requirements', title: 'Verify that secure notifications are sent to users after updates to authentication details, such as credential resets, email or address changes, logging in from unknown or risky locations. The use of push notifications - rather than SMS or email - is preferred, but in the absence of push notifications, SMS or email is acceptable as long as no sensitive information is disclosed in the notification.'}, 158 | {id: '2.2.4', section: '2.2', level: 3, weight: 100, cwe: 'id308', nist: ['5.2.5'], milestone: 'Authentication Verification Requirements', title: 'Verify impersonation resistance against phishing, such as the use of multi-factor authentication, cryptographic devices with intent (such as connected keys with a push to authenticate), or at higher AAL levels, client-side certificates.'}, 159 | {id: '2.2.5', section: '2.2', level: 3, weight: 100, cwe: 'id319', nist: ['5.2.6'], milestone: 'Authentication Verification Requirements', title: 'Verify that where a credential service provider (CSP) and the application verifying authentication are separated, mutually authenticated TLS is in place between the two endpoints.'}, 160 | {id: '2.2.6', section: '2.2', level: 3, weight: 100, cwe: 'id308', nist: ['5.2.8'], milestone: 'Authentication Verification Requirements', title: 'Verify replay resistance through the mandated use of OTP devices, cryptographic authenticators, or lookup codes.'}, 161 | {id: '2.2.7', section: '2.2', level: 3, weight: 100, cwe: 'id308', nist: ['5.2.9'], milestone: 'Authentication Verification Requirements', title: 'Verify intent to authenticate by requiring the entry of an OTP token or user-initiated action such as a button press on a FIDO hardware key.'}, 162 | {id: '2.3.1', section: '2.3', level: 1, weight: 25, cwe: 'id330', nist: ['5.1.1.2', 'A.3'], milestone: 'Authentication Verification Requirements', title: 'Verify system generated initial passwords or activation codes SHOULD be securely randomly generated, SHOULD be at least 6 characters long, and MAY contain letters and numbers, and expire after a short period of time. These initial secrets must not be permitted to become the long term password.'}, 163 | {id: '2.3.2', section: '2.3', level: 2, weight: 50, cwe: 'id308', nist: ['6.1.3'], milestone: 'Authentication Verification Requirements', title: 'Verify that enrollment and use of subscriber-provided authentication devices are supported, such as a U2F or FIDO tokens.'}, 164 | {id: '2.3.3', section: '2.3', level: 2, weight: 50, cwe: 'id287', nist: ['6.1.4'], milestone: 'Authentication Verification Requirements', title: 'Verify that renewal instructions are sent with sufficient time to renew time bound authenticators.'}, 165 | {id: '2.4.1', section: '2.4', level: 2, weight: 50, cwe: 'id916', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that passwords are stored in a form that is resistant to offline attacks. Passwords SHALL be salted and hashed using an approved one-way key derivation or password hashing function. Key derivation and password hashing functions take a password, a salt, and a cost factor as inputs when generating a password hash. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 166 | {id: '2.4.2', section: '2.4', level: 2, weight: 50, cwe: 'id916', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the salt is at least 32 bits in length and be chosen arbitrarily to minimize salt value collisions among stored hashes. For each credential, a unique salt value and the resulting hash SHALL be stored. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 167 | {id: '2.4.3', section: '2.4', level: 2, weight: 50, cwe: 'id916', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that if PBKDF2 is used, the iteration count SHOULD be as large as verification server performance will allow, typically at least 100,000 iterations. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 168 | {id: '2.4.4', section: '2.4', level: 2, weight: 50, cwe: 'id916', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that if bcrypt is used, the work factor SHOULD be as large as verification server performance will allow, typically at least 13. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 169 | {id: '2.4.5', section: '2.4', level: 2, weight: 50, cwe: 'id916', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that an additional iteration of a key derivation function is performed, using a salt value that is secret and known only to the verifier. Generate the salt value using an approved random bit generator [SP 800-90Ar1] and provide at least the minimum security strength specified in the latest revision of SP 800-131A. The secret salt value SHALL be stored separately from the hashed passwords (e.g., in a specialized device like a hardware security module).'}, 170 | {id: '2.5.1', section: '2.5', level: 1, weight: 25, cwe: 'id640', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that a system generated initial activation or recovery secret is not sent in clear text to the user. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 171 | {id: '2.5.2', section: '2.5', level: 1, weight: 25, cwe: 'id640', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify password hints or knowledge-based authentication (so-called "secret questions") are not present.'}, 172 | {id: '2.5.3', section: '2.5', level: 1, weight: 25, cwe: 'id640', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify password credential recovery does not reveal the current password in any way. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 173 | {id: '2.5.4', section: '2.5', level: 1, weight: 25, cwe: 'id16', nist: ['5.1.1.2', 'A.3'], milestone: 'Authentication Verification Requirements', title: 'Verify shared or default accounts are not present (e.g. "root", "admin", or "sa").'}, 174 | {id: '2.5.5', section: '2.5', level: 1, weight: 25, cwe: 'id304', nist: ['6.1.2.3'], milestone: 'Authentication Verification Requirements', title: 'Verify that if an authentication factor is changed or replaced, that the user is notified of this event.'}, 175 | {id: '2.5.6', section: '2.5', level: 1, weight: 25, cwe: 'id640', nist: ['5.1.1.2'], milestone: 'Authentication Verification Requirements', title: 'Verify forgotten password, and other recovery paths use a secure recovery mechanism, such as TOTP or other soft token, mobile push, or another offline recovery mechanism. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 176 | {id: '2.5.7', section: '2.5', level: 2, weight: 50, cwe: 'id308', nist: ['6.1.2.3'], milestone: 'Authentication Verification Requirements', title: 'Verify that if OTP or multi-factor authentication factors are lost, that evidence of identity proofing is performed at the same level as during enrollment.'}, 177 | {id: '2.6.1', section: '2.6', level: 2, weight: 50, cwe: 'id308', nist: ['5.1.2.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that lookup secrets can be used only once.'}, 178 | {id: '2.6.2', section: '2.6', level: 2, weight: 50, cwe: 'id330', nist: ['5.1.2.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that lookup secrets have sufficient randomness (112 bits of entropy), or if less than 112 bits of entropy, salted with a unique and random 32-bit salt and hashed with an approved one-way hash.'}, 179 | {id: '2.6.3', section: '2.6', level: 2, weight: 50, cwe: 'id310', nist: ['5.1.2.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that lookup secrets are resistant to offline attacks, such as predictable values.'}, 180 | {id: '2.7.1', section: '2.7', level: 1, weight: 25, cwe: 'id287', nist: ['5.1.3.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that clear text out of band (NIST "restricted") authenticators, such as SMS or PSTN, are not offered by default, and stronger alternatives such as push notifications are offered first.'}, 181 | {id: '2.7.2', section: '2.7', level: 1, weight: 25, cwe: 'id287', nist: ['5.1.3.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the out of band verifier expires out of band authentication requests, codes, or tokens after 10 minutes.'}, 182 | {id: '2.7.3', section: '2.7', level: 1, weight: 25, cwe: 'id287', nist: ['5.1.3.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the out of band verifier authentication requests, codes, or tokens are only usable once, and only for the original authentication request.'}, 183 | {id: '2.7.4', section: '2.7', level: 1, weight: 25, cwe: 'id523', nist: ['5.1.3.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the out of band authenticator and verifier communicates over a secure independent channel.'}, 184 | {id: '2.7.5', section: '2.7', level: 2, weight: 50, cwe: 'id256', nist: ['5.1.3.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the out of band verifier retains only a hashed version of the authentication code.'}, 185 | {id: '2.7.6', section: '2.7', level: 2, weight: 50, cwe: 'id310', nist: ['5.1.3.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the initial authentication code is generated by a secure random number generator, containing at least 20 bits of entropy (typically a six digital random number is sufficient).'}, 186 | {id: '2.8.1', section: '2.8', level: 1, weight: 25, cwe: 'id613', nist: ['5.1.4.2', '5.1.5.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that time-based OTPs have a defined lifetime before expiring.'}, 187 | {id: '2.8.2', section: '2.8', level: 2, weight: 50, cwe: 'id320', nist: ['5.1.4.2', '5.1.5.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that symmetric keys used to verify submitted OTPs are highly protected, such as by using a hardware security module or secure operating system based key storage.'}, 188 | {id: '2.8.3', section: '2.8', level: 2, weight: 50, cwe: 'id326', nist: ['5.1.4.2', '5.1.5.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that approved cryptographic algorithms are used in the generation, seeding, and verification.'}, 189 | {id: '2.8.4', section: '2.8', level: 2, weight: 50, cwe: 'id287', nist: ['5.1.4.2', '5.1.5.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that time-based OTP can be used only once within the validity period.'}, 190 | {id: '2.8.5', section: '2.8', level: 2, weight: 50, cwe: 'id287', nist: ['5.1.5.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that if a time-based multi factor OTP token is re-used during the validity period, it is logged and rejected with secure notifications being sent to the holder of the device.'}, 191 | {id: '2.8.6', section: '2.8', level: 2, weight: 50, cwe: 'id613', nist: ['5.2.1'], milestone: 'Authentication Verification Requirements', title: 'Verify physical single factor OTP generator can be revoked in case of theft or other loss. Ensure that revocation is immediately effective across logged in sessions, regardless of location.'}, 192 | {id: '2.8.7', section: '2.8', level: 3, weight: 100, cwe: 'id308', nist: ['5.2.3'], milestone: 'Authentication Verification Requirements', title: 'Verify that biometric authenticators are limited to use only as secondary factors in conjunction with either something you have and something you know.'}, 193 | {id: '2.9.1', section: '2.9', level: 2, weight: 50, cwe: 'id320', nist: ['5.1.7.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that cryptographic keys used in verification are stored securely and protected against disclosure, such as using a TPM or HSM, or an OS service that can use this secure storage.'}, 194 | {id: '2.9.2', section: '2.9', level: 2, weight: 50, cwe: 'id330', nist: ['5.1.7.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that the challenge nonce is at least 64 bits in length, and statistically unique or unique over the lifetime of the cryptographic device.'}, 195 | {id: '2.9.3', section: '2.9', level: 2, weight: 50, cwe: 'id327', nist: ['5.1.7.2'], milestone: 'Authentication Verification Requirements', title: 'Verify that approved cryptographic algorithms are used in the generation, seeding, and verification.'}, 196 | {id: '3.1.1', section: '3.1', level: 1, weight: 25, cwe: 'id598', nist: nil, milestone: 'Session Management Verification Requirements', title: 'Verify the application never reveals session tokens in URL parameters or error messages.'}, 197 | {id: '3.2.1', section: '3.2', level: 1, weight: 25, cwe: 'id384', nist: ['7.1'], milestone: 'Session Management Verification Requirements', title: 'Verify the application generates a new session token on user authentication. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 198 | {id: '3.2.2', section: '3.2', level: 1, weight: 25, cwe: 'id331', nist: ['7.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that session tokens possess at least 64 bits of entropy. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 199 | {id: '3.2.3', section: '3.2', level: 1, weight: 25, cwe: 'id539', nist: ['7.1'], milestone: 'Session Management Verification Requirements', title: 'Verify the application only stores session tokens in the browser using secure methods such as appropriately secured cookies (see section 3.4) or HTML 5 session storage.'}, 200 | {id: '3.2.4', section: '3.2', level: 2, weight: 50, cwe: 'id331', nist: ['7.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that session token are generated using approved cryptographic algorithms. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 201 | {id: '3.3.1', section: '3.3', level: 1, weight: 25, cwe: 'id613', nist: ['7.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that logout and expiration invalidate the session token, such that the back button or a downstream relying party does not resume an authenticated session, including across relying parties. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 202 | {id: '3.3.2', section: '3.3', level: 1, weight: 25, cwe: 'id613', nist: ['7.2'], milestone: 'Session Management Verification Requirements', title: 'If authenticators permit users to remain logged in, verify that re-authentication occurs periodically both when actively used or after an idle period. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 203 | {id: '3.3.3', section: '3.3', level: 2, weight: 50, cwe: 'id613', nist: nil, milestone: 'Session Management Verification Requirements', title: 'Verify that the application terminates all other active sessions after a successful password change, and that this is effective across the application, federated login (if present), and any relying parties.'}, 204 | {id: '3.3.4', section: '3.3', level: 2, weight: 50, cwe: 'id613', nist: ['7.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that users are able to view and log out of any or all currently active sessions and devices.'}, 205 | {id: '3.4.1', section: '3.4', level: 1, weight: 25, cwe: 'id614', nist: ['7.1.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that cookie-based session tokens have the \'Secure\' attribute set. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 206 | {id: '3.4.2', section: '3.4', level: 1, weight: 25, cwe: 'id1004', nist: ['7.1.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that cookie-based session tokens have the \'HttpOnly\' attribute set. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 207 | {id: '3.4.3', section: '3.4', level: 1, weight: 25, cwe: 'id16', nist: ['7.1.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that cookie-based session tokens utilize the \'SameSite\' attribute to limit exposure to cross-site request forgery attacks. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 208 | {id: '3.4.4', section: '3.4', level: 1, weight: 25, cwe: 'id16', nist: ['7.1.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that cookie-based session tokens use "__Host-" prefix (see references) to provide session cookie confidentiality.'}, 209 | {id: '3.4.5', section: '3.4', level: 1, weight: 25, cwe: 'id16', nist: ['7.1.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that if the application is published under a domain name with other applications that set or use session cookies that might override or disclose the session cookies, set the path attribute in cookie-based session tokens using the most precise path possible. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 210 | {id: '3.5.1', section: '3.5', level: 2, weight: 50, cwe: 'id290', nist: ['7.1.2'], milestone: 'Session Management Verification Requirements', title: 'Verify the application does not treat OAuth and refresh tokens — on their own — as the presence of the subscriber and allows users to terminate trust relationships with linked applications.'}, 211 | {id: '3.5.2', section: '3.5', level: 2, weight: 50, cwe: 'id798', nist: nil, milestone: 'Session Management Verification Requirements', title: 'Verify the application uses session tokens rather than static API secrets and keys, except with legacy implementations.'}, 212 | {id: '3.5.3', section: '3.5', level: 2, weight: 50, cwe: 'id345', nist: nil, milestone: 'Session Management Verification Requirements', title: 'Verify that stateless session tokens use digital signatures, encryption, and other countermeasures to protect against tampering, enveloping, replay, null cipher, and key substitution attacks.'}, 213 | {id: '3.6.1', section: '3.6', level: 3, weight: 100, cwe: 'id613', nist: ['7.2.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that relying parties specify the maximum authentication time to CSPs and that CSPs re-authenticate the subscriber if they haven\'t used a session within that period.'}, 214 | {id: '3.6.2', section: '3.6', level: 3, weight: 100, cwe: 'id613', nist: ['7.2.1'], milestone: 'Session Management Verification Requirements', title: 'Verify that CSPs inform relying parties of the last authentication event, to allow RPs to determine if they need to re-authenticate the user.'}, 215 | {id: '3.7.1', section: '3.7', level: 1, weight: 25, cwe: 'id778', nist: nil, milestone: 'Session Management Verification Requirements', title: 'Verify the application ensures a valid login session or requires re-authentication or secondary verification before allowing any sensitive transactions or account modifications.'}, 216 | {id: '4.1.1', section: '4.1', level: 1, weight: 25, cwe: 'id602', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that the application enforces access control rules on a trusted service layer, especially if client-side access control is present and could be bypassed.'}, 217 | {id: '4.1.2', section: '4.1', level: 1, weight: 25, cwe: 'id639', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that all user and data attributes and policy information used by access controls cannot be manipulated by end users unless specifically authorized.'}, 218 | {id: '4.1.3', section: '4.1', level: 1, weight: 25, cwe: 'id285', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that the principle of least privilege exists - users should only be able to access functions, data files, URLs, controllers, services, and other resources, for which they possess specific authorization. This implies protection against spoofing and elevation of privilege. ([C7](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 219 | {id: '4.1.4', section: '4.1', level: 1, weight: 25, cwe: 'id276', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that the principle of deny by default exists whereby new users/roles start with minimal or no permissions and users/roles do not receive access to new features until access is explicitly assigned. ([C7](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 220 | {id: '4.1.5', section: '4.1', level: 1, weight: 25, cwe: 'id285', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that access controls fail securely including when an exception occurs. ([C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 221 | {id: '4.2.1', section: '4.2', level: 1, weight: 25, cwe: 'id639', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that sensitive data and APIs are protected against direct object attacks targeting creation, reading, updating and deletion of records, such as creating or updating someone else\'s record, viewing everyone\'s records, or deleting all records.'}, 222 | {id: '4.2.2', section: '4.2', level: 1, weight: 25, cwe: 'id352', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that the application or framework enforces a strong anti-CSRF mechanism to protect authenticated functionality, and effective anti-automation or anti-CSRF protects unauthenticated functionality.'}, 223 | {id: '4.3.1', section: '4.3', level: 1, weight: 25, cwe: 'id419', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify administrative interfaces use appropriate multi-factor authentication to prevent unauthorized use.'}, 224 | {id: '4.3.2', section: '4.3', level: 1, weight: 25, cwe: 'id548', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify that directory browsing is disabled unless deliberately desired. Additionally, applications should not allow discovery or disclosure of file or directory metadata, such as Thumbs.db, .DS_Store, .git or .svn folders.'}, 225 | {id: '4.3.3', section: '4.3', level: 2, weight: 50, cwe: 'id732', nist: nil, milestone: 'Access Control Verification Requirements', title: 'Verify the application has additional authorization (such as step up or adaptive authentication) for lower value systems, and / or segregation of duties for high value applications to enforce anti-fraud controls as per the risk of application and past fraud.'}, 226 | {id: '5.1.1', section: '5.1', level: 1, weight: 25, cwe: 'id235', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application has defenses against HTTP parameter pollution attacks, particularly if the application framework makes no distinction about the source of request parameters (GET, POST, cookies, headers, or environment variables).'}, 227 | {id: '5.1.2', section: '5.1', level: 1, weight: 25, cwe: 'id915', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that frameworks protect against mass parameter assignment attacks, or that the application has countermeasures to protect against unsafe parameter assignment, such as marking fields private or similar. ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 228 | {id: '5.1.3', section: '5.1', level: 1, weight: 25, cwe: 'id20', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that all input (HTML form fields, REST requests, URL parameters, HTTP headers, cookies, batch files, RSS feeds, etc) is validated using positive validation (whitelisting). ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 229 | {id: '5.1.4', section: '5.1', level: 1, weight: 25, cwe: 'id20', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that structured data is strongly typed and validated against a defined schema including allowed characters, length and pattern (e.g. credit card numbers or telephone, or validating that two related fields are reasonable, such as checking that suburb and zip/postcode match). ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 230 | {id: '5.1.5', section: '5.1', level: 1, weight: 25, cwe: 'id601', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that URL redirects and forwards only allow whitelisted destinations, or show a warning when redirecting to potentially untrusted content.'}, 231 | {id: '5.2.1', section: '5.2', level: 1, weight: 25, cwe: 'id116', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that all untrusted HTML input from WYSIWYG editors or similar is properly sanitized with an HTML sanitizer library or framework feature. ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 232 | {id: '5.2.2', section: '5.2', level: 1, weight: 25, cwe: 'id138', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that unstructured data is sanitized to enforce safety measures such as allowed characters and length.'}, 233 | {id: '5.2.3', section: '5.2', level: 1, weight: 25, cwe: 'id147', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application sanitizes user input before passing to mail systems to protect against SMTP or IMAP injection.'}, 234 | {id: '5.2.4', section: '5.2', level: 1, weight: 25, cwe: 'id95', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application avoids the use of eval() or other dynamic code execution features. Where there is no alternative, any user input being included must be sanitized or sandboxed before being executed.'}, 235 | {id: '5.2.5', section: '5.2', level: 1, weight: 25, cwe: 'id94', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application protects against template injection attacks by ensuring that any user input being included is sanitized or sandboxed.'}, 236 | {id: '5.2.6', section: '5.2', level: 1, weight: 25, cwe: 'id918', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application protects against SSRF attacks, by validating or sanitizing untrusted data or HTTP file metadata, such as filenames and URL input fields, use whitelisting of protocols, domains, paths and ports.'}, 237 | {id: '5.2.7', section: '5.2', level: 1, weight: 25, cwe: 'id159', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application sanitizes, disables, or sandboxes user-supplied SVG scriptable content, especially as they relate to XSS resulting from inline scripts, and foreignObject.'}, 238 | {id: '5.2.8', section: '5.2', level: 1, weight: 25, cwe: 'id94', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application sanitizes, disables, or sandboxes user-supplied scriptable or expression template language content, such as Markdown, CSS or XSL stylesheets, BBCode, or similar.'}, 239 | {id: '5.3.1', section: '5.3', level: 1, weight: 25, cwe: 'id116', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that output encoding is relevant for the interpreter and context required. For example, use encoders specifically for HTML values, HTML attributes, JavaScript, URL Parameters, HTTP headers, SMTP, and others as the context requires, especially from untrusted inputs (e.g. names with Unicode or apostrophes, such as „Å≠„Åì or O\'Hara). ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 240 | {id: '5.3.10', section: '5.3', level: 1, weight: 25, cwe: 'id643', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application protects against XPath injection or XML injection attacks. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 241 | {id: '5.3.2', section: '5.3', level: 1, weight: 25, cwe: 'id176', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that output encoding preserves the user\'s chosen character set and locale, such that any Unicode character point is valid and safely handled. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 242 | {id: '5.3.3', section: '5.3', level: 1, weight: 25, cwe: 'id79', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that context-aware, preferably automated - or at worst, manual - output escaping protects against reflected, stored, and DOM based XSS. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 243 | {id: '5.3.4', section: '5.3', level: 1, weight: 25, cwe: 'id89', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that data selection or database queries (e.g. SQL, HQL, ORM, NoSQL) use parameterized queries, ORMs, entity frameworks, or are otherwise protected from database injection attacks. ([C3](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 244 | {id: '5.3.5', section: '5.3', level: 1, weight: 25, cwe: 'id89', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that where parameterized or safer mechanisms are not present, context-specific output encoding is used to protect against injection attacks, such as the use of SQL escaping to protect against SQL injection. ([C3, C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 245 | {id: '5.3.6', section: '5.3', level: 1, weight: 25, cwe: 'id830', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application projects against JavaScript or JSON injection attacks, including for eval attacks, remote JavaScript includes, CSP bypasses, DOM XSS, and JavaScript expression evaluation. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 246 | {id: '5.3.7', section: '5.3', level: 1, weight: 25, cwe: 'id943', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application protects against LDAP Injection vulnerabilities, or that specific security controls to prevent LDAP Injection have been implemented. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 247 | {id: '5.3.8', section: '5.3', level: 1, weight: 25, cwe: 'id78', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 248 | {id: '5.3.9', section: '5.3', level: 1, weight: 25, cwe: 'id829', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application protects against Local File Inclusion (LFI) or Remote File Inclusion (RFI) attacks.'}, 249 | {id: '5.4.1', section: '5.4', level: 2, weight: 50, cwe: 'id120', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application uses memory-safe string, safer memory copy and pointer arithmetic to detect or prevent stack, buffer, or heap overflows.'}, 250 | {id: '5.4.2', section: '5.4', level: 2, weight: 50, cwe: 'id134', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that format strings do not take potentially hostile input, and are constant.'}, 251 | {id: '5.4.3', section: '5.4', level: 2, weight: 50, cwe: 'id190', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that sign, range, and input validation techniques are used to prevent integer overflows.'}, 252 | {id: '5.5.1', section: '5.5', level: 1, weight: 25, cwe: 'id502', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that serialized objects use integrity checks or are encrypted to prevent hostile object creation or data tampering. ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 253 | {id: '5.5.2', section: '5.5', level: 1, weight: 25, cwe: 'id611', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that the application correctly restricts XML parsers to only use the most restrictive configuration possible and to ensure that unsafe features such as resolving external entities are disabled to prevent XXE.'}, 254 | {id: '5.5.3', section: '5.5', level: 1, weight: 25, cwe: 'id502', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that deserialization of untrusted data is avoided or is protected in both custom code and third-party libraries (such as JSON, XML and YAML parsers).'}, 255 | {id: '5.5.4', section: '5.5', level: 1, weight: 25, cwe: 'id95', nist: nil, milestone: 'Validation, Sanitization and Encoding Verification Requirements', title: 'Verify that when parsing JSON in browsers or JavaScript-based backends, JSON.parse is used to parse the JSON document. Do not use eval() to parse JSON.'}, 256 | {id: '6.1.1', section: '6.1', level: 2, weight: 50, cwe: 'id311', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that regulated private data is stored encrypted while at rest, such as personally identifiable information (PII), sensitive personal information, or data assessed likely to be subject to EU\'s GDPR.'}, 257 | {id: '6.1.2', section: '6.1', level: 2, weight: 50, cwe: 'id311', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that regulated health data is stored encrypted while at rest, such as medical records, medical device details, or de-anonymized research records.'}, 258 | {id: '6.1.3', section: '6.1', level: 2, weight: 50, cwe: 'id311', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that regulated financial data is stored encrypted while at rest, such as financial accounts, defaults or credit history, tax records, pay history, beneficiaries, or de-anonymized market or research records.'}, 259 | {id: '6.2.1', section: '6.2', level: 1, weight: 25, cwe: 'id310', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that all cryptographic modules fail securely, and errors are handled in a way that does not enable Padding Oracle attacks.'}, 260 | {id: '6.2.2', section: '6.2', level: 2, weight: 50, cwe: 'id327', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that industry proven or government approved cryptographic algorithms, modes, and libraries are used, instead of custom coded cryptography. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 261 | {id: '6.2.3', section: '6.2', level: 2, weight: 50, cwe: 'id326', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that encryption initialization vector, cipher configuration, and block modes are configured securely using the latest advice.'}, 262 | {id: '6.2.4', section: '6.2', level: 2, weight: 50, cwe: 'id326', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that random number, encryption or hashing algorithms, key lengths, rounds, ciphers or modes, can be reconfigured, upgraded, or swapped at any time, to protect against cryptographic breaks. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 263 | {id: '6.2.5', section: '6.2', level: 2, weight: 50, cwe: 'id326', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that known insecure block modes (i.e. ECB, etc.), padding modes (i.e. PKCS#1 v1.5, etc.), ciphers with small block sizes (i.e. Triple-DES, Blowfish, etc.), and weak hashing algorithms (i.e. MD5, SHA1, etc.) are not used unless required for backwards compatibility.'}, 264 | {id: '6.2.6', section: '6.2', level: 2, weight: 50, cwe: 'id326', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that nonces, initialization vectors, and other single use numbers must not be used more than once with a given encryption key. The method of generation must be appropriate for the algorithm being used.'}, 265 | {id: '6.2.7', section: '6.2', level: 3, weight: 100, cwe: 'id326', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that encrypted data is authenticated via signatures, authenticated cipher modes, or HMAC to ensure that ciphertext is not altered by an unauthorized party.'}, 266 | {id: '6.2.8', section: '6.2', level: 3, weight: 100, cwe: 'id385', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that all cryptographic operations are constant-time, with no \'short-circuit\' operations in comparisons, calculations, or returns, to avoid leaking information.'}, 267 | {id: '6.3.1', section: '6.3', level: 2, weight: 50, cwe: 'id338', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that all random numbers, random file names, random GUIDs, and random strings are generated using the cryptographic module\'s approved cryptographically secure random number generator when these random values are intended to be not guessable by an attacker.'}, 268 | {id: '6.3.2', section: '6.3', level: 2, weight: 50, cwe: 'id338', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that random GUIDs are created using the GUID v4 algorithm, and a cryptographically-secure pseudo-random number generator (CSPRNG). GUIDs created using other pseudo-random number generators may be predictable.'}, 269 | {id: '6.3.3', section: '6.3', level: 3, weight: 100, cwe: 'id338', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that random numbers are created with proper entropy even when the application is under heavy load, or that the application degrades gracefully in such circumstances.'}, 270 | {id: '6.4.1', section: '6.4', level: 2, weight: 50, cwe: 'id798', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that a secrets management solution such as a key vault is used to securely create, store, control access to and destroy secrets. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 271 | {id: '6.4.2', section: '6.4', level: 2, weight: 50, cwe: 'id320', nist: nil, milestone: 'Stored Cryptography Verification Requirements', title: 'Verify that key material is not exposed to the application but instead uses an isolated security module like a vault for cryptographic operations. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 272 | {id: '7.1.1', section: '7.1', level: 1, weight: 25, cwe: 'id532', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that the application does not log credentials or payment details. Session tokens should only be stored in logs in an irreversible, hashed form. ([C9, C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 273 | {id: '7.1.2', section: '7.1', level: 1, weight: 25, cwe: 'id532', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that the application does not log other sensitive data as defined under local privacy laws or relevant security policy. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 274 | {id: '7.1.3', section: '7.1', level: 2, weight: 50, cwe: 'id778', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that the application logs security relevant events including successful and failed authentication events, access control failures, deserialization failures and input validation failures. ([C5, C7](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 275 | {id: '7.1.4', section: '7.1', level: 2, weight: 50, cwe: 'id778', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that each log event includes necessary information that would allow for a detailed investigation of the timeline when an event happens. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 276 | {id: '7.2.1', section: '7.2', level: 2, weight: 50, cwe: 'id778', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that all authentication decisions are logged, without storing sensitive session identifiers or passwords. This should include requests with relevant metadata needed for security investigations.'}, 277 | {id: '7.2.2', section: '7.2', level: 2, weight: 50, cwe: 'id285', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that all access control decisions can be logged and all failed decisions are logged. This should include requests with relevant metadata needed for security investigations.'}, 278 | {id: '7.3.1', section: '7.3', level: 2, weight: 50, cwe: 'id117', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that the application appropriately encodes user-supplied data to prevent log injection. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 279 | {id: '7.3.2', section: '7.3', level: 2, weight: 50, cwe: 'id117', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that all events are protected from injection when viewed in log viewing software. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 280 | {id: '7.3.3', section: '7.3', level: 2, weight: 50, cwe: 'id200', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that security logs are protected from unauthorized access and modification. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 281 | {id: '7.3.4', section: '7.3', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that time sources are synchronized to the correct time and time zone. Strongly consider logging only in UTC if systems are global to assist with post-incident forensic analysis. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 282 | {id: '7.4.1', section: '7.4', level: 1, weight: 25, cwe: 'id210', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that a generic message is shown when an unexpected or security sensitive error occurs, potentially with a unique ID which support personnel can use to investigate. ([C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 283 | {id: '7.4.2', section: '7.4', level: 2, weight: 50, cwe: 'id544', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that exception handling (or a functional equivalent) is used across the codebase to account for expected and unexpected error conditions. ([C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 284 | {id: '7.4.3', section: '7.4', level: 2, weight: 50, cwe: 'id460', nist: nil, milestone: 'Error Handling and Logging Verification Requirements', title: 'Verify that a "last resort" error handler is defined which will catch all unhandled exceptions. ([C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 285 | {id: '8.1.1', section: '8.1', level: 2, weight: 50, cwe: 'id524', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify the application protects sensitive data from being cached in server components such as load balancers and application caches.'}, 286 | {id: '8.1.2', section: '8.1', level: 2, weight: 50, cwe: 'id524', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that all cached or temporary copies of sensitive data stored on the server are protected from unauthorized access or purged/invalidated after the authorized user accesses the sensitive data.'}, 287 | {id: '8.1.3', section: '8.1', level: 2, weight: 50, cwe: 'id233', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify the application minimizes the number of parameters in a request, such as hidden fields, Ajax variables, cookies and header values.'}, 288 | {id: '8.1.4', section: '8.1', level: 2, weight: 50, cwe: 'id770', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify the application can detect and alert on abnormal numbers of requests, such as by IP, user, total per hour or day, or whatever makes sense for the application.'}, 289 | {id: '8.1.5', section: '8.1', level: 3, weight: 100, cwe: 'id19', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that regular backups of important data are performed and that test restoration of data is performed.'}, 290 | {id: '8.1.6', section: '8.1', level: 3, weight: 100, cwe: 'id19', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that backups are stored securely to prevent data from being stolen or corrupted.'}, 291 | {id: '8.2.1', section: '8.2', level: 1, weight: 25, cwe: 'id525', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify the application sets sufficient anti-caching headers so that sensitive data is not cached in modern browsers.'}, 292 | {id: '8.2.2', section: '8.2', level: 1, weight: 25, cwe: 'id922', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that data stored in client side storage (such as HTML5 local storage, session storage, IndexedDB, regular cookies or Flash cookies) does not contain sensitive data or PII.'}, 293 | {id: '8.2.3', section: '8.2', level: 1, weight: 25, cwe: 'id922', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that authenticated data is cleared from client storage, such as the browser DOM, after the client or session is terminated.'}, 294 | {id: '8.3.1', section: '8.3', level: 1, weight: 25, cwe: 'id319', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that sensitive data is sent to the server in the HTTP message body or headers, and that query string parameters from any HTTP verb do not contain sensitive data.'}, 295 | {id: '8.3.2', section: '8.3', level: 1, weight: 25, cwe: 'id212', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that users have a method to remove or export their data on demand.'}, 296 | {id: '8.3.3', section: '8.3', level: 1, weight: 25, cwe: 'id285', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that users are provided clear language regarding collection and use of supplied personal information and that users have provided opt-in consent for the use of that data before it is used in any way.'}, 297 | {id: '8.3.4', section: '8.3', level: 1, weight: 25, cwe: 'id200', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that all sensitive data created and processed by the application has been identified, and ensure that a policy is in place on how to deal with sensitive data. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 298 | {id: '8.3.5', section: '8.3', level: 2, weight: 50, cwe: 'id532', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify accessing sensitive data is audited (without logging the sensitive data itself), if the data is collected under relevant data protection directives or where logging of access is required.'}, 299 | {id: '8.3.6', section: '8.3', level: 2, weight: 50, cwe: 'id226', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that sensitive information contained in memory is overwritten as soon as it is no longer required to mitigate memory dumping attacks, using zeroes or random data.'}, 300 | {id: '8.3.7', section: '8.3', level: 2, weight: 50, cwe: 'id327', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that sensitive or private information that is required to be encrypted, is encrypted using approved algorithms that provide both confidentiality and integrity. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 301 | {id: '8.3.8', section: '8.3', level: 2, weight: 50, cwe: 'id285', nist: nil, milestone: 'Data Protection Verification Requirements', title: 'Verify that sensitive personal information is subject to data retention classification, such that old or out of date data is deleted automatically, on a schedule, or as the situation requires.'}, 302 | {id: '9.1.1', section: '9.1', level: 1, weight: 25, cwe: 'id319', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that secured TLS is used for all client connectivity, and does not fall back to insecure or unencrypted protocols. ([C8](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 303 | {id: '9.1.2', section: '9.1', level: 1, weight: 25, cwe: 'id326', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify using online or up to date TLS testing tools that only strong algorithms, ciphers, and protocols are enabled, with the strongest algorithms and ciphers set as preferred.'}, 304 | {id: '9.1.3', section: '9.1', level: 1, weight: 25, cwe: 'id326', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that old versions of SSL and TLS protocols, algorithms, ciphers, and configuration are disabled, such as SSLv2, SSLv3, or TLS 1.0 and TLS 1.1. The latest version of TLS should be the preferred cipher suite.'}, 305 | {id: '9.2.1', section: '9.2', level: 2, weight: 50, cwe: 'id295', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that connections to and from the server use trusted TLS certificates. Where internally generated or self-signed certificates are used, the server must be configured to only trust specific internal CAs and specific self-signed certificates. All others should be rejected.'}, 306 | {id: '9.2.2', section: '9.2', level: 2, weight: 50, cwe: 'id319', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that encrypted communications such as TLS is used for all inbound and outbound connections, including for management ports, monitoring, authentication, API, or web service calls, database, cloud, serverless, mainframe, external, and partner connections. The server must not fall back to insecure or unencrypted protocols.'}, 307 | {id: '9.2.3', section: '9.2', level: 2, weight: 50, cwe: 'id287', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that all encrypted connections to external systems that involve sensitive information or functions are authenticated.'}, 308 | {id: '9.2.4', section: '9.2', level: 2, weight: 50, cwe: 'id299', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that proper certification revocation, such as Online Certificate Status Protocol (OCSP) Stapling, is enabled and configured.'}, 309 | {id: '9.2.5', section: '9.2', level: 3, weight: 100, cwe: 'id544', nist: nil, milestone: 'Communications Verification Requirements', title: 'Verify that backend TLS connection failures are logged.'}, 310 | {id: '10.1.1', section: '10.1', level: 3, weight: 100, cwe: 'id749', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that a code analysis tool is in use that can detect potentially malicious code, such as time functions, unsafe file operations and network connections.'}, 311 | {id: '10.2.1', section: '10.2', level: 2, weight: 50, cwe: 'id359', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application source code and third party libraries do not contain unauthorized phone home or data collection capabilities. Where such functionality exists, obtain the user\'s permission for it to operate before collecting any data.'}, 312 | {id: '10.2.2', section: '10.2', level: 2, weight: 50, cwe: 'id272', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application does not ask for unnecessary or excessive permissions to privacy related features or sensors, such as contacts, cameras, microphones, or location.'}, 313 | {id: '10.2.3', section: '10.2', level: 3, weight: 100, cwe: 'id507', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application source code and third party libraries do not contain back doors, such as hard-coded or additional undocumented accounts or keys, code obfuscation, undocumented binary blobs, rootkits, or anti-debugging, insecure debugging features, or otherwise out of date, insecure, or hidden functionality that could be used maliciously if discovered.'}, 314 | {id: '10.2.4', section: '10.2', level: 3, weight: 100, cwe: 'id511', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application source code and third party libraries does not contain time bombs by searching for date and time related functions.'}, 315 | {id: '10.2.5', section: '10.2', level: 3, weight: 100, cwe: 'id511', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application source code and third party libraries does not contain malicious code, such as salami attacks, logic bypasses, or logic bombs.'}, 316 | {id: '10.2.6', section: '10.2', level: 3, weight: 100, cwe: 'id507', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application source code and third party libraries do not contain Easter eggs or any other potentially unwanted functionality.'}, 317 | {id: '10.3.1', section: '10.3', level: 1, weight: 25, cwe: 'id16', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that if the application has a client or server auto-update feature, updates should be obtained over secure channels and digitally signed. The update code must validate the digital signature of the update before installing or executing the update.'}, 318 | {id: '10.3.2', section: '10.3', level: 1, weight: 25, cwe: 'id353', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application employs integrity protections, such as code signing or sub-resource integrity. The application must not load or execute code from untrusted sources, such as loading includes, modules, plugins, code, or libraries from untrusted sources or the Internet.'}, 319 | {id: '10.3.3', section: '10.3', level: 1, weight: 25, cwe: 'id350', nist: nil, milestone: 'Malicious Code Verification Requirements', title: 'Verify that the application has protection from sub-domain takeovers if the application relies upon DNS entries or DNS sub-domains, such as expired domain names, out of date DNS pointers or CNAMEs, expired projects at public source code repos, or transient cloud APIs, serverless functions, or storage buckets (autogen-bucket-id.cloud.example.com) or similar. Protections can include ensuring that DNS names used by applications are regularly checked for expiry or change.'}, 320 | {id: '11.1.1', section: '11.1', level: 1, weight: 25, cwe: 'id841', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application will only process business logic flows for the same user in sequential step order and without skipping steps.'}, 321 | {id: '11.1.2', section: '11.1', level: 1, weight: 25, cwe: 'id779', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application will only process business logic flows with all steps being processed in realistic human time, i.e. transactions are not submitted too quickly.'}, 322 | {id: '11.1.3', section: '11.1', level: 1, weight: 25, cwe: 'id770', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application has appropriate limits for specific business actions or transactions which are correctly enforced on a per user basis.'}, 323 | {id: '11.1.4', section: '11.1', level: 1, weight: 25, cwe: 'id770', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application has sufficient anti-automation controls to detect and protect against data exfiltration, excessive business logic requests, excessive file uploads or denial of service attacks.'}, 324 | {id: '11.1.5', section: '11.1', level: 1, weight: 25, cwe: 'id841', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application has business logic limits or validation to protect against likely business risks or threats, identified using threat modelling or similar methodologies.'}, 325 | {id: '11.1.6', section: '11.1', level: 2, weight: 50, cwe: 'id367', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application does not suffer from "time of check to time of use" (TOCTOU) issues or other race conditions for sensitive operations.'}, 326 | {id: '11.1.7', section: '11.1', level: 2, weight: 50, cwe: 'id754', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application monitors for unusual events or activity from a business logic perspective. For example, attempts to perform actions out of order or actions which a normal user would never attempt. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 327 | {id: '11.1.8', section: '11.1', level: 2, weight: 50, cwe: 'id390', nist: nil, milestone: 'Business Logic Verification Requirements', title: 'Verify the application has configurable alerting when automated attacks or unusual activity is detected.'}, 328 | {id: '12.1.1', section: '12.1', level: 1, weight: 25, cwe: 'id400', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that the application will not accept large files that could fill up storage or cause a denial of service attack.'}, 329 | {id: '12.1.2', section: '12.1', level: 2, weight: 50, cwe: 'id409', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that compressed files are checked for "zip bombs" - small input files that will decompress into huge files thus exhausting file storage limits.'}, 330 | {id: '12.1.3', section: '12.1', level: 2, weight: 50, cwe: 'id770', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that a file size quota and maximum number of files per user is enforced to ensure that a single user cannot fill up the storage with too many files, or excessively large files.'}, 331 | {id: '12.2.1', section: '12.2', level: 2, weight: 50, cwe: 'id434', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that files obtained from untrusted sources are validated to be of expected type based on the file\'s content.'}, 332 | {id: '12.3.1', section: '12.3', level: 1, weight: 25, cwe: 'id22', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that user-submitted filename metadata is not used directly with system or framework file and URL API to protect against path traversal.'}, 333 | {id: '12.3.2', section: '12.3', level: 1, weight: 25, cwe: 'id73', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that user-submitted filename metadata is validated or ignored to prevent the disclosure, creation, updating or removal of local files (LFI).'}, 334 | {id: '12.3.3', section: '12.3', level: 1, weight: 25, cwe: 'id98', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that user-submitted filename metadata is validated or ignored to prevent the disclosure or execution of remote files (RFI), which may also lead to SSRF.'}, 335 | {id: '12.3.4', section: '12.3', level: 1, weight: 25, cwe: 'id641', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that the application protects against reflective file download (RFD) by validating or ignoring user-submitted filenames in a JSON, JSONP, or URL parameter, the response Content-Type header should be set to text/plain, and the Content-Disposition header should have a fixed filename.'}, 336 | {id: '12.3.5', section: '12.3', level: 1, weight: 25, cwe: 'id78', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that untrusted file metadata is not used directly with system API or libraries, to protect against OS command injection.'}, 337 | {id: '12.3.6', section: '12.3', level: 2, weight: 50, cwe: 'id829', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that the application does not include and execute functionality from untrusted sources, such as unverified content distribution networks, JavaScript libraries, node npm libraries, or server-side DLLs.'}, 338 | {id: '12.4.1', section: '12.4', level: 1, weight: 25, cwe: 'id922', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that files obtained from untrusted sources are stored outside the web root, with limited permissions, preferably with strong validation.'}, 339 | {id: '12.4.2', section: '12.4', level: 1, weight: 25, cwe: 'id509', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that files obtained from untrusted sources are scanned by antivirus scanners to prevent upload of known malicious content.'}, 340 | {id: '12.5.1', section: '12.5', level: 1, weight: 25, cwe: 'id552', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that the web tier is configured to serve only files with specific file extensions to prevent unintentional information and source code leakage. For example, backup files (e.g. .bak), temporary working files (e.g. .swp), compressed files (.zip, .tar.gz, etc) and other extensions commonly used by editors should be blocked unless required.'}, 341 | {id: '12.5.2', section: '12.5', level: 1, weight: 25, cwe: 'id434', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that direct requests to uploaded files will never be executed as HTML/JavaScript content.'}, 342 | {id: '12.6.1', section: '12.6', level: 1, weight: 25, cwe: 'id918', nist: nil, milestone: 'Files and Resources Verification Requirements', title: 'Verify that the web or application server is configured with a whitelist of resources or systems to which the server can send requests or load data/files from.'}, 343 | {id: '13.1.1', section: '13.1', level: 1, weight: 25, cwe: 'id116', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that all application components use the same encodings and parsers to avoid parsing attacks that exploit different URI or file parsing behavior that could be used in SSRF and RFI attacks.'}, 344 | {id: '13.1.2', section: '13.1', level: 1, weight: 25, cwe: 'id419', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that access to administration and management functions is limited to authorized administrators.'}, 345 | {id: '13.1.3', section: '13.1', level: 1, weight: 25, cwe: 'id598', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify API URLs do not expose sensitive information, such as the API key, session tokens etc.'}, 346 | {id: '13.1.4', section: '13.1', level: 2, weight: 50, cwe: 'id285', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that authorization decisions are made at both the URI, enforced by programmatic or declarative security at the controller or router, and at the resource level, enforced by model-based permissions.'}, 347 | {id: '13.1.5', section: '13.1', level: 2, weight: 50, cwe: 'id434', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that requests containing unexpected or missing content types are rejected with appropriate headers (HTTP response status 406 Unacceptable or 415 Unsupported Media Type).'}, 348 | {id: '13.2.1', section: '13.2', level: 1, weight: 25, cwe: 'id650', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that enabled RESTful HTTP methods are a valid choice for the user or action, such as preventing normal users using DELETE or PUT on protected API or resources.'}, 349 | {id: '13.2.2', section: '13.2', level: 1, weight: 25, cwe: 'id20', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that JSON schema validation is in place and verified before accepting input.'}, 350 | {id: '13.2.3', section: '13.2', level: 1, weight: 25, cwe: 'id352', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that RESTful web services that utilize cookies are protected from Cross-Site Request Forgery via the use of at least one or more of the following: triple or double submit cookie pattern (see [references](https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet)), CSRF nonces, or ORIGIN request header checks.'}, 351 | {id: '13.2.4', section: '13.2', level: 2, weight: 50, cwe: 'id779', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that REST services have anti-automation controls to protect against excessive calls, especially if the API is unauthenticated.'}, 352 | {id: '13.2.5', section: '13.2', level: 2, weight: 50, cwe: 'id436', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that REST services explicitly check the incoming Content-Type to be the expected one, such as application/xml or application/JSON.'}, 353 | {id: '13.2.6', section: '13.2', level: 2, weight: 50, cwe: 'id345', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that the message headers and payload are trustworthy and not modified in transit. Requiring strong encryption for transport (TLS only) may be sufficient in many cases as it provides both confidentiality and integrity protection. Per-message digital signatures can provide additional assurance on top of the transport protections for high-security applications but bring with them additional complexity and risks to weigh against the benefits.'}, 354 | {id: '13.3.1', section: '13.3', level: 1, weight: 25, cwe: 'id20', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that XSD schema validation takes place to ensure a properly formed XML document, followed by validation of each input field before any processing of that data takes place.'}, 355 | {id: '13.3.2', section: '13.3', level: 2, weight: 50, cwe: 'id345', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that the message payload is signed using WS-Security to ensure reliable transport between client and service.'}, 356 | {id: '13.4.1', section: '13.4', level: 2, weight: 50, cwe: 'id770', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that query whitelisting or a combination of depth limiting and amount limiting should be used to prevent GraphQL or data layer expression denial of service (DoS) as a result of expensive, nested queries. For more advanced scenarios, query cost analysis should be used.'}, 357 | {id: '13.4.2', section: '13.4', level: 2, weight: 50, cwe: 'id285', nist: nil, milestone: 'API and Web Service Verification Requirements', title: 'Verify that GraphQL or other data layer authorization logic should be implemented at the business logic layer instead of the GraphQL layer.'}, 358 | {id: '14.1.1', section: '14.1', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the application build and deployment processes are performed in a secure and repeatable way, such as CI / CD automation, automated configuration management, and automated deployment scripts.'}, 359 | {id: '14.1.2', section: '14.1', level: 2, weight: 50, cwe: 'id120', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that compiler flags are configured to enable all available buffer overflow protections and warnings, including stack randomization, data execution prevention, and to break the build if an unsafe pointer, memory, format string, integer, or string operations are found.'}, 360 | {id: '14.1.3', section: '14.1', level: 2, weight: 50, cwe: 'id16', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that server configuration is hardened as per the recommendations of the application server and frameworks in use.'}, 361 | {id: '14.1.4', section: '14.1', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the application, configuration, and all dependencies can be re-deployed using automated deployment scripts, built from a documented and tested runbook in a reasonable time, or restored from backups in a timely fashion.'}, 362 | {id: '14.1.5', section: '14.1', level: 3, weight: 100, cwe: '-1', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that authorized administrators can verify the integrity of all security-relevant configurations to detect tampering.'}, 363 | {id: '14.2.1', section: '14.2', level: 1, weight: 25, cwe: 'id1026', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that all components are up to date, preferably using a dependency checker during build or compile time. ([C2](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 364 | {id: '14.2.2', section: '14.2', level: 1, weight: 25, cwe: 'id1002', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that all unneeded features, documentation, samples, configurations are removed, such as sample applications, platform documentation, and default or example users.'}, 365 | {id: '14.2.3', section: '14.2', level: 1, weight: 25, cwe: 'id714', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that if application assets, such as JavaScript libraries, CSS stylesheets or web fonts, are hosted externally on a content delivery network (CDN) or external provider, Subresource Integrity (SRI) is used to validate the integrity of the asset.'}, 366 | {id: '14.2.4', section: '14.2', level: 2, weight: 50, cwe: 'id829', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that third party components come from pre-defined, trusted and continually maintained repositories. ([C2](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 367 | {id: '14.2.5', section: '14.2', level: 2, weight: 50, cwe: '-1', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that an inventory catalog is maintained of all third party libraries in use. ([C2](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 368 | {id: '14.2.6', section: '14.2', level: 2, weight: 50, cwe: 'id265', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the attack surface is reduced by sandboxing or encapsulating third party libraries to expose only the required behaviour into the application. ([C2](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))'}, 369 | {id: '14.3.1', section: '14.3', level: 1, weight: 25, cwe: 'id209', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that web or application server and framework error messages are configured to deliver user actionable, customized responses to eliminate any unintended security disclosures.'}, 370 | {id: '14.3.2', section: '14.3', level: 1, weight: 25, cwe: 'id497', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that web or application server and application framework debug modes are disabled in production to eliminate debug features, developer consoles, and unintended security disclosures.'}, 371 | {id: '14.3.3', section: '14.3', level: 1, weight: 25, cwe: 'id200', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the HTTP headers or any part of the HTTP response do not expose detailed version information of system components.'}, 372 | {id: '14.4.1', section: '14.4', level: 1, weight: 25, cwe: 'id173', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that every HTTP response contains a content type header specifying a safe character set (e.g., UTF-8, ISO 8859-1).'}, 373 | {id: '14.4.2', section: '14.4', level: 1, weight: 25, cwe: 'id116', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that all API responses contain Content-Disposition: attachment; filename="api.json" (or other appropriate filename for the content type).'}, 374 | {id: '14.4.3', section: '14.4', level: 1, weight: 25, cwe: 'id1021', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that a content security policy (CSPv2) is in place that helps mitigate impact for XSS attacks like HTML, DOM, JSON, and JavaScript injection vulnerabilities.'}, 375 | {id: '14.4.4', section: '14.4', level: 1, weight: 25, cwe: 'id116', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that all responses contain X-Content-Type-Options: nosniff.'}, 376 | {id: '14.4.5', section: '14.4', level: 1, weight: 25, cwe: 'id523', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that HTTP Strict Transport Security headers are included on all responses and for all subdomains, such as Strict-Transport-Security: max-age=15724800; includeSubdomains.'}, 377 | {id: '14.4.6', section: '14.4', level: 1, weight: 25, cwe: 'id116', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that a suitable "Referrer-Policy" header is included, such as "no-referrer" or "same-origin".'}, 378 | {id: '14.4.7', section: '14.4', level: 1, weight: 25, cwe: 'id346', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that a suitable X-Frame-Options or Content-Security-Policy: frame-ancestors header is in use for sites where content should not be embedded in a third-party site.'}, 379 | {id: '14.5.1', section: '14.5', level: 1, weight: 25, cwe: 'id749', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the application server only accepts the HTTP methods in use by the application or API, including pre-flight OPTIONS.'}, 380 | {id: '14.5.2', section: '14.5', level: 1, weight: 25, cwe: 'id346', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the supplied Origin header is not used for authentication or access control decisions, as the Origin header can easily be changed by an attacker.'}, 381 | {id: '14.5.3', section: '14.5', level: 1, weight: 25, cwe: 'id346', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that the cross-domain resource sharing (CORS) Access-Control-Allow-Origin header uses a strict white-list of trusted domains to match against and does not support the "null" origin.'}, 382 | {id: '14.5.4', section: '14.5', level: 2, weight: 50, cwe: 'id306', nist: nil, milestone: 'Configuration Verification Requirements', title: 'Verify that HTTP headers added by a trusted proxy or SSO devices, such as a bearer token, are authenticated by the application.'} 383 | ] 384 | 385 | issues.each do |issue| 386 | db.execute("INSERT INTO ISSUES VALUES (?, ?, ?, ?, ?, ?, ?)", issue[:id], issue[:section], issue[:level], issue[:weight], issue[:cwe], issue[:milestone], issue[:title]) 387 | end -------------------------------------------------------------------------------- /create_masvs_database.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # -*- coding: utf-8 -*- 3 | require 'sqlite3' 4 | db = SQLite3::Database.open('masvs.db') 5 | db.execute('''CREATE TABLE ISSUES 6 | (ID TEXT PRIMARY KEY NOT NULL, 7 | LEVEL INT NOT NULL, 8 | WEIGHT INT NOT NULL, 9 | MILESTONE TEXT NOT NULL, 10 | TITLE TEXT NOT NULL);''') 11 | 12 | issues = [ 13 | {id: '1.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'All app components are identified and known to be needed.'}, 14 | {id: '1.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'Security controls are never enforced only on the client side, but on the respective remote endpoints.'}, 15 | {id: '1.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'A high-level architecture for the mobile app and all connected remote services has been defined and security has been addressed in that architecture.'}, 16 | {id: '1.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'Data considered sensitive in the context of the mobile app is clearly identified.'}, 17 | {id: '1.5', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'All app components are defined in terms of the business functions and/or security functions they provide.'}, 18 | {id: '1.6', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'A threat model for the mobile app and the associated remote services has been produced that identifies potential threats and countermeasures.'}, 19 | {id: '1.7', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'All security controls have a centralized implementation.'}, 20 | {id: '1.8', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'There is an explicit policy for how cryptographic keys (if any) are managed, and the lifecycle of cryptographic keys is enforced. Ideally, follow a key management standard such as NIST SP 800-57.'}, 21 | {id: '1.9', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'A mechanism for enforcing updates of the mobile app exists.'}, 22 | {id: '1.10', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Architecture, Design and Threat Modeling Requirements', title: 'Security is addressed within all parts of the software development lifecycle.'}, 23 | {id: '2.1', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'System credential storage facilities need to be used to store sensitive data, such as PII, user credentials or cryptographic keys.'}, 24 | {id: '2.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data should be stored outside of the app container or system credential storage facilities.'}, 25 | {id: '2.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data is written to application logs.'}, 26 | {id: '2.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data is shared with third parties unless it is a necessary part of the architecture.'}, 27 | {id: '2.5', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'The keyboard cache is disabled on text inputs that process sensitive data.'}, 28 | {id: '2.6', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data is exposed via IPC mechanisms.'}, 29 | {id: '2.7', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data, such as passwords or pins, is exposed through the user interface.'}, 30 | {id: '2.8', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data is included in backups generated by the mobile operating system.'}, 31 | {id: '2.9', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'The app removes sensitive data from views when moved to the background.'}, 32 | {id: '2.10', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'The app does not hold sensitive data in memory longer than necessary, and memory is cleared explicitly after use.'}, 33 | {id: '2.11', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'The app enforces a minimum device-access-security policy, such as requiring the user to set a device passcode.'}, 34 | {id: '2.12', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'The app educates the user about the types of personally identifiable information processed, as well as security best practices the user should follow in using the app.'}, 35 | {id: '2.13', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'No sensitive data should be stored locally on the mobile device. Instead, data should be retrieved from a remote endpoint when needed and only be kept in memory.'}, 36 | {id: '2.14', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'If sensitive data is still required to be stored locally, it should be encrypted using a key derived from hardware backed storage which requires authentication.'}, 37 | {id: '2.15', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Data Storage and Privacy Requirements', title: 'The app\’s local storage should be wiped after an excessive number of failed authentication attempts.'}, 38 | {id: '3.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Cryptography Requirements', title: 'The app does not rely on symmetric cryptography with hardcoded keys as a sole method of encryption.'}, 39 | {id: '3.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Cryptography Requirements', title: 'The app uses proven implementations of cryptographic primitives.'}, 40 | {id: '3.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Cryptography Requirements', title: 'The app uses cryptographic primitives that are appropriate for the particular use-case, configured with parameters that adhere to industry best practices.'}, 41 | {id: '3.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Cryptography Requirements', title: 'The app does not use cryptographic protocols or algorithms that are widely considered depreciated for security purposes.'}, 42 | {id: '3.5', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Cryptography Requirements', title: 'The app doesn\'t re-use the same cryptographic key for multiple purposes.'}, 43 | {id: '3.6', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Cryptography Requirements', title: 'All random values are generated using a sufficiently secure random number generator.'}, 44 | {id: '4.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'If the app provides users access to a remote service, some form of authentication, such as username/password authentication, is performed at the remote endpoint.'}, 45 | {id: '4.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'If stateful session management is used, the remote endpoint uses randomly generated session identifiers to authenticate client requests without sending the user\'s credentials.'}, 46 | {id: '4.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'If stateless token-based authentication is used, the server provides a token that has been signed using a secure algorithm.'}, 47 | {id: '4.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'The remote endpoint terminates the existing session when the user logs out.'}, 48 | {id: '4.5', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'A password policy exists and is enforced at the remote endpoint.'}, 49 | {id: '4.6', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'The remote endpoint implements a mechanism to protect against the submission of credentials an excessive number of times.'}, 50 | {id: '4.7', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'Sessions are invalidated at the remote endpoint after a predefined period of inactivity and access tokens expire.'}, 51 | {id: '4.8', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'Biometric authentication, if any, is not event-bound (i.e. using an API that simply returns "true" or "false"). Instead, it is based on unlocking the keychain/keystore.'}, 52 | {id: '4.9', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'A second factor of authentication exists at the remote endpoint and the 2FA requirement is consistently enforced.'}, 53 | {id: '4.10', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'Sensitive transactions require step-up authentication.'}, 54 | {id: '4.11', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Authentication and Session Management Requirements', title: 'The app informs the user of all sensitive activities with their account. Users are able to view a list of devices, view contextual information (IP address, location, etc.), and to block specific devices.'}, 55 | {id: '5.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Network Communication Requirements', title: 'Data is encrypted on the network using TLS. The secure channel is used consistently throughout the app.'}, 56 | {id: '5.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Network Communication Requirements', title: 'The TLS settings are in line with current best practices, or as close as possible if the mobile operating system does not support the recommended standards.'}, 57 | {id: '5.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Network Communication Requirements', title: 'The app verifies the X.509 certificate of the remote endpoint when the secure channel is established. Only certificates signed by a trusted CA are accepted.'}, 58 | {id: '5.4', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Network Communication Requirements', title: 'The app either uses its own certificate store, or pins the endpoint certificate or public key, and subsequently does not establish connections with endpoints that offer a different certificate or key, even if signed by a trusted CA.'}, 59 | {id: '5.5', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Network Communication Requirements', title: 'The app doesn\'t rely on a single insecure communication channel (email or SMS) for critical operations, such as enrollments and account recovery.'}, 60 | {id: '5.6', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Network Communication Requirements', title: 'The app only depends on up-to-date connectivity and security libraries.'}, 61 | {id: '6.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'The app only requests the minimum set of permissions necessary.'}, 62 | {id: '6.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'All inputs from external sources and the user are validated and if necessary sanitized. This includes data received via the UI, IPC mechanisms such as intents, custom URLs, and network sources.'}, 63 | {id: '6.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'The app does not export sensitive functionality via custom URL schemes, unless these mechanisms are properly protected.'}, 64 | {id: '6.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'The app does not export sensitive functionality through IPC facilities, unless these mechanisms are properly protected.'}, 65 | {id: '6.5', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'JavaScript is disabled in WebViews unless explicitly required. '}, 66 | {id: '6.6', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'WebViews are configured to allow only the minimum set of protocol handlers required (ideally, only https is supported). Potentially dangerous handlers, such as file, tel and app-id, are disabled.'}, 67 | {id: '6.7', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'If native methods of the app are exposed to a WebView, verify that the WebView only renders JavaScript contained within the app package.'}, 68 | {id: '6.8', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'Object deserialization, if any, is implemented using safe serialization APIs.'}, 69 | {id: '6.9', level: 1, weight: 25, cwe: nil, nist: nil, milestone: 'Platform Interaction Requirements', title: 'The app protects itself against screen overlay attacks. (Android only)'}, 70 | {id: '7.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'The app is signed and provisioned with a valid certificate, of which the private key is properly protected.'}, 71 | {id: '7.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'The app has been built in release mode, with settings appropriate for a release build (e.g. non-debuggable).'}, 72 | {id: '7.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'Debugging symbols have been removed from native binaries.'}, 73 | {id: '7.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'Debugging code has been removed, and the app does not log verbose errors or debugging messages.'}, 74 | {id: '7.5', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'All third party components used by the mobile app, such as libraries and frameworks, are identified, and checked for known vulnerabilities.'}, 75 | {id: '7.6', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'The app catches and handles possible exceptions.'}, 76 | {id: '7.7', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'Error handling logic in security controls denies access by default.'}, 77 | {id: '7.8', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'In unmanaged code, memory is allocated, freed and used securely.'}, 78 | {id: '7.9', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Code Quality and Build Setting Requirements', title: 'Free security features offered by the toolchain, such as byte-code minification, stack protection, PIE support and automatic reference counting, are activated.'}, 79 | {id: '8.1', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app detects, and responds to, the presence of a rooted or jailbroken device either by alerting the user or terminating the app.'}, 80 | {id: '8.2', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app prevents debugging and/or detects, and responds to, a debugger being attached. All available debugging protocols must be covered.'}, 81 | {id: '8.3', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app detects, and responds to, tampering with executable files and critical data within its own sandbox.'}, 82 | {id: '8.4', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app detects, and responds to, the presence of widely used reverse engineering tools and frameworks on the device.'}, 83 | {id: '8.5', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app detects, and responds to, being run in an emulator.'}, 84 | {id: '8.6', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app detects, and responds to, tampering the code and data in its own memory space.'}, 85 | {id: '8.7', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app implements multiple mechanisms in each defense category (8.1 to 8.6). Note that resiliency scales with the amount, diversity of the originality of the mechanisms used.'}, 86 | {id: '8.8', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The detection mechanisms trigger responses of different types, including delayed and stealthy responses.'}, 87 | {id: '8.9', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'Obfuscation is applied to programmatic defenses, which in turn impede de-obfuscation via dynamic analysis.'}, 88 | {id: '8.10', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'The app implements a \'device binding\' functionality using a device fingerprint derived from multiple properties unique to the device.'}, 89 | {id: '8.11', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'All executable files and libraries belonging to the app are either encrypted on the file level and/or important code and data segments inside the executables are encrypted or packed. Trivial static analysis does not reveal important code or data.'}, 90 | {id: '8.12', level: 2, weight: 50, cwe: nil, nist: nil, milestone: 'Resilience Requirements', title: 'If the goal of obfuscation is to protect sensitive computations, an obfuscation scheme is used that is both appropriate for the particular task and robust against manual and automated de-obfuscation methods, considering currently published research. The effectiveness of the obfuscation scheme must be verified through manual testing. Note that hardware-based isolation features are preferred over obfuscation whenever possible.'} 91 | ] 92 | 93 | issues.each do |issue| 94 | db.execute("INSERT INTO ISSUES VALUES (?, ?, ?, ?, ?)", issue[:id], issue[:level], issue[:weight], issue[:milestone], issue[:title]) 95 | end -------------------------------------------------------------------------------- /cwe.rb: -------------------------------------------------------------------------------- 1 | module CWE 2 | 3 | ID16 = {title: 'CWE CATEGORY: Configuration', 'link': 'https://cwe.mitre.org/data/definitions/16.html'} 4 | ID19 = {title: 'CWE CATEGORY: Data Processing Errors', 'link': 'https://cwe.mitre.org/data/definitions/19.html'} 5 | ID20 = {title: 'CWE-20: Improper Input Validation', 'link': 'https://cwe.mitre.org/data/definitions/20.html'} 6 | ID22 = {title: 'CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\'Path Traversal\')', 'link': 'https://cwe.mitre.org/data/definitions/22.html'} 7 | ID73 = {title: 'CWE-73: External Control of File Name or Path', 'link': 'https://cwe.mitre.org/data/definitions/73.html'} 8 | ID78 = {title: 'CWE-78: Improper Neutralization of Special Elements used in an OS Command (\'OS Command Injection\')', 'link': 'https://cwe.mitre.org/data/definitions/78.html'} 9 | ID79 = {title: 'CWE-79: Improper Neutralization of Input During Web Page Generation (\'Cross-site Scripting\')', 'link': 'https://cwe.mitre.org/data/definitions/79.html'} 10 | ID89 = {title: 'CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\'SQL Injection\')', 'link': 'https://cwe.mitre.org/data/definitions/89.html'} 11 | ID94 = {title: 'CWE-94: Improper Control of Generation of Code (\'Code Injection\')', 'link': 'https://cwe.mitre.org/data/definitions/94.html'} 12 | ID95 = {title: 'CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code (\'Eval Injection\')', 'link': 'https://cwe.mitre.org/data/definitions/95.html'} 13 | ID98 = {title: 'CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program (\'PHP Remote File Inclusion\')', 'link': 'https://cwe.mitre.org/data/definitions/98.html'} 14 | ID116 = {title: 'CWE-116: Improper Encoding or Escaping of Output', 'link': 'https://cwe.mitre.org/data/definitions/116.html'} 15 | ID117 = {title: 'CWE-117: Improper Output Neutralization for Logs', 'link': 'https://cwe.mitre.org/data/definitions/117.html'} 16 | ID120 = {title: 'CWE-120: Buffer Copy without Checking Size of Input (\'Classic Buffer Overflow\')', 'link': 'https://cwe.mitre.org/data/definitions/120.html'} 17 | ID134 = {title: 'CWE-134: Use of Externally-Controlled Format String', 'link': 'https://cwe.mitre.org/data/definitions/134.html'} 18 | ID138 = {title: 'CWE-138: Improper Neutralization of Special Elements', 'link': 'https://cwe.mitre.org/data/definitions/138.html'} 19 | ID147 = {title: 'CWE-147: Improper Neutralization of Input Terminators', 'link': 'https://cwe.mitre.org/data/definitions/147.html'} 20 | ID159 = {title: 'CWE-159: Failure to Sanitize Special Element', 'link': 'https://cwe.mitre.org/data/definitions/159.html'} 21 | ID173 = {title: 'CWE-173: Improper Handling of Alternate Encoding', 'link': 'https://cwe.mitre.org/data/definitions/173.html'} 22 | ID176 = {title: 'CWE-176: Improper Handling of Unicode Encoding', 'link': 'https://cwe.mitre.org/data/definitions/176.html'} 23 | ID190 = {title: 'CWE-190: Integer Overflow or Wraparound', 'link': 'https://cwe.mitre.org/data/definitions/190.html'} 24 | ID200 = {title: 'CWE-200: Information Exposure', 'link': 'https://cwe.mitre.org/data/definitions/200.html'} 25 | ID209 = {title: 'CWE-209: Information Exposure Through an Error Message', 'link': 'https://cwe.mitre.org/data/definitions/209.html'} 26 | ID210 = {title: 'CWE-210: Information Exposure Through Self-generated Error Message', 'link': 'https://cwe.mitre.org/data/definitions/210.html'} 27 | ID212 = {title: 'CWE-212: Improper Cross-boundary Removal of Sensitive Data', 'link': 'https://cwe.mitre.org/data/definitions/212.html'} 28 | ID226 = {title: 'CWE-226: Sensitive Information Uncleared Before Release', 'link': 'https://cwe.mitre.org/data/definitions/226.html'} 29 | ID233 = {title: 'CWE-233: Improper Handling of Parameters', 'link': 'https://cwe.mitre.org/data/definitions/233.html'} 30 | ID235 = {title: 'CWE-235: Improper Handling of Extra Parameters', 'link': 'https://cwe.mitre.org/data/definitions/235.html'} 31 | ID250 = {title: 'CWE-250: Execution with Unnecessary Privileges', 'link': 'httpsCWE-250: Execution with Unnecessary Privileges://cwe.mitre.org/data/definitions/250.html'} 32 | ID255 = {title: 'CWE CATEGORY: Credentials Management', 'link': 'https://cwe.mitre.org/data/definitions/255.html'} 33 | ID256 = {title: 'CWE-256: Unprotected Storage of Credentials', 'link': 'https://cwe.mitre.org/data/definitions/256.html'} 34 | ID263 = {title: 'CWE-263: Password Aging with Long Expiration', 'link': 'https://cwe.mitre.org/data/definitions/263.html'} 35 | ID265 = {title: 'CWE CATEGORY: Privilege / Sandbox Issues', 'link': 'https://cwe.mitre.org/data/definitions/265.html'} 36 | ID272 = {title: 'CWE-272: Least Privilege Violation', 'link': 'https://cwe.mitre.org/data/definitions/272.html'} 37 | ID275 = {title: 'CWE CATEGORY: Permission Issues', 'link': 'https://cwe.mitre.org/data/definitions/275.html'} 38 | ID276 = {title: 'CWE-276: Incorrect Default Permissions', 'link': 'https://cwe.mitre.org/data/definitions/276.html'} 39 | ID284 = {title: 'CWE-284: Improper Access Control', 'link': 'https://cwe.mitre.org/data/definitions/284.html'} 40 | ID285 = {title: 'CWE-285: Improper Authorization', 'link': 'https://cwe.mitre.org/data/definitions/285.html'} 41 | ID287 = {title: 'CWE-287: Improper Authentication', 'link': 'https://cwe.mitre.org/data/definitions/287.html'} 42 | ID290 = {title: 'CWE-290: Authentication Bypass by Spoofing', 'link': 'https://cwe.mitre.org/data/definitions/290.html'} 43 | ID295 = {title: 'CWE-295: Improper Certificate ValidationCWE-299: Improper Check for Certificate Revocation', 'link': 'https://cwe.mitre.org/data/definitions/295.html'} 44 | ID299 = {title: 'CWE-299: Improper Check for Certificate Revocation', 'link': 'https://cwe.mitre.org/data/definitions/299.html'} 45 | ID304 = {title: 'CWE-304: Missing Critical Step in Authentication', 'link': 'https://cwe.mitre.org/data/definitions/304.html'} 46 | ID306 = {title: 'CWE-306: Missing Authentication for Critical Function', 'link': 'https://cwe.mitre.org/data/definitions/306.html'} 47 | ID307 = {title: 'CWE-307: Improper Restriction of Excessive Authentication Attempts', 'link': 'https://cwe.mitre.org/data/definitions/307.html'} 48 | ID308 = {title: 'CWE-308: Use of Single-factor Authentication', 'link': 'https://cwe.mitre.org/data/definitions/308.html'} 49 | ID310 = {title: 'CWE CATEGORY: Cryptographic Issues', 'link': 'https://cwe.mitre.org/data/definitions/310.html'} 50 | ID311 = {title: 'CWE-311: Missing Encryption of Sensitive Data', 'link': 'https://cwe.mitre.org/data/definitions/311.html'} 51 | ID319 = {title: 'CWE-319: Cleartext Transmission of Sensitive Information', 'link': 'https://cwe.mitre.org/data/definitions/319.html'} 52 | ID320 = {title: 'CWE CATEGORY: Key Management Errors', 'link': 'https://cwe.mitre.org/data/definitions/320.html'} 53 | ID326 = {title: 'CWE-326: Inadequate Encryption Strength', 'link': 'https://cwe.mitre.org/data/definitions/326.html'} 54 | ID327 = {title: 'CWE-327: Use of a Broken or Risky Cryptographic Algorithm', 'link': 'https://cwe.mitre.org/data/definitions/327.html'} 55 | ID330 = {title: 'CWE-330: Use of Insufficiently Random Values', 'link': 'https://cwe.mitre.org/data/definitions/330.html'} 56 | ID331 = {title: 'CWE-331: Insufficient Entropy', 'link': 'https://cwe.mitre.org/data/definitions/331.html'} 57 | ID338 = {title: 'CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)', 'link': 'https://cwe.mitre.org/data/definitions/338.html'} 58 | ID345 = {title: 'CWE-345: Insufficient Verification of Data Authenticity', 'link': 'https://cwe.mitre.org/data/definitions/345.html'} 59 | ID346 = {title: 'CWE-346: Origin Validation Error', 'link': 'https://cwe.mitre.org/data/definitions/346.html'} 60 | ID350 = {title: 'CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action', 'link': 'https://cwe.mitre.org/data/definitions/350.html'} 61 | ID352 = {title: 'CWE-352: Cross-Site Request Forgery (CSRF)', 'link': 'https://cwe.mitre.org/data/definitions/352.html'} 62 | ID353 = {title: 'CWE-353: Missing Support for Integrity Check', 'link': 'https://cwe.mitre.org/data/definitions/353.html'} 63 | ID359 = {title: 'CWE-359: Exposure of Private Information (\'Privacy Violation\')', 'link': 'https://cwe.mitre.org/data/definitions/359.html'} 64 | ID362 = {title: 'CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization (\'Race Condition\')', 'link': 'https://cwe.mitre.org/data/definitions/362.html'} 65 | ID367 = {title: 'CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition', 'link': 'https://cwe.mitre.org/data/definitions/367.html'} 66 | ID384 = {title: 'CWE-384: Session Fixation', 'link': 'https://cwe.mitre.org/data/definitions/384.html'} 67 | ID385 = {title: 'CWE-385: Covert Timing Channel', 'link': 'https://cwe.mitre.org/data/definitions/385.html'} 68 | ID390 = {title: 'CWE-390: Detection of Error Condition Without Action', 'link': 'https://cwe.mitre.org/data/definitions/390.html'} 69 | ID400 = {title: 'CWE-400: Uncontrolled Resource Consumption', 'link': 'https://cwe.mitre.org/data/definitions/400.html'} 70 | ID409 = {title: 'CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)', 'link': 'https://cwe.mitre.org/data/definitions/409.html'} 71 | ID419 = {title: 'CWE-419: Unprotected Primary Channel', 'link': 'https://cwe.mitre.org/data/definitions/419.html'} 72 | ID434 = {title: 'CWE-434: Unrestricted Upload of File with Dangerous Type', 'link': 'https://cwe.mitre.org/data/definitions/434.html'} 73 | ID436 = {title: 'CWE-436: Interpretation Conflict', 'link': 'https://cwe.mitre.org/data/definitions/436.html'} 74 | ID460 = {title: 'CWE-460: Improper Cleanup on Thrown Exception', 'link': 'https://cwe.mitre.org/data/definitions/460.html'} 75 | ID477 = {title: 'CWE-477: Use of Obsolete Function', 'link': 'https://cwe.mitre.org/data/definitions/477.html'} 76 | ID494 = {title: 'CWE-494: Download of Code Without Integrity Check', 'link': 'https://cwe.mitre.org/data/definitions/494.html'} 77 | ID497 = {title: 'CWE-497: Exposure of System Data to an Unauthorized Control Sphere', 'link': 'https://cwe.mitre.org/data/definitions/497.html'} 78 | ID502 = {title: 'CWE-502: Deserialization of Untrusted Data', 'link': 'https://cwe.mitre.org/data/definitions/502.html'} 79 | ID507 = {title: 'CWE-507: Trojan Horse', 'link': 'https://cwe.mitre.org/data/definitions/507.html'} 80 | ID509 = {title: 'CWE-509: Replicating Malicious Code (Virus or Worm)', 'link': 'https://cwe.mitre.org/data/definitions/509.html'} 81 | ID511 = {title: 'CWE-511: Logic/Time Bomb', 'link': 'https://cwe.mitre.org/data/definitions/511.html'} 82 | ID521 = {title: 'CWE-521: Weak Password Requirements', 'link': 'https://cwe.mitre.org/data/definitions/521.html'} 83 | ID522 = {title: 'CWE-522: Insufficiently Protected Credentials', 'link': 'https://cwe.mitre.org/data/definitions/522.html'} 84 | ID523 = {title: 'CWE-523: Unprotected Transport of Credentials', 'link': 'https://cwe.mitre.org/data/definitions/523.html'} 85 | ID524 = {title: 'CWE-524: Information Exposure Through Caching', 'link': 'https://cwe.mitre.org/data/definitions/524.html'} 86 | ID525 = {title: 'CWE-525: Information Exposure Through Browser Caching', 'link': 'https://cwe.mitre.org/data/definitions/525.html'} 87 | ID532 = {title: 'CWE-532: Inclusion of Sensitive Information in Log Files', 'link': 'https://cwe.mitre.org/data/definitions/532.html'} 88 | ID539 = {title: 'CWE-539: Information Exposure Through Persistent Cookies', 'link': 'https://cwe.mitre.org/data/definitions/539.html'} 89 | ID544 = {title: 'CWE-544: Missing Standardized Error Handling Mechanism', 'link': 'https://cwe.mitre.org/data/definitions/544.html'} 90 | ID548 = {title: 'CWE-548: Information Exposure Through Directory Listing', 'link': 'https://cwe.mitre.org/data/definitions/548.html'} 91 | ID552 = {title: 'CWE-552: Files or Directories Accessible to External Parties', 'link': 'https://cwe.mitre.org/data/definitions/552.html'} 92 | ID598 = {title: 'CWE-598: Information Exposure Through Query Strings in GET Request', 'link': 'https://cwe.mitre.org/data/definitions/598.html'} 93 | ID601 = {title: 'CWE-601: URL Redirection to Untrusted Site (\'Open Redirect\')', 'link': 'https://cwe.mitre.org/data/definitions/601.html'} 94 | ID602 = {title: 'CWE-602: Client-Side Enforcement of Server-Side Security', 'link': 'https://cwe.mitre.org/data/definitions/602.html'} 95 | ID611 = {title: 'CWE-611: Improper Restriction of XML External Entity Reference', 'link': 'https://cwe.mitre.org/data/definitions/611.html'} 96 | ID613 = {title: 'CWE-613: Insufficient Session Expiration', 'link': 'https://cwe.mitre.org/data/definitions/613.html'} 97 | ID614 = {title: 'CWE-614: Sensitive Cookie in HTTPS Session Without \'Secure\' Attribute', 'link': 'https://cwe.mitre.org/data/definitions/614.html'} 98 | ID620 = {title: 'CWE-620: Unverified Password Change', 'link': 'https://cwe.mitre.org/data/definitions/620.html'} 99 | ID637 = {title: 'CWE-637: Unnecessary Complexity in Protection Mechanism (Not Using \'Economy of Mechanism\')', 'link': 'https://cwe.mitre.org/data/definitions/637.html'} 100 | ID639 = {title: 'CWE-639: Authorization Bypass Through User-Controlled Key', 'link': 'https://cwe.mitre.org/data/definitions/639.html'} 101 | ID640 = {title: 'CWE-640: Weak Password Recovery Mechanism for Forgotten Password', 'link': 'https://cwe.mitre.org/data/definitions/640.html'} 102 | ID641 = {title: 'CWE-641: Improper Restriction of Names for Files and Other Resources', 'link': 'https://cwe.mitre.org/data/definitions/641.html'} 103 | ID643 = {title: 'CWE-643: Improper Neutralization of Data within XPath Expressions (\'XPath Injection\')', 'link': 'https://cwe.mitre.org/data/definitions/643.html'} 104 | ID646 = {title: 'CWE-646: Reliance on File Name or Extension of Externally-Supplied File', 'link': 'https://cwe.mitre.org/data/definitions/646.html'} 105 | ID650 = {title: 'CWE-650: Trusting HTTP Permission Methods on the Server Side', 'link': 'https://cwe.mitre.org/data/definitions/650.html'} 106 | ID714 = {title: 'CWE CATEGORY: OWASP Top Ten 2007 Category A3 - Malicious File Execution', 'link': 'https://cwe.mitre.org/data/definitions/714.html'} 107 | ID732 = {title: 'CWE-732: Incorrect Permission Assignment for Critical Resource', 'link': 'https://cwe.mitre.org/data/definitions/732.html'} 108 | ID749 = {title: 'CWE-749: Exposed Dangerous Method or Function', 'link': 'https://cwe.mitre.org/data/definitions/749.html'} 109 | ID754 = {title: 'CWE-754: Improper Check for Unusual or Exceptional Conditions', 'link': 'https://cwe.mitre.org/data/definitions/754.html'} 110 | ID770 = {title: 'CWE-770: Allocation of Resources Without Limits or Throttling', 'link': 'https://cwe.mitre.org/data/definitions/770.html'} 111 | ID778 = {title: 'CWE-778: Insufficient Logging', 'link': 'https://cwe.mitre.org/data/definitions/778.html'} 112 | ID779 = {title: 'CWE-779: Logging of Excessive Data', 'link': 'https://cwe.mitre.org/data/definitions/779.html'} 113 | ID798 = {title: 'CWE-798: Use of Hard-coded Credentials', 'link': 'https://cwe.mitre.org/data/definitions/798.html'} 114 | ID829 = {title: 'CWE-829: Inclusion of Functionality from Untrusted Control Sphere', 'link': 'https://cwe.mitre.org/data/definitions/829.html'} 115 | ID830 = {title: 'CWE-830: Inclusion of Web Functionality from an Untrusted Source', 'link': 'https://cwe.mitre.org/data/definitions/830.html'} 116 | ID841 = {title: 'CWE-841: Improper Enforcement of Behavioral Workflow', 'link': 'https://cwe.mitre.org/data/definitions/841.html'} 117 | ID915 = {title: 'CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes', 'link': 'https://cwe.mitre.org/data/definitions/915.html'} 118 | ID916 = {title: 'CWE-916: Use of Password Hash With Insufficient Computational Effort', 'link': 'https://cwe.mitre.org/data/definitions/916.html'} 119 | ID918 = {title: 'CWE-918: Server-Side Request Forgery (SSRF)', 'link': 'https://cwe.mitre.org/data/definitions/918.html'} 120 | ID922 = {title: 'CWE-922: Insecure Storage of Sensitive Information', 'link': 'https://cwe.mitre.org/data/definitions/922.html'} 121 | ID923 = {title: 'CWE-923: Improper Restriction of Communication Channel to Intended Endpoints', 'link': 'https://cwe.mitre.org/data/definitions/923.html'} 122 | ID943 = {title: 'CWE-943: Improper Neutralization of Special Elements in Data Query Logic', 'link': 'https://cwe.mitre.org/data/definitions/943.html'} 123 | ID1002 = {title: 'CWE CATEGORY: SFP Secondary Cluster: Unexpected Entry Points', 'link': 'https://cwe.mitre.org/data/definitions/1002.html'} 124 | ID1004 = {title: 'CWE-1004: Sensitive Cookie Without \'HttpOnly\' Flag', 'link': 'https://cwe.mitre.org/data/definitions/1004.html'} 125 | ID1009 = {title: 'CWE CATEGORY: Audit', 'link': 'https://cwe.mitre.org/data/definitions/1009.html'} 126 | ID1021 = {title: 'CWE-1021: Improper Restriction of Rendered UI Layers or Frames', 'link': 'https://cwe.mitre.org/data/definitions/1021.html'} 127 | ID1026 = {title: 'CWE VIEW: Weaknesses in OWASP Top Ten (2017)', 'link': 'https://cwe.mitre.org/data/definitions/1026.html'} 128 | ID1029 = {title: 'CWE CATEGORY: OWASP Top Ten 2017 Category A3 - Sensitive Data Exposure', 'link': 'https://cwe.mitre.org/data/definitions/1029.html'} 129 | ID1053 = {title: 'CWE-1053: Missing Documentation for Design', 'link': 'https://cwe.mitre.org/data/definitions/1053.html'} 130 | ID1059 = {title: 'CWE-1059: Incomplete Documentation', 'link': 'https://cwe.mitre.org/data/definitions/1059.html'} 131 | ID1104 = {title: 'CWE-1104: Use of Unmaintained Third Party Components', 'link': 'https://cwe.mitre.org/data/definitions/1104.html'} 132 | ID1110 = {title: 'CWE-1110: Incomplete Design Documentation', 'link': 'https://cwe.mitre.org/data/definitions/1110.html'} 133 | end -------------------------------------------------------------------------------- /docs/images/asvs-issues.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spyd3r/owasp-asvs-github/0c10b5d2da4333151305a4534c08277092da1528/docs/images/asvs-issues.png -------------------------------------------------------------------------------- /docs/images/asvs-label-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spyd3r/owasp-asvs-github/0c10b5d2da4333151305a4534c08277092da1528/docs/images/asvs-label-search.png -------------------------------------------------------------------------------- /docs/images/asvs-milestones.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spyd3r/owasp-asvs-github/0c10b5d2da4333151305a4534c08277092da1528/docs/images/asvs-milestones.png -------------------------------------------------------------------------------- /docs/images/asvs-project-board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spyd3r/owasp-asvs-github/0c10b5d2da4333151305a4534c08277092da1528/docs/images/asvs-project-board.png -------------------------------------------------------------------------------- /masvs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spyd3r/owasp-asvs-github/0c10b5d2da4333151305a4534c08277092da1528/masvs.db --------------------------------------------------------------------------------