FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql-queries/python/github/DefaultPasswordDB.qll at main · advanced-security/codeql-queries · GitHub
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
advanced-security
codeql-queries
Repository navigation
Code
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql-queries
/
python
/
github
/
DefaultPasswordDB.qll
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (36 loc) · 1.04 KB
Breadcrumbs
codeql-queries
/
python
/
github
/
DefaultPasswordDB.qll
Copy path
File metadata and controls
43 lines (36 loc) · 1.04 KB
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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
private
import
python
// password = db.Column(..., server_default=...)
class
DBColumn
extends
Call
{
CallNode
call
;
string
name
;
ControlFlowNode
object
;
Name
var
;
string
id
;
DBColumn
(
)
{
call
.
getFunction
(
)
.
(
AttrNode
)
.
getObject
(
name
)
=
object
and
name
=
"Column"
and
call
=
this
.
getAFlowNode
(
)
and
object
.
getNode
(
)
=
var
.
getVariable
(
)
.
getAnAccess
(
)
and
var
.
getId
(
)
=
id
}
string
getDbId
(
)
{
result
=
id
}
predicate
hasStaticDefault
(
)
{
exists
(
DictItem
arg
|
arg
=
call
.
getNode
(
)
.
getANamedArg
(
)
and
arg
.
(
Keyword
)
.
getArg
(
)
in
[
"server_default"
,
"default"
]
and
arg
.
(
Keyword
)
.
getValue
(
)
instanceof
ImmutableLiteral
)
}
string
assignedToVariable
(
)
{
exists
(
AssignStmt
assign
,
Variable
v
|
assign
.
defines
(
v
)
and
v
.
getId
(
)
=
result
and
assign
.
getValue
(
)
=
this
)
}
string
getColumnName
(
)
{
result
=
call
.
getNode
(
)
.
getArg
(
0
)
.
(
StrConst
)
.
getText
(
)
}
}
Back
|
FazBrowse Home
|
New Git URL