Skip to content

Commit

Permalink
scanjs bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dpnishant committed Aug 13, 2015
1 parent cd8672e commit 59af2f9
Show file tree
Hide file tree
Showing 46 changed files with 13,593 additions and 10 deletions.
3 changes: 3 additions & 0 deletions backend/scanjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
/nbproject/
.idea/
12 changes: 12 additions & 0 deletions backend/scanjs/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: node_js
node_js:
- 0.10
env:
global:
- GH_REF: github.com/mozilla/scanjs.git
- secure: N/F/nDgbRmbquD4f9rADkyUlH5wOYxqSiZW92YItJTB7RE5jbj9jEXhgOXGrGJ+kr9yz5CEPbu1TtPO1KdCpVnAVvJ7MJeM0XsUEyhuB+vbd7j8IEQA1zGGKecvjn7wY0sBlwgnqclBc3dGTiIjV9jhNYzIXYfNXcaNnCSGZ9cca
after_success: ./deploy-ghpages.sh
branches:
only:
- master

8 changes: 7 additions & 1 deletion backend/scanjs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
ScanJS
ScanJS (DEPRECATED)
======

**Development of ScanJS has stopped. We are currently investigating the use of [ESLint](http://eslint.org) with some additional rules. Please see [eslint-config-scanjs](https://github.com/mozfreddyb/eslint-config-scanjs).**

*Testing and feedback appreciated! :)*

--------------------------------

![travis-ci](https://travis-ci.org/mozilla/scanjs.svg)

ScanJS is a Static analysis tool for javascript code. ScanJS was created as an aid for security review, to help identify security issues in client-side web applications.
Expand Down
14 changes: 14 additions & 0 deletions backend/scanjs/common/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,18 @@
"testmiss": "if(x==y){x=0;}",
"desc": "Unintended use of AssignmentExpression in If Statement",
"threat": "Typo"
}, {
"name": "nodejs exec",
"source": "require('child_process').exec",
"testhit": "require('child_process').exec",
"testmiss": "exec()",
"desc": "Instantiation of command execution. Check for untrusted input to the API.",
"threat": "RCE"
}, {
"name": "nodejs spawn",
"source": "require('child_process').spawn",
"testhit": "require('child_process').spawn",
"testmiss": "spawn()",
"desc": "Instantiation of command execution. Check for untrusted input to the API.",
"threat": "RCE"
}]
Loading

0 comments on commit 59af2f9

Please sign in to comment.