Skip to content

Files

Latest commit

0055ef2 · Jun 14, 2019

History

History
287 lines (287 loc) · 63.5 KB

owasp-asvs-4.0.csv

File metadata and controls

287 lines (287 loc) · 63.5 KB
1
SectionNameItemComplianceDescriptionL1L2L3CWENIST
2
V1Architecture1.1.1N/AVerify 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))XX
3
V1Architecture1.1.2N/AVerify 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.XX1053
4
V1Architecture1.1.3N/AVerify 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"XX1110
5
V1Architecture1.1.4N/AVerify documentation and justification of all the application's trust boundaries, components, and significant data flows.XX1059
6
V1Architecture1.1.5N/AVerify definition and security analysis of the application's high-level architecture and all connected remote services. ([C1](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XX1059
7
V1Architecture1.1.6N/AVerify 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))XX637
8
V1Architecture1.1.7N/AVerify availability of a secure coding checklist, security requirements, guideline, or policy to all developers and testers.XX637
9
V1Architecture1.10.1YesVerify 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.XX284
10
V1Architecture1.11.1N/AVerify the definition and documentation of all application components in terms of the business or security functions they provide.XX1059
11
V1Architecture1.11.2N/AVerify that all high-value business logic flows, including authentication, session management and access control, do not share unsynchronized state.XX362
12
V1Architecture1.11.3N/AVerify 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.X367
13
V1Architecture1.12.1N/AVerify that user-uploaded files are stored outside of the web root.XX552
14
V1Architecture1.12.2N/AVerify 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.XX646
15
V1Architecture1.14.1N/AVerify 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.XX923
16
V1Architecture1.14.2N/AVerify that if deploying binaries to untrusted devices makes use of binary signatures, trusted connections, and verified endpoints.XX494
17
V1Architecture1.14.3N/AVerify that the build pipeline warns of out-of-date or insecure components and takes appropriate actions.XX1104
18
V1Architecture1.14.4N/AVerify 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.XX
19
V1Architecture1.14.5N/AVerify 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))XX265
20
V1Architecture1.14.6N/AVerify 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.XX477
21
V1Architecture1.2.1N/AVerify 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))XX250
22
V1Architecture1.2.2N/AVerify 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))XX306
23
V1Architecture1.2.3N/AVerify 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.XX306
24
V1Architecture1.2.4N/AVerify 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.XX306
25
V1Architecture1.4.1N/AVerify that trusted enforcement points such as at access control gateways, servers, and serverless functions enforce access controls. Never enforce access controls on the client.XX602
26
V1Architecture1.4.2N/AVerify that the chosen access control solution is flexible enough to meet the application's needs.XX284
27
V1Architecture1.4.3N/AVerify 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.XX272
28
V1Architecture1.4.4N/AVerify 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))XX284
29
V1Architecture1.4.5N/AVerify 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))XX275
30
V1Architecture1.5.1N/AVerify 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.XX1029
31
V1Architecture1.5.2N/AVerify 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.XX502
32
V1Architecture1.5.3N/AVerify that input validation is enforced on a trusted service layer. ([C5](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XX602
33
V1Architecture1.5.4N/AVerify 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))XX116
34
V1Architecture1.6.1N/AVerify 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.XX320
35
V1Architecture1.6.2N/AVerify that consumers of cryptographic services protect key material and other secrets by using key vaults or API based alternatives.XX320
36
V1Architecture1.6.3N/AVerify that all keys and passwords are replaceable and are part of a well-defined process to re-encrypt sensitive data.XX320
37
V1Architecture1.6.4N/AVerify 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.XX320
38
V1Architecture1.7.1N/AVerify 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))XX1009
39
V1Architecture1.7.2N/AVerify 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))XX
40
V1Architecture1.8.1N/AVerify that all sensitive data is identified and classified into protection levels.XX
41
V1Architecture1.8.2N/AVerify 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.XX
42
V1Architecture1.9.1N/AVerify 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))XX319
43
V1Architecture1.9.2N/AVerify 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.XX295
44
V2Authentication2.1.1YesVerify that user set passwords are at least 12 characters in length. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX5215.1.1.2
45
V2Authentication2.1.10YesVerify that there are no periodic credential rotation or password history requirements.XXX2635.1.1.2
46
V2Authentication2.1.11YesVerify that "paste" functionality, browser password helpers, and external password managers are permitted.XXX5215.1.1.2
47
V2Authentication2.1.12NoVerify 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.XXX5215.1.1.2
48
V2Authentication2.1.2YesVerify that passwords 64 characters or longer are permitted. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX5215.1.1.2
49
V2Authentication2.1.3YesVerify 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))XXX5215.1.1.2
50
V2Authentication2.1.4NoVerify 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.XXX5215.1.1.2
51
V2Authentication2.1.5YesVerify users can change their password.XXX6205.1.1.2
52
V2Authentication2.1.6YesVerify that password change functionality requires the user's current and new password.XXX6205.1.1.2
53
V2Authentication2.1.7YesVerify 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))XXX5215.1.1.2
54
V2Authentication2.1.8Verify that a password strength meter is provided to help users set a stronger password.XXX5215.1.1.2
55
V2Authentication2.1.9YesVerify 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))XXX5215.1.1.2
56
V2Authentication2.10.1Verify that integration secrets do not rely on unchanging passwords, such as API keys or shared privileged accounts.OS assistedHSM2875.1.1.1
57
V2Authentication2.10.2Verify that if passwords are required, the credentials are not a default account.OS assistedHSM2555.1.1.1
58
V2Authentication2.10.3Verify that passwords are stored with sufficient protection to prevent offline recovery attacks, including local system access.OS assistedHSM5225.1.1.1
59
V2Authentication2.10.4Verify 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.OS assistedHSM798
60
V2Authentication2.2.1Verify 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.XXX3075.2.2 / 5.1.1.2 / 5.1.4.2 / 5.1.5.2
61
V2Authentication2.2.2Verify 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.XXX3045.2.10
62
V2Authentication2.2.3Verify 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.XXX620
63
V2Authentication2.2.4Verify 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.X3085.2.5
64
V2Authentication2.2.5Verify that where a credential service provider (CSP) and the application verifying authentication are separated, mutually authenticated TLS is in place between the two endpoints.X3195.2.6
65
V2Authentication2.2.6Verify replay resistance through the mandated use of OTP devices, cryptographic authenticators, or lookup codes.X3085.2.8
66
V2Authentication2.2.7Verify 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.X3085.2.9
67
V2Authentication2.3.1Verify 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.XXX3305.1.1.2 / A.3
68
V2Authentication2.3.2Verify that enrollment and use of subscriber-provided authentication devices are supported, such as a U2F or FIDO tokens.XX3086.1.3
69
V2Authentication2.3.3Verify that renewal instructions are sent with sufficient time to renew time bound authenticators.XX2876.1.4
70
V2Authentication2.4.1Verify 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))XX9165.1.1.2
71
V2Authentication2.4.2Verify 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))XX9165.1.1.2
72
V2Authentication2.4.3Verify 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))XX9165.1.1.2
73
V2Authentication2.4.4Verify 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))XX9165.1.1.2
74
V2Authentication2.4.5Verify 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).XX9165.1.1.2
75
V2Authentication2.5.1Verify 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))XXX6405.1.1.2
76
V2Authentication2.5.2Verify password hints or knowledge-based authentication (so-called "secret questions") are not present.XXX6405.1.1.2
77
V2Authentication2.5.3Verify 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))XXX6405.1.1.2
78
V2Authentication2.5.4Verify shared or default accounts are not present (e.g. "root","admin", or "sa").XXX165.1.1.2 / A.3
79
V2Authentication2.5.5Verify that if an authentication factor is changed or replaced, that the user is notified of this event.XXX3046.1.2.3
80
V2Authentication2.5.6Verify 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))XXX6405.1.1.2
81
V2Authentication2.5.7Verify that if OTP or multi-factor authentication factors are lost, that evidence of identity proofing is performed at the same level as during enrollment.XX3086.1.2.3
82
V2Authentication2.6.1Verify that lookup secrets can be used only once.XX3085.1.2.2
83
V2Authentication2.6.2Verify 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.XX3305.1.2.2
84
V2Authentication2.6.3Verify that lookup secrets are resistant to offline attacks, such as predictable values.XX3105.1.2.2
85
V2Authentication2.7.1Verify 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.XXX2875.1.3.2
86
V2Authentication2.7.2Verify that the out of band verifier expires out of band authentication requests, codes, or tokens after 10 minutes.XXX2875.1.3.2
87
V2Authentication2.7.3Verify that the out of band verifier authentication requests, codes, or tokens are only usable once, and only for the original authentication request.XXX2875.1.3.2
88
V2Authentication2.7.4Verify that the out of band authenticator and verifier communicates over a secure independent channel.XXX5235.1.3.2
89
V2Authentication2.7.5Verify that the out of band verifier retains only a hashed version of the authentication code.XX2565.1.3.2
90
V2Authentication2.7.6Verify 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).XX3105.1.3.2
91
V2Authentication2.8.1Verify that time-based OTPs have a defined lifetime before expiring.XXX6135.1.4.2 / 5.1.5.2
92
V2Authentication2.8.2Verify 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.XX3205.1.4.2 / 5.1.5.2
93
V2Authentication2.8.3Verify that approved cryptographic algorithms are used in the generation, seeding, and verification.XX3265.1.4.2 / 5.1.5.2
94
V2Authentication2.8.4Verify that time-based OTP can be used only once within the validity period.XX2875.1.4.2 / 5.1.5.2
95
V2Authentication2.8.5Verify 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.XX2875.1.5.2
96
V2Authentication2.8.6Verify 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.XX6135.2.1
97
V2Authentication2.8.7Verify that biometric authenticators are limited to use only as secondary factors in conjunction with either something you have and something you know.oX3085.2.3
98
V2Authentication2.9.1Verify 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.XX3205.1.7.2
99
V2Authentication2.9.2Verify that the challenge nonce is at least 64 bits in length, and statistically unique or unique over the lifetime of the cryptographic device.XX3305.1.7.2
100
V2Authentication2.9.3Verify that approved cryptographic algorithms are used in the generation, seeding, and verification.XX3275.1.7.2
101
V3Session3.1.1Verify the application never reveals session tokens in URL parameters or error messages.XXX598
102
V3Session3.2.1Verify the application generates a new session token on user authentication. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX3847.1
103
V3Session3.2.2Verify that session tokens possess at least 64 bits of entropy. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX3317.1
104
V3Session3.2.3Verify 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.XXX5397.1
105
V3Session3.2.4Verify that session token are generated using approved cryptographic algorithms. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XX3317.1
106
V3Session3.3.1Verify 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))XXX6137.1
107
V3Session3.3.2If 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))30 days12 hours or 30 minutes of inactivity, 2FA optional12 hours or 15 minutes of inactivity, with 2FA6137.2
108
V3Session3.3.3Verify 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.XX613
109
V3Session3.3.4Verify that users are able to view and log out of any or all currently active sessions and devices.XX6137.1
110
V3Session3.4.1Verify that cookie-based session tokens have the 'Secure' attribute set. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX6147.1.1
111
V3Session3.4.2Verify that cookie-based session tokens have the 'HttpOnly' attribute set. ([C6](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX10047.1.1
112
V3Session3.4.3Verify 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))XXX167.1.1
113
V3Session3.4.4Verify that cookie-based session tokens use "__Host-" prefix (see references) to provide session cookie confidentiality.XXX167.1.1
114
V3Session3.4.5Verify 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))XXX167.1.1
115
V3Session3.5.1Verify 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.XX2907.1.2
116
V3Session3.5.2Verify the application uses session tokens rather than static API secrets and keys, except with legacy implementations.XX798
117
V3Session3.5.3Verify that stateless session tokens use digital signatures, encryption, and other countermeasures to protect against tampering, enveloping, replay, null cipher, and key substitution attacks.XX345
118
V3Session3.6.1Verify 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.X6137.2.1
119
V3Session3.6.2Verify that CSPs inform relying parties of the last authentication event, to allow RPs to determine if they need to re-authenticate the user.X6137.2.1
120
V3Session3.7.1Verify the application ensures a valid login session or requires re-authentication or secondary verification before allowing any sensitive transactions or account modifications.XXX778
121
V4Access4.1.1Verify that the application enforces access control rules on a trusted service layer, especially if client-side access control is present and could be bypassed.XXX602
122
V4Access4.1.2Verify that all user and data attributes and policy information used by access controls cannot be manipulated by end users unless specifically authorized.XXX639
123
V4Access4.1.3Verify 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))XXX285
124
V4Access4.1.4Verify 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))XXX276
125
V4Access4.1.5Verify that access controls fail securely including when an exception occurs. ([C10](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX285
126
V4Access4.2.1Verify 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.XXX639
127
V4Access4.2.2Verify 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.XXX352
128
V4Access4.3.1Verify administrative interfaces use appropriate multi-factor authentication to prevent unauthorized use.XXX419
129
V4Access4.3.2Verify 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.XXX548
130
V4Access4.3.3Verify 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.XX732
131
V5Validation5.1.1Verify 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).XXX235
132
V5Validation5.1.2Verify 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))XXX915
133
V5Validation5.1.3Verify 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))XXX20
134
V5Validation5.1.4Verify 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))XXX20
135
V5Validation5.1.5Verify that URL redirects and forwards only allow whitelisted destinations, or show a warning when redirecting to potentially untrusted content.XXX601
136
V5Validation5.2.1Verify 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))XXX116
137
V5Validation5.2.2Verify that unstructured data is sanitized to enforce safety measures such as allowed characters and length.XXX138
138
V5Validation5.2.3Verify that the application sanitizes user input before passing to mail systems to protect against SMTP or IMAP injection.XXX147
139
V5Validation5.2.4Verify 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.XXX95
140
V5Validation5.2.5Verify that the application protects against template injection attacks by ensuring that any user input being included is sanitized or sandboxed.XXX94
141
V5Validation5.2.6Verify 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.XXX918
142
V5Validation5.2.7Verify that the application sanitizes, disables, or sandboxes user-supplied SVG scriptable content, especially as they relate to XSS resulting from inline scripts, and foreignObject.XXX159
143
V5Validation5.2.8Verify 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.XXX94
144
V5Validation5.3.1Verify 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))XXX116
145
V5Validation5.3.10Verify that the application protects against XPath injection or XML injection attacks. ([C4](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XXX643
146
V5Validation5.3.2Verify 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))XXX176
147
V5Validation5.3.3Verify 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))XXX79
148
V5Validation5.3.4Verify 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))XXX89
149
V5Validation5.3.5Verify 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))XXX89
150
V5Validation5.3.6Verify 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))XXX830
151
V5Validation5.3.7Verify 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))XXX943
152
V5Validation5.3.8Verify 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))XXX78
153
V5Validation5.3.9Verify that the application protects against Local File Inclusion (LFI) or Remote File Inclusion (RFI) attacks.XXX829
154
V5Validation5.4.1Verify that the application uses memory-safe string, safer memory copy and pointer arithmetic to detect or prevent stack, buffer, or heap overflows.XX120
155
V5Validation5.4.2Verify that format strings do not take potentially hostile input, and are constant.XX134
156
V5Validation5.4.3Verify that sign, range, and input validation techniques are used to prevent integer overflows.XX190
157
V5Validation5.5.1Verify 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))XXX502
158
V5Validation5.5.2Verify 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.XXX611
159
V5Validation5.5.3Verify 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).XXX502
160
V5Validation5.5.4Verify 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.XXX95
161
V6Cryptography6.1.1Verify 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.XX311
162
V6Cryptography6.1.2Verify that regulated health data is stored encrypted while at rest, such as medical records, medical device details, or de-anonymized research records.XX311
163
V6Cryptography6.1.3Verify 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.XX311
164
V6Cryptography6.2.1Verify that all cryptographic modules fail securely, and errors are handled in a way that does not enable Padding Oracle attacks.XXX310
165
V6Cryptography6.2.2Verify 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))XX327
166
V6Cryptography6.2.3Verify that encryption initialization vector, cipher configuration, and block modes are configured securely using the latest advice.XX326
167
V6Cryptography6.2.4Verify 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))XX326
168
V6Cryptography6.2.5Verify 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.XX326
169
V6Cryptography6.2.6Verify 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.XX326
170
V6Cryptography6.2.7Verify that encrypted data is authenticated via signatures, authenticated cipher modes, or HMAC to ensure that ciphertext is not altered by an unauthorized party.X326
171
V6Cryptography6.2.8Verify that all cryptographic operations are constant-time, with no 'short-circuit' operations in comparisons, calculations, or returns, to avoid leaking information.X385
172
V6Cryptography6.3.1Verify 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.XX338
173
V6Cryptography6.3.2Verify 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.XX338
174
V6Cryptography6.3.3Verify 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.X338
175
V6Cryptography6.4.1Verify 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))XX798
176
V6Cryptography6.4.2Verify 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))XX320
177
V7Error7.1.1Verify 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))XXX532
178
V7Error7.1.2Verify 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))XXX532
179
V7Error7.1.3Verify 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))XX778
180
V7Error7.1.4Verify 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))XX778
181
V7Error7.2.1Verify that all authentication decisions are logged, without storing sensitive session identifiers or passwords. This should include requests with relevant metadata needed for security investigations.XX778
182
V7Error7.2.2Verify 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.XX285
183
V7Error7.3.1Verify 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))XX117
184
V7Error7.3.2Verify 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))XX117
185
V7Error7.3.3Verify that security logs are protected from unauthorized access and modification. ([C9](https://www.owasp.org/index.php/OWASP_Proactive_Controls#tab=Formal_Numbering))XX200
186
V7Error7.3.4Verify 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))XX
187
V7Error7.4.1Verify 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))XXX210
188
V7Error7.4.2Verify 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))XX544
189
V7Error7.4.3Verify 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))XX460
190
V8Data8.1.1Verify the application protects sensitive data from being cached in server components such as load balancers and application caches.XX524
191
V8Data8.1.2Verify 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.XX524
192
V8Data8.1.3Verify the application minimizes the number of parameters in a request, such as hidden fields, Ajax variables, cookies and header values.XX233
193
V8Data8.1.4Verify 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.XX770
194
V8Data8.1.5Verify that regular backups of important data are performed and that test restoration of data is performed.X19
195
V8Data8.1.6Verify that backups are stored securely to prevent data from being stolen or corrupted.X19
196
V8Data8.2.1Verify the application sets sufficient anti-caching headers so that sensitive data is not cached in modern browsers.XXX525
197
V8Data8.2.2Verify 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.XXX922
198
V8Data8.2.3Verify that authenticated data is cleared from client storage, such as the browser DOM, after the client or session is terminated.XXX922
199
V8Data8.3.1Verify 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.XXX319
200
V8Data8.3.2Verify that users have a method to remove or export their data on demand.XXX212
201
V8Data8.3.3Verify 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.XXX285
202
V8Data8.3.4Verify 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))XXX200