Skip to content

Commit 567bbf3

Browse files
CWE-78 - Added html format back
Signed-off-by: Bartlomiej Karas <[email protected]>
1 parent 65dd460 commit 567bbf3

File tree

1 file changed

+6
-6
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-707/CWE-78

1 file changed

+6
-6
lines changed

docs/Secure-Coding-Guide-for-Python/CWE-707/CWE-78/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Following table 00 provides a limited list of Unix shell commands to Python modu
1919
|Action|Unix|Python|
2020
|:---|:---|:---|
2121
|Compress or decompress files|gzip, unzip|zlib, gzip, bz2, lzma|
22-
|Filesystem operations|`find .` `tree` `ls -1 *.txt` `test -d` `test -f`s `cp`|`Path.rglob("*.txt")` `Path.glob("*.txt")` `Path.is_dir()` `Path.is_file()` `shutil.copy()`|
23-
|Access control operations|`chown` `chmod`|`shutil.chown()` `shutil.chmod()` `stat`|
24-
|Environment variables|`export` `set`|`os.getenv()` `os.setenv()`|
25-
|Get user/group id|`id`|`os.getuid()` `os.setuid()`|
26-
|Get OS and/or kernel type and name|`uname -as`|`os.uname()`|
22+
|Filesystem operations|`find .`<br>`tree`<br>`ls -1 *.txt`<br>`test -d`<br>`test -f`<br>`cp`|`Path.rglob("*.txt")`<br>`Path.glob("*.txt")`<br>`Path.is_dir()`<br>`Path.is_file()`<br>`shutil.copy()`|
23+
|Access control operations|`chown`<br>`chmod`|`shutil.chown()`<br>`shutil.chmod()`<br>`stat`|
24+
|Environment variables|`export`<br>`set`|`os.getenv()`<br>`os.setenv()`|
25+
|Get user/group id|id|`os.getuid()`<br>`os.setuid()`|
26+
|Get OS and/or kernel type and name|uname -as|`os.uname()`|
2727

28-
*table 00, example list of Unix commands and their Python equivalents.*
28+
<sub>table 00, example list of Unix commands and their Python equivalents.</sub>
2929

3030
Any variation of using input from a lesser trusted source as part of a command line program has a very high probability of resulting in a potential attack including the use of specialized modules. Consider:
3131

0 commit comments

Comments
 (0)