FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/src/Security/CWE/CWE-079/XSS.ql at main · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
485
(485)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Security
/
CWE
/
CWE-079
/
XSS.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (19 loc) · 623 Bytes
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Security
/
CWE
/
CWE-079
/
XSS.ql
Copy path
File metadata and controls
21 lines (19 loc) · 623 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @name Cross-site scripting
* @description Writing user input directly to a web page
* allows for a cross-site scripting vulnerability.
* @kind path-problem
* @problem.severity error
* @security-severity 7.8
* @precision high
* @id java/xss
* @tags security
* external/cwe/cwe-079
*/
import
java
import
semmle.code.java.security.XssQuery
import
XssFlow
::
PathGraph
from
XssFlow
::
PathNode
source
,
XssFlow
::
PathNode
sink
where
XssFlow
::
flowPath
(
source
,
sink
)
select
sink
.
getNode
(
)
,
source
,
sink
,
"Cross-site scripting vulnerability due to a $@."
,
source
.
getNode
(
)
,
"user-provided value"
Back
|
FazBrowse Home
|
New Git URL