From bbbd4c3ac87bf5ff0fb2b080cff4890d66ed0269 Mon Sep 17 00:00:00 2001 From: WD Snoeijer <88512452+dsnoeijer@users.noreply.github.com> Date: Fri, 7 Oct 2022 04:17:00 +0200 Subject: [PATCH] docs: fix linter errors for security.md (#47688) PR Close #47688 --- aio/content/guide/security.md | 76 ++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/aio/content/guide/security.md b/aio/content/guide/security.md index 7946336b92f..1b10a62d52c 100644 --- a/aio/content/guide/security.md +++ b/aio/content/guide/security.md @@ -3,7 +3,7 @@ This topic describes Angular's built-in protections against common web-application vulnerabilities and attacks such as cross-site scripting attacks. It doesn't cover application-level security, such as authentication and authorization. -For more information about the attacks and mitigations described below, see [OWASP Guide Project](https://www.owasp.org/index.php/Category:OWASP_Guide_Project). +For more information about the attacks and mitigations described below, see the [Open Web Application Security Project (OWASP) Guide](https://www.owasp.org/index.php/Category:OWASP_Guide_Project). You can run the in Stackblitz and download the code from there. @@ -27,8 +27,8 @@ For more information about how Google handles security issues, see [Google's sec | Practices | Details | |:--- |:--- | -| Keep current with the latest Angular library releases | We regularly update the Angular libraries, and these updates might fix security defects discovered in previous versions. Check the Angular [change log](https://github.com/angular/angular/blob/main/CHANGELOG.md) for security-related updates. | -| Don't modify your copy of Angular | Private, customized versions of Angular tend to fall behind the current version and might not include important security fixes and enhancements. Instead, share your Angular improvements with the community and make a pull request. | +| Keep current with the latest Angular library releases | The Angular libraries get regular updates, and these updates might fix security defects discovered in previous versions. Check the Angular [change log](https://github.com/angular/angular/blob/main/CHANGELOG.md) for security-related updates. | +| Don't alter your copy of Angular | Private, customized versions of Angular tend to fall behind the current version and might not include important security fixes and enhancements. Instead, share your Angular improvements with the community and make a pull request. | | Avoid Angular APIs marked in the documentation as "*Security Risk*" | For more information, see the [Trusting safe values](guide/security#bypass-security-apis) section of this page. | @@ -36,12 +36,12 @@ For more information about how Google handles security issues, see [Google's sec ## Preventing cross-site scripting (XSS) [Cross-site scripting (XSS)](https://en.wikipedia.org/wiki/Cross-site_scripting) enables attackers to inject malicious code into web pages. -Such code can then, for example, steal user data \(in particular, login data\) or perform actions to impersonate the user. +Such code can then, for example, steal user and login data, or perform actions that impersonate the user. This is one of the most common attacks on the web. -To block XSS attacks, you must prevent malicious code from entering the DOM \(Document Object Model\). +To block XSS attacks, you must prevent malicious code from entering the Document Object Model (DOM). For example, if attackers can trick you into inserting a `