Skip to content

Commit

Permalink
Update open_redirect.yaml (#119)
Browse files Browse the repository at this point in the history
Update the description for the rule: express_open_redirect
  • Loading branch information
sebasrevuelta authored Oct 23, 2024
1 parent 370e904 commit d231083
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion njsscan/rules/semantic_grep/redirect/open_redirect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ rules:
message: >-
Untrusted user input in redirect() can result in Open Redirect
vulnerability.
An http parameter may contain a URL value and could cause the web application to redirect the request to the specified URL. By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts have a more trustworthy appearance. Whether this issue poses a vulnerability will be subject to the intended behavior of the application. For example, a search engine might intentionally provide redirects to arbitrary URLs.
languages:
- javascript
severity: ERROR
Expand Down Expand Up @@ -73,9 +74,10 @@ rules:
message: >-
Untrusted user input in response header('Location') can result in Open
Redirect vulnerability.
An http parameter may contain a URL value and could cause the web application to redirect the request to the specified URL. By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts have a more trustworthy appearance. Whether this issue poses a vulnerability will be subject to the intended behavior of the application. For example, a search engine might intentionally provide redirects to arbitrary URLs.
languages:
- javascript
severity: ERROR
metadata:
owasp-web: a1
cwe: cwe-601
cwe: cwe-601

0 comments on commit d231083

Please sign in to comment.