Skip to content

amanvir/eslint-plugin-angularjs-security-rules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS Security Rules For ESLint

These rules are to supplement the security issues documented in my talks at OWASP London and FluentConf around AngularJS Security.

Usage

These rules can be used by downloading the Config which includes the installation settings.

Rules

The current ruleset supports only Angular 1.x issues, and can be noisy, but they are a work in progress.

Current rules are:

  • detect-angular-element-methods
  • detect-angular-open-redirect
  • detect-angular-orderBy-expressions
  • detect-angular-resource-loading
  • detect-angular-sce-disabled
  • detect-angular-scope-expressions
  • detect-angular-service-expressions
  • detect-angular-trustAs-methods
  • detect-third-party-angular-translate

TODO:

  • Each rule needs better detection, and possibly taint analysis
  • Add more rules related to Angular 1.0 - 5 in mind.
  • Add Angular 2/4 security issues such as bypassSecurityTrustHtml

If you feel anything is missing or would like to see additional rules added, feel free to write an issue

About

Rules for detecting security issues in Angular 1.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%