Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
secrules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
tools
secrules
Commits
4f499d0118fc
Commit
4f499d0118fc
authored
2 years ago
by
jfp
Browse files
Options
Downloads
Patches
Plain Diff
Fix rule 9001
parent
5cbf37fbfc7c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
secrules/rules09.py
+14
-11
14 additions, 11 deletions
secrules/rules09.py
with
14 additions
and
11 deletions
secrules/rules09.py
+
14
−
11
View file @
4f499d01
...
@@ -19,6 +19,11 @@
...
@@ -19,6 +19,11 @@
can allow unauthorized users to modify their own or another user
'
s execution
can allow unauthorized users to modify their own or another user
'
s execution
environment.
"""
environment.
"""
ebit
=
0x4
wbit
=
0x2
dbit
=
0x8
rbit
=
0x1
if
not
fmt
:
if
not
fmt
:
print
(
file
=
fo
)
print
(
file
=
fo
)
print
(
'
RULE 0901
'
,
file
=
fo
)
print
(
'
RULE 0901
'
,
file
=
fo
)
...
@@ -37,12 +42,8 @@
...
@@ -37,12 +42,8 @@
)[
2
][
)[
2
][
ossdef
.
OSS__PROTECTION
ossdef
.
OSS__PROTECTION
]
# type: ignore
]
# type: ignore
if
not
(
wprot
=
(
prot
&
0xF000
)
>>
12
(
prot
&
0x8000
)
if
(
wprot
&
wbit
)
==
0
or
(
wprot
&
dbit
)
==
0
:
and
(
prot
&
0x4000
)
and
(
prot
&
0x2000
)
and
(
prot
&
0x1000
)
):
if
fmt
:
if
fmt
:
print
(
'
0901
"
2
"'
,
fn
,
file
=
fo
)
print
(
'
0901
"
2
"'
,
fn
,
file
=
fo
)
else
:
else
:
...
@@ -60,7 +61,9 @@
...
@@ -60,7 +61,9 @@
During checking of the listed files for non-privileged access, either:
During checking of the listed files for non-privileged access, either:
1) An attempt to open the files to check for other called procedures resulted
1) An attempt to open the files to check for other called procedures resulted
in an open failure, -OR- 2) The listed command procedures reference other
in an open failure,
-OR-
2) The listed command procedures reference other
command procedures which were not found. If a file was required and deleted,
command procedures which were not found. If a file was required and deleted,
a user could create a file with the same name. This file then would run with
a user could create a file with the same name. This file then would run with
privileged access allowing a user to gain unauthorized system access.
"""
privileged access allowing a user to gain unauthorized system access.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment