FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/src/Security/CWE/CWE-090/LdapInjection.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-090
/
LdapInjection.ql
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (20 loc) · 763 Bytes
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Security
/
CWE
/
CWE-090
/
LdapInjection.ql
Copy path
File metadata and controls
22 lines (20 loc) · 763 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
22
/**
* @name LDAP query built from user-controlled sources
* @description Building an LDAP query from user-controlled sources is vulnerable to insertion of
* malicious LDAP code by the user.
* @kind path-problem
* @problem.severity error
* @security-severity 9.8
* @precision high
* @id java/ldap-injection
* @tags security
* external/cwe/cwe-090
*/
import
java
import
semmle.code.java.dataflow.FlowSources
import
semmle.code.java.security.LdapInjectionQuery
import
LdapInjectionFlow
::
PathGraph
from
LdapInjectionFlow
::
PathNode
source
,
LdapInjectionFlow
::
PathNode
sink
where
LdapInjectionFlow
::
flowPath
(
source
,
sink
)
select
sink
.
getNode
(
)
,
source
,
sink
,
"This LDAP query depends on a $@."
,
source
.
getNode
(
)
,
"user-provided value"
Back
|
FazBrowse Home
|
New Git URL