PrivateBin/PrivateBin

View on GitHub
js/test/PasteViewer.js

Summary

Maintainability
A
0 mins
Test Coverage

Script URL is a form of eval.
Open

                'javascript:alert(/XSS/) type=submit>\'-->"></script>' +
Severity: Minor
Found in js/test/PasteViewer.js by eslint

Disallow Script URLs (no-script-url)

Using javascript: URLs is considered by some as a form of eval. Code passed in javascript: URLs has to be parsed and evaluated by the browser in the same way that eval is processed.

Rule Details

Examples of incorrect code for this rule:

/*eslint no-script-url: "error"*/

location.href = "javascript:void(0)";

Compatibility

  • JSHint: This rule corresponds to scripturl rule of JSHint.

Further Reading

There are no issues that match your filters.

Category
Status