The Web Security Testing Guide is a comprehensive Open Source guide to testing the security of web applications and web services.
Welcome to the official repository for the Open Worldwide Application Security Project® (OWASP®) Web Security Testing Guide (WSTG). The WSTG is a comprehensive guide to testing the security of web applications and web services. Created by the collaborative efforts of security professionals and dedicated volunteers, the WSTG provides a framework of best practices used by penetration testers and organizations all over the world.
We are currently working on release version 5.0. You can read the current document here on GitHub.
[!NOTE] Version 5.0 flattens the former chapter 4 (Web Application Security Testing) into top-level chapters, and chapter folders now use two-digit prefixes so they sort correctly. Test identifiers (
WSTG-<category>-<number>) are unchanged. Links to the older layout keep working through the versioned releases (e.g. v4.2), butlatestlinks will break.
v4.2 v5.0 4.0 Introduction and Objectives 4. Introduction and Objectives 4.1 Information Gathering 5. Information Gathering 4.2 Configuration and Deployment Management 6. Configuration and Deployment Management 4.3 Identity Management 7. Identity Management 4.4 Authentication 8. Authentication 4.5 Authorization 9. Authorization 4.6 Session Management 10. Session Management 4.7 Input Validation 11. Injection 4.8 Error Handling 12. Error Handling 4.9 Weak Cryptography 13. Weak Cryptography 4.10 Business Logic 14. Business Logic 4.11 Client-side 15. Client-side 4.12 API Testing 16. API Testing (new) 17. WebAssembly Testing 5. Reporting 18. Reporting 6. Appendix 19. Appendix
For the last stable release, check release 4.2. Also available online.
Each scenario has an identifier in the format WSTG-<category>-<number>, where: 'category' is a 4 character upper case string that identifies the type of test or weakness, and 'number' is a zero-padded numeric value from 01 to 99. For example:WSTG-INFO-02 is the second Information Gathering test.
The identifiers may change between versions. Therefore, it is preferable that other documents, reports, or tools use the format: WSTG-<version>-<category>-<number>, where: 'version' is the version tag with punctuation removed. For example: WSTG-v42-INFO-02 would be understood to mean specifically the second Information Gathering test from version 4.2.
If identifiers are used without including the <version> element, they should be assumed to refer to the latest Web Security Testing Guide content. As the guide grows and changes this becomes problematic, which is why writers or developers should include the version element.
Linking to Web Security Testing Guide scenarios should be done using versioned links not stable or latest, which will change with time. However, it is the project team's intention that versioned links do not change. For example: https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/01-Information_Gathering/02-Fingerprint_Web_Server.html. Note: the v42 element refers to version 4.2.
We are actively inviting new contributors! To start, read the contribution guide.
First time here? Here are GitHub's suggestions for first-time contributors to this repository.
This project is only possible thanks to the work of many dedicated volunteers. Everyone is encouraged to help in ways large and small. Here are a few ways you can help:
To learn how to contribute successfully, read the contribution guide.
Successful contributors appear on the project's list of authors, reviewers, or editors.
We're easy to find on Slack:
Feel free to ask questions, suggest ideas, or share your best recipes.
You can @ us on 𝕏 (Twitter) @owasp_wstg.
You can also join our Google Group.
[Documentation Proposal] Testing for XSS Through Base64 Decoding After Input Validation
https://github.com/OWASP/wstg/issues/1731
Labels: revise
[Content Enhancement] Add Testing Guidance for Upload Metadata Expiration, Cross-Field File Reuse, and MIME Sniffing
https://github.com/OWASP/wstg/issues/1723
Labels: new
[Proposal] Updating Chapter 4 to cover vulnerabilities caused by AI web integrations
https://github.com/OWASP/wstg/issues/1606
Labels: new, revise
Draft Notes for v5.0 Release
https://github.com/OWASP/wstg/issues/1393
Labels: new, repo, work_in_progress
XSS Reorganization
https://github.com/OWASP/wstg/issues/591
Labels: enhancement
Map WSTG to ASVS and determine coverage and possible knowledge gaps
https://github.com/OWASP/wstg/issues/261
Labels: integration
Thank you for considering contributing to the Web Security Testing Guide (WSTG)!
Here are some ways you can make a helpful contribution. The Open Source Guide for why and how to contribute is also a good resource. You will need a GitHub account in order to help out.
This project would not be possible without the contributions of writers in the security community! Our authors help to keep the WSTG relevant and useful for everyone.
Whether you are submitting a new section or adding information to an existing one, please follow the template example. The template sections are explained here.
You can open a pull request directly. An issue is not required when the change is ready to review. Issues help when you want to discuss scope first, claim planned work, or pick up existing ideas:
git checkout -b new-testing-for-foo. If you are working from an issue, new-<issue number> (such as new-164) is also fine.Keeping the project up to date and looking spiffy is a group effort! The WSTG is a constantly updated document and benefits from your technical or editorial review.
You can open a pull request directly for technical or editorial fixes. An issue is not required. Issues help when you want to discuss the change first or pick up labeled work:
help wanted label to work on, or open an issue to discuss something larger. If you claim an issue, post a comment and request to be assigned to it.git checkout -b fix-weak-lockout-wording. If you are working from an issue, fix-<issue number> (such as fix-88) is also fine.If you have expertise in any topic covered by the WSTG, your technical review is encouraged. Please ensure that articles:
Grammarians assemble! The WSTG welcomes your improvements in the areas of grammar, formatting, word choice, and brevity. All changes should adhere to the style guide.
Please don't hesitate to make as many changes as you see fit, especially if you notice that existing content does not match the article template materials.
Due to challenges with syncing images and removed content, the WSTG is no longer tackling in-bound translation efforts directly.
At this time we suggest that you start another repository in which to tackle translations of a specific language. Once you've produced a PDF for a given version of the guide we'll be happy to attach it to the appropriate release. Simply open an issue here asking us to do so.
Also we're willing to list your translation repository, just let us know where it is.
Issues are optional when you already have a fix ready to submit as a pull request. Use an issue to report a problem, suggest a change for discussion, or track work before a PR exists.
Create an issue using the appropriate template.
Choose a short, descriptive title. Briefly explain what you think needs changing. Among other things, your suggestions may include grammar or spelling errors, or address insufficient or outdated content.
Here are the steps for creating and submitting a Pull Request (PR) that we can quickly review and merge. A linked issue is not required.
master.