added
stringdate
2024-11-18 17:59:49
2024-11-19 03:44:43
created
int64
126B
1,694B
id
stringlengths
40
40
int_score
int64
2
5
metadata
dict
score
float64
2.31
5.09
source
stringclasses
1 value
text
stringlengths
257
22.3k
num_lines
int64
16
648
avg_line_length
float64
15
61
max_line_length
int64
31
179
ast_depth
int64
8
40
length
int64
101
3.8k
lang
stringclasses
1 value
sast_semgrep_findings
stringlengths
1.56k
349k
sast_semgrep_findings_count
int64
1
162
sast_semgrep_success
bool
1 class
sast_semgrep_error
stringclasses
1 value
cwe_ids
listlengths
1
162
rule_ids
listlengths
1
162
subcategories
listlengths
1
162
confidences
listlengths
1
162
severities
listlengths
1
162
line_starts
listlengths
1
162
line_ends
listlengths
1
162
column_starts
listlengths
1
162
column_ends
listlengths
1
162
owasp_categories
listlengths
1
162
messages
listlengths
1
162
cvss_scores
listlengths
1
162
likelihoods
listlengths
1
162
impacts
listlengths
1
162
filename
stringlengths
4
105
path
stringlengths
5
372
repo_name
stringlengths
5
115
license
stringclasses
385 values
2024-11-18T20:31:20.281744+00:00
1,504,773,221,000
bda89072f26f0b0ae4c43052075e666279e072d7
2
{ "blob_id": "bda89072f26f0b0ae4c43052075e666279e072d7", "branch_name": "refs/heads/master", "committer_date": 1504773221000, "content_id": "4c865bb8a3960a06739f425b9ebe6ae852c64c44", "detected_licenses": [ "MIT" ], "directory_id": "24cbc2d5f4a522fd132f53cb0c41eefbfc4e92b2", "extension": "py", "fi...
2.34375
stackv2
# coding=utf-8 from __future__ import division from __future__ import absolute_import from __future__ import print_function import subprocess from collections import defaultdict from acsp.com.common import * from acsp.com.utils import * class EvaluationResult(object): """An object that stores the results outpu...
169
33.55
125
17
1,361
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_cc5d4134f5a31f6f_bc0fff64", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 90 ]
[ 90 ]
[ 16 ]
[ 117 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
trec_eval.py
/acsp/pre/trec_eval.py
mdmustafizurrahman/activesampling
MIT
2024-11-18T20:31:22.109371+00:00
1,686,028,601,000
b4c99ac535b7af97f2b23aa02895128c857403ed
3
{ "blob_id": "b4c99ac535b7af97f2b23aa02895128c857403ed", "branch_name": "refs/heads/master", "committer_date": 1686028601000, "content_id": "8b58338fd2251f640b090c5035eb56071d95a6a6", "detected_licenses": [ "MIT" ], "directory_id": "7c6e345237c99e03d2ff7dfade38c658b9a55340", "extension": "py", "fi...
2.625
stackv2
import cma as cm from lppls.lppls import LPPLS # import multiprocessing as mp import numpy as np from scipy.stats import chisquare class LPPLSCMAES(LPPLS): def __init__(self, observations): super().__init__(observations) self.observations = observations def fun_restricted(self, x, obs): ...
115
31.96
112
16
1,088
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_d95149cdc75c43c9_1d20d8b8", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
1
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 108 ]
[ 108 ]
[ 36 ]
[ 46 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
lppls_cmaes.py
/lppls/lppls_cmaes.py
Boulder-Investment-Technologies/lppls
MIT
2024-11-18T20:31:22.319733+00:00
1,498,587,722,000
b7d2d97b879fde8e04bdb2409d7884703d39aaf3
2
{ "blob_id": "b7d2d97b879fde8e04bdb2409d7884703d39aaf3", "branch_name": "refs/heads/master", "committer_date": 1498587722000, "content_id": "855b471ecedeb7a8a6ce38bf5830a9135337fd2a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b46d9132d9f33556770a16dea15582e58b8a8963", "extension": "py"...
2.390625
stackv2
#Copyright 2015 Daniel Gusenleitner, Stefano Monti #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law or agreed t...
137
37.16
85
12
1,158
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_6261fd10505a932f_6cf27600", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 118 ]
[ 120 ]
[ 21 ]
[ 61 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
star.py
/build/lib/hydra_pkg/star.py
tetomonti/Hydra
Apache-2.0
2024-11-18T20:31:23.163522+00:00
1,520,533,770,000
6d1f8ebe4cd288a0c0f33a60f17c7f08cdac28d6
2
{ "blob_id": "6d1f8ebe4cd288a0c0f33a60f17c7f08cdac28d6", "branch_name": "refs/heads/master", "committer_date": 1520533770000, "content_id": "711b3ac56638cea68389cdcef0260552250c7171", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fb149bf689c3e2bbca8cea4b68dc357b2d224fee", "extension": "py"...
2.5
stackv2
import json import os.path import pickle from pythiam.lib.iam_manager import IAMManager from pythiam.lib.utils import file_age class UserRecordManager(object): def __init__(self, *args, **kwargs): self._client = None self._filename = kwargs.get('filename') or 'data.db' self._iam = None ...
240
27.49
97
18
1,502
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_46578dda894ca21b_89cdebfc", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
3
true
[ "CWE-502", "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 90, 102, 106 ]
[ 90, 102, 106 ]
[ 25, 17, 13 ]
[ 39, 48, 35 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5, 5 ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM" ]
user_record.py
/pythiam/lib/user_record.py
rsutton/pythiam
Apache-2.0
2024-11-18T20:31:27.616188+00:00
1,509,161,824,000
72aca226faba8b40e681f1c9435ca4f06f983778
3
{ "blob_id": "72aca226faba8b40e681f1c9435ca4f06f983778", "branch_name": "refs/heads/master", "committer_date": 1509161824000, "content_id": "976c220282b4f6bb8d2ec94915e407ebd91c1703", "detected_licenses": [ "MIT" ], "directory_id": "db02393519a036f927f425fa83b87c7111d53839", "extension": "py", "fi...
2.78125
stackv2
import csv import psycopg2 import secrets def parse(filename, tableName): conn = psycopg2.connect("dbname=gardnly2 user=cqlanus password=" + secrets.password) cur = conn.cursor() with open(filename, 'rt') as csvfile: rows = csv.reader(csvfile, delimiter=' ') for row in rows: r...
37
33.41
112
15
337
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_c745d51650c25bc0_6f4ec41d", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
3
true
[ "CWE-89", "CWE-89" ]
[ "rules.python.lang.security.audit.sqli.psycopg-sqli", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "HIGH" ]
[ 22, 22 ]
[ 23, 23 ]
[ 13, 13 ]
[ 56, 56 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected string concatenation with a non-literal variable in a psycopg2 Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements ...
[ 5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
temp_parsing.py
/src/temp_parsing.py
cqlanus/weather_parsing
MIT
2024-11-18T20:31:34.655620+00:00
1,572,898,414,000
6884ba0c104fd259454a6aa728cef1775f03dccc
3
{ "blob_id": "6884ba0c104fd259454a6aa728cef1775f03dccc", "branch_name": "refs/heads/master", "committer_date": 1572898414000, "content_id": "b5215b27f038e98888075f0553fc323fb489e554", "detected_licenses": [ "MIT" ], "directory_id": "16aabd7d01d327815b64fe1ee39e1c42e07acdfa", "extension": "py", "fi...
2.78125
stackv2
from optparse import OptionParser import os def getOptions(): parser = OptionParser() parser.add_option("--f", dest = "infile", help = "Input GTF file of genomic transcripts", metavar = "FILE", type = "string") parser.add_option("--e", dest = "exons", help = "Input BED file of final exons"...
46
32.48
110
14
410
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-system-call-audit_f2ee3e03239176fb_39c89324", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-system-call-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Found dynamic content used...
4
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 26, 34 ]
[ 26, 34 ]
[ 5, 5 ]
[ 19, 28 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.", "Found dynamic conte...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
print_genomic_in_final_exons.py
/genomic_transcripts/last_exons/print_genomic_in_final_exons.py
dewyman/TALON-paper-2019
MIT
2024-11-18T20:31:34.760539+00:00
1,632,480,663,000
25b301235480ca549e84db76d06f96130eb476a9
2
{ "blob_id": "25b301235480ca549e84db76d06f96130eb476a9", "branch_name": "refs/heads/main", "committer_date": 1632480663000, "content_id": "7c351a2cc83df241b48fed5d033df3f5a993e8bf", "detected_licenses": [ "MIT" ], "directory_id": "9d0e84f9478ff0095f06e3aa00c831fc9ed16485", "extension": "py", "file...
2.375
stackv2
# -*- coding: utf-8 -*- """ :author: Cao YongChao :mail: cyckun@aliyun.com :copyright: © 2020 Cao YongChao :license: MIT, see LICENSE for more details. """ from __future__ import print_function import pyopenabe from xmlrpc.server import SimpleXMLRPCServer # 调用函数 def respon_string(str): return "get...
71
28.14
68
13
546
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xmlrpc_261ae6209b3c3457_c9e8a458", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xmlrpc", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected use of xmlrpc. xmlrpc is not inherently safe fr...
1
true
[ "CWE-776" ]
[ "rules.python.lang.security.use-defused-xmlrpc" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 11 ]
[ 11 ]
[ 1 ]
[ 45 ]
[ "A04:2017 - XML External Entities (XXE)" ]
[ "Detected use of xmlrpc. xmlrpc is not inherently safe from vulnerabilities. Use defusedxml.xmlrpc instead." ]
[ 7.5 ]
[ "LOW" ]
[ "MEDIUM" ]
rpc_server.py
/rpc_server.py
cyckun/abe_enc_server
MIT
2024-11-18T20:31:34.967467+00:00
1,589,080,113,000
ed759e5a170ed24f2716df3e22862840ea335725
3
{ "blob_id": "ed759e5a170ed24f2716df3e22862840ea335725", "branch_name": "refs/heads/master", "committer_date": 1589080113000, "content_id": "fee4082e6d7a93e05e42ea1c23e6618d69df525c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cd54ada609fd16840aa5ad2979df5e33f7b14d37", "extension": "py"...
2.640625
stackv2
import glob import tensorflow as tf import sys import os import pandas as pd import shutil import xml.etree.ElementTree as ET FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string('dir1', None, 'first folder') tf.app.flags.DEFINE_string('dir2', None, '2nd folder') tf.app.flags.DEFINE_string('annotation_out', 'a...
78
26.26
119
13
554
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_da98e211732432a8_4080c3a0", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
3
true
[ "CWE-611", "CWE-611", "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml", "rules.python.lang.security.use-defused-xml-parse", "rules.python.lang.security.use-defused-xml-parse" ]
[ "security", "security", "security" ]
[ "LOW", "MEDIUM", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH" ]
[ 7, 50, 53 ]
[ 7, 50, 53 ]
[ 1, 16, 22 ]
[ 35, 32, 38 ]
[ "A04:2017 - XML External Entities (XXE)", "A04:2017 - XML External Entities (XXE)", "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service.", "The native Python `xml` library is vulnerable to XML Exter...
[ 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM" ]
safety_merge_annotations.py
/research/object_detection/dataset_tools/safety_merge_annotations.py
tealeeseng/models
Apache-2.0
2024-11-18T20:31:37.551815+00:00
1,535,791,374,000
b0f18afde1a0cec1f4c7614e4dbb302189895c4e
3
{ "blob_id": "b0f18afde1a0cec1f4c7614e4dbb302189895c4e", "branch_name": "refs/heads/master", "committer_date": 1535791374000, "content_id": "7fadbbd8f2944060986c967557c1101a7c8b7923", "detected_licenses": [ "MIT" ], "directory_id": "c75b05655f5671e070a799866d228a0f5ac76738", "extension": "py", "fi...
2.796875
stackv2
# coding:utf8 """ 下载器模块 1.根据请求对象,发送请求,获取相应数据,封装为Reponse对象返回 """ import requests from ..http.response import Response class DownLoader(object): def get_response(self, request): if request.method.upper() == "GET": res = requests.get(request.url,headers=request.headers,params=request.params,cook...
25
23.92
113
15
138
python
[{"finding_id": "semgrep_rules.python.django.security.injection.ssrf.ssrf-injection-requests_b23c93ef9acb2344_7775a4a0", "tool_name": "semgrep", "rule_id": "rules.python.django.security.injection.ssrf.ssrf-injection-requests", "finding_type": "security", "severity": "high", "confidence": "medium", "message": "Data from...
8
true
[ "CWE-918", "CWE-918", "CWE-918", "CWE-918" ]
[ "rules.python.django.security.injection.ssrf.ssrf-injection-requests", "rules.python.django.security.injection.ssrf.ssrf-injection-requests", "rules.python.django.security.injection.ssrf.ssrf-injection-requests", "rules.python.django.security.injection.ssrf.ssrf-injection-requests" ]
[ "security", "security", "security", "security" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 14, 14, 16, 16 ]
[ 14, 14, 16, 16 ]
[ 13, 19, 13, 19 ]
[ 114, 114, 94, 94 ]
[ "A10:2021 - Server-Side Request Forgery (SSRF)", "A10:2021 - Server-Side Request Forgery (SSRF)", "A10:2021 - Server-Side Request Forgery (SSRF)", "A10:2021 - Server-Side Request Forgery (SSRF)" ]
[ "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the prox...
[ 7.5, 7.5, 7.5, 7.5 ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
downloader.py
/framework/scrapy_plus/core/downloader.py
Danny2024/scrapy-3.3.3
MIT
2024-11-18T20:43:21.487861+00:00
1,431,563,839,000
3ae45d7291df1dd0328eefe08e6485532fab7cce
2
{ "blob_id": "3ae45d7291df1dd0328eefe08e6485532fab7cce", "branch_name": "refs/heads/master", "committer_date": 1431563839000, "content_id": "465013c726512a437882b425ca61b1b780597a39", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "652265a7a61f64a5aad99190de9d2c18b75fd76c", "extension": "p...
2.390625
stackv2
''' Copyright (C) 2014 Parrot SA Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
267
33.25
100
16
2,185
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_6487f0d636e8e6a5_fe82dd64", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
4
true
[ "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH" ]
[ 76, 90, 104 ]
[ 76, 90, 104 ]
[ 9, 9, 9 ]
[ 54, 96, 101 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess ...
[ 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH" ]
ARFuncs.py
/ARDroneSDK3/ARSDKBuildUtils-master/Utils/Python/ARFuncs.py
nericCU/QuadcopterProject
BSD-3-Clause
2024-11-18T20:43:23.483418+00:00
1,632,633,716,000
a8a045266aa386a14eafdf0d91a299f0bdb8f843
3
{ "blob_id": "a8a045266aa386a14eafdf0d91a299f0bdb8f843", "branch_name": "refs/heads/master", "committer_date": 1632633716000, "content_id": "f7d7215d6cfd438dd997e2776310c596c1d0bea1", "detected_licenses": [ "MIT" ], "directory_id": "68480f3a19bf4e14f7df15caabb1347e9d30070c", "extension": "py", "fi...
2.5625
stackv2
import os import taichi as ti def get_benchmark_dir(): return os.path.join(ti.core.get_repo_dir(), 'benchmarks') class Case: def __init__(self, name, func): self.name = name self.func = func self.records = {} def __lt__(self, other): return self.name < other.name d...
68
24.74
77
18
418
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.exec-detected_bfc3723add3e6562_a9b6ec54", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.exec-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of exec(). exec() can be dangerous ...
3
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.exec-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 34 ]
[ 34 ]
[ 9 ]
[ 54 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of exec(). exec() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
run.py
/benchmarks/run.py
ljcc0930/taichi
MIT
2024-11-18T20:43:27.169363+00:00
1,654,066,172,000
9cca9498a338bb3cd64b6ddce626016d915791b6
3
{ "blob_id": "9cca9498a338bb3cd64b6ddce626016d915791b6", "branch_name": "refs/heads/master", "committer_date": 1654066172000, "content_id": "48ae18a6ade1bfc64a05e8031adfe3c9e8031a40", "detected_licenses": [ "MIT" ], "directory_id": "4b8013544bd89210d60a140b82828fabc6399959", "extension": "py", "fi...
2.703125
stackv2
#!/usr/bin/env python # -*- coding: utf-8 -*- # # The code example provided here is for reference only to illustrate # sample workflows and may not be appropriate for use in actual operating # environments. # Support will be provided by Tintri for the Tintri APIs, but theses # examples are for illustrative purposes on...
222
36.96
159
14
2,029
python
[{"finding_id": "semgrep_rules.python.requests.best-practice.use-raise-for-status_48c378697b6cf346_b4e1f6dd", "tool_name": "semgrep", "rule_id": "rules.python.requests.best-practice.use-raise-for-status", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "There's an HTTP request ...
14
true
[ "CWE-295", "CWE-295", "CWE-295", "CWE-295" ]
[ "rules.python.requests.security.disabled-cert-validation", "rules.python.requests.security.disabled-cert-validation", "rules.python.requests.security.disabled-cert-validation", "rules.python.requests.security.disabled-cert-validation" ]
[ "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 81, 119, 153, 210 ]
[ 81, 119, 153, 210 ]
[ 9, 3, 3, 5 ]
[ 84, 66, 63, 67 ]
[ "A03:2017 - Sensitive Data Exposure", "A03:2017 - Sensitive Data Exposure", "A03:2017 - Sensitive Data Exposure", "A03:2017 - Sensitive Data Exposure" ]
[ "Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation.", "Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation.", "Certificate v...
[ 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW", "LOW" ]
[ "LOW", "LOW", "LOW", "LOW" ]
GetTintriDashboard.py
/docs/client/http/samples/python/GetTintriDashboard.py
Tintri/tintri-rest-api
MIT
2024-11-18T20:43:35.376435+00:00
1,635,315,024,000
18c810361ce85b5d4a2bd5c5d6a3893d256d3c93
3
{ "blob_id": "18c810361ce85b5d4a2bd5c5d6a3893d256d3c93", "branch_name": "refs/heads/master", "committer_date": 1635315024000, "content_id": "f0f6535b25b484ff228919154bea07e98caeb458", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3a247363c5acb97a22eb61d557e11aeb89edd701", "extension": "py"...
2.6875
stackv2
import sys import logging import subprocess from pid import PidFile from configparser import ConfigParser from http.server import BaseHTTPRequestHandler,HTTPServer #This class will handles any incoming request from #the browser class HealthCheckHandler(BaseHTTPRequestHandler): def check_status(self): glo...
93
30.57
114
21
633
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_3bb3e621d1f2bc4e_13bdd5ea", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 15, 15 ]
[ 15, 15 ]
[ 13, 62 ]
[ 115, 66 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Found 'subprocess' functi...
[ 7.5, 7.5 ]
[ "LOW", "HIGH" ]
[ "HIGH", "LOW" ]
healthcheckd.py
/healthcheckd.py
jordiprats/python-healthcheckd
Apache-2.0
2024-11-18T20:43:40.741314+00:00
1,513,539,361,000
ac11dd9c1ec5ed8972d07414db7e484b608a6f49
3
{ "blob_id": "ac11dd9c1ec5ed8972d07414db7e484b608a6f49", "branch_name": "refs/heads/master", "committer_date": 1513539361000, "content_id": "bf54c37a1afc344bfe8e5602199f8b31df44de03", "detected_licenses": [ "MIT" ], "directory_id": "f0dbd873d1cf1052bc988d06d7d8fbbb26b42e08", "extension": "py", "fi...
2.734375
stackv2
#server # TCP Server Code from Crypto.Cipher import AES from Crypto.Cipher import DES from Crypto.Cipher import DES3 from Crypto.Cipher import Blowfish from Crypto.Cipher import ChaCha20 import hashlib from hashlib import blake2s import pickle import random import sys import Crypto from ecc import getcurvebyname from a...
149
23.01
116
14
1,061
python
[{"finding_id": "semgrep_rules.python.pycryptodome.security.insecure-cipher-algorithm-des_f826ef47fc86e604_9ab018d5", "tool_name": "semgrep", "rule_id": "rules.python.pycryptodome.security.insecure-cipher-algorithm-des", "finding_type": "security", "severity": "medium", "confidence": "high", "message": "Detected DES ci...
7
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 95, 100 ]
[ 95, 100 ]
[ 8, 9 ]
[ 34, 50 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
server.py
/server.py
FMI-VT/Simplest-OT-Python-Implementation
MIT
2024-11-18T20:43:47.561425+00:00
1,674,736,871,000
22a558b69315ec39129d3126a007881c89124d3e
3
{ "blob_id": "22a558b69315ec39129d3126a007881c89124d3e", "branch_name": "refs/heads/main", "committer_date": 1674736871000, "content_id": "92ded8f93ff4d206c5b947787ae2a16304e1303b", "detected_licenses": [ "MIT" ], "directory_id": "e3db4c51862ae9d2504db4ca9693e758d2add747", "extension": "py", "file...
2.578125
stackv2
import os import numpy as np import streamlit as st from gensim import corpora, models def lda_basic(list_of_list_of_tokens, num_topics): dictionary_LDA = corpora.Dictionary(list_of_list_of_tokens) dictionary_LDA.filter_extremes(no_below=2) corpus = [ dictionary_LDA.doc2bow(list_of_tokens) ...
58
31.09
82
17
450
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_65e48e4b1d5007d4_ebd8b384", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
2
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 31 ]
[ 31 ]
[ 19 ]
[ 48 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
topic_extraction_lda.py
/src/analysis/topic_extraction_lda.py
rajaswa/DRIFT
MIT
2024-11-18T20:43:49.966903+00:00
1,573,216,143,000
182a1c07177697f88b529d603fd730dde5edbd0c
2
{ "blob_id": "182a1c07177697f88b529d603fd730dde5edbd0c", "branch_name": "refs/heads/master", "committer_date": 1573216143000, "content_id": "c8466ebf3f0c2decf20ab41307b4103561b10eb4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4ac62d379f364e0a66e798b649effb2e60387ccc", "extension": "py"...
2.3125
stackv2
#!/usr/bin/python import subprocess import sys from SystemConfiguration import ( SCDynamicStoreCreate, SCDynamicStoreCopyValue, SCDynamicStoreCopyConsoleUser) sys.path.insert(0, '/usr/local/munki') from munkilib import FoundationPlist sys.path.insert(0, '/usr/local/sal') import macmodelshelf import utils MEMO...
139
32.35
96
21
1,106
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_e28dceb7eb1889d2_8f4a082e", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 110 ]
[ 110 ]
[ 18 ]
[ 50 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_output' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
machine_checkin.py
/payload/usr/local/sal/checkin_modules/machine_checkin.py
asemak/sal-scripts
Apache-2.0
2024-11-18T20:43:51.247714+00:00
1,544,186,864,000
44902baf973d6acb5e80978dbafcb88041ef68e5
3
{ "blob_id": "44902baf973d6acb5e80978dbafcb88041ef68e5", "branch_name": "refs/heads/master", "committer_date": 1544186864000, "content_id": "35db1fc6286bae472f33adf3041b73d1db8aaf09", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7cd4a71b9be9ccb015034a0f7667edff00228741", "extension": "p...
2.984375
stackv2
#Interface with SQL Database import sqlite3 #Pickle objects import pickle #CV to train import cv2 #Base64 encode images import base64 #For exit import sys #For numpy arrays import numpy as np #For file system interaction import os #If you decide to train based on the file system, this code is from the same location as...
179
29.64
100
13
1,313
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_d12298c669655447_72f50c6b", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
2
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 179 ]
[ 179 ]
[ 24 ]
[ 44 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
trainer.py
/Node/trainer.py
TechMatt1337/Bastion
BSD-3-Clause
2024-11-18T20:44:01.635203+00:00
1,679,597,405,000
f26bc83e65aa4622ba13805edca1cbbd55ea8d29
3
{ "blob_id": "f26bc83e65aa4622ba13805edca1cbbd55ea8d29", "branch_name": "refs/heads/main", "committer_date": 1679597405000, "content_id": "9330a2bf32a5430f3f7ef8cb1fe386da192ea869", "detected_licenses": [ "MIT" ], "directory_id": "f1c93e8553d7b7ce1218c3779d793d0d7d5dca8c", "extension": "py", "file...
3.28125
stackv2
""" Benchmark SamplesLoss in 3D ===================================== Let's compare the performances of our losses and backends as the number of samples grows from 100 to 1,000,000. """ ############################################## # Setup # --------------------- import numpy as np import time from matplotlib impo...
233
24.35
83
17
1,552
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.exec-detected_4b645e6d63fb914e_ead18d1d", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.exec-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of exec(). exec() can be dangerous ...
2
true
[ "CWE-95", "CWE-95" ]
[ "rules.python.lang.security.audit.exec-detected", "rules.python.lang.security.audit.exec-detected" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 94, 101 ]
[ 94, 101 ]
[ 5, 9 ]
[ 25, 29 ]
[ "A03:2021 - Injection", "A03:2021 - Injection" ]
[ "Detected the use of exec(). exec() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.", "Detected the use of exec(). exec() can be dangerous if used...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
plot_benchmarks_samplesloss_3D.py
/geomloss/examples/performances/plot_benchmarks_samplesloss_3D.py
jeanfeydy/geomloss
MIT
2024-11-18T20:44:07.584358+00:00
1,485,810,103,000
62977f7ee225ee575a2f3813c47ecbc391c84558
3
{ "blob_id": "62977f7ee225ee575a2f3813c47ecbc391c84558", "branch_name": "refs/heads/master", "committer_date": 1485810103000, "content_id": "ff50de263a2898143330ca8a2d94510d6098959f", "detected_licenses": [ "MIT" ], "directory_id": "56cac9506b9870474c620639ba71129d78f5745c", "extension": "py", "fi...
3.140625
stackv2
""" Test `simple_site_crawler.site_crawler` file """ import xml.etree.cElementTree as ET from xml.dom import minidom def generate_sitemap_xml(urls, filename='sitemap.xml'): """ Generate 'sitemap.xml' file based on passed urls :param urls: list of URLs :type urls: list of str :param filename: outp...
55
24.05
78
12
351
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_cde5800f545af206_08ae678a", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
2
true
[ "CWE-611", "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml", "rules.python.lang.security.use-defused-xml" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 4, 5 ]
[ 4, 5 ]
[ 1, 1 ]
[ 36, 28 ]
[ "A04:2017 - XML External Entities (XXE)", "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service.", "The Python documentation recommends using `defusedxml` ins...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
utils.py
/simple_site_crawler/utils.py
Adel-B/simple-site-crawler
MIT
2024-11-18T20:44:08.375538+00:00
1,378,847,047,000
4c7c92161011767a0435760d46768d4300524937
3
{ "blob_id": "4c7c92161011767a0435760d46768d4300524937", "branch_name": "refs/heads/master", "committer_date": 1378847047000, "content_id": "9261ba4838a2c592d4cf63c6b739efb8e5fa43ed", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8f37ab37716d3503ba6836e4bf81253e6f635d70", "extension": "p...
2.671875
stackv2
"flask-mustache Flask plugin" from jinja2 import Template import pystache from flask import current_app, Blueprint __all__ = ('FlaskMustache',) mustache_app = Blueprint('mustache', __name__, template_folder='templates', static_folder='static') class FlaskMustache(object): "Wrapper to inject Mustache stuff int...
98
30.73
105
13
708
python
[{"finding_id": "semgrep_rules.python.flask.security.xss.audit.direct-use-of-jinja2_a92d80b1f402d9b6_6c186031", "tool_name": "semgrep", "rule_id": "rules.python.flask.security.xss.audit.direct-use-of-jinja2", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected direct use of jinja...
1
true
[ "CWE-79" ]
[ "rules.python.flask.security.xss.audit.direct-use-of-jinja2" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 74 ]
[ 74 ]
[ 35 ]
[ 59 ]
[ "A07:2017 - Cross-Site Scripting (XSS)" ]
[ "Detected direct use of jinja2. If not done properly, this may bypass HTML escaping which opens up the application to cross-site scripting (XSS) vulnerabilities. Prefer using the Flask method 'render_template()' and templates with a '.html' extension in order to prevent XSS." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
__init__.py
/flask_mustache/__init__.py
bradwright/flask-mustachejs
BSD-3-Clause
2024-11-18T20:44:10.207936+00:00
1,689,877,491,000
105dbf43b674597e6e824c1cb6087c0fe3a64d5f
2
{ "blob_id": "105dbf43b674597e6e824c1cb6087c0fe3a64d5f", "branch_name": "refs/heads/master", "committer_date": 1689877491000, "content_id": "7b52039b9046fdffc5ab90f350a33ce25236e8e3", "detected_licenses": [ "MIT" ], "directory_id": "5d456c15459f088cc92fd9a8dcd8d4d2f6382107", "extension": "py", "fi...
2.484375
stackv2
import torch import hydra from ..base.constants import MODEL_MVTCAE from ..base.base_model import BaseModelVAE from ..base.representations import ProductOfExperts class mvtCAE(BaseModelVAE): r""" Multi-View Total Correlation Auto-Encoder (MVTCAE). Code is based on: https://github.com/gr8joo/MVTCAE N...
217
36.97
162
24
1,972
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_ef488c1853069b67_1cc85e11", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
2
true
[ "CWE-95", "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected", "rules.python.lang.security.audit.eval-detected" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 65, 177 ]
[ 65, 177 ]
[ 21, 21 ]
[ 62, 62 ]
[ "A03:2021 - Injection", "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.", "Detected the use of eval(). eval() can be dangerous if used...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
mvtcae.py
/multiviewae/models/mvtcae.py
alawryaguila/multi-view-AE
MIT
2024-11-18T20:44:12.600072+00:00
1,676,139,610,000
f3f1454fd7b5dc4c3db60a4871bf8cc0b9f00f3d
3
{ "blob_id": "f3f1454fd7b5dc4c3db60a4871bf8cc0b9f00f3d", "branch_name": "refs/heads/master", "committer_date": 1676139610000, "content_id": "271c88e82ca2fb56bd071680f5987c5fa4bf59b8", "detected_licenses": [ "MIT" ], "directory_id": "255e19ddc1bcde0d3d4fe70e01cec9bb724979c9", "extension": "py", "fi...
3.0625
stackv2
#!/usr/bin/env python """Measure performance for 3 cases: 1. dict has key at the start of list 2. dict has key at the end of list 3. dict has no key in a list See http://stackoverflow.com/questions/1737778/dict-has-key-from-list """ from functools import wraps from itertools import imap def to_compare(function): ...
96
26.84
79
13
714
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_04c061658bcad606_babcf37d", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 91 ]
[ 96 ]
[ 5 ]
[ 22 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
snippet.py
/all-gists/235395/snippet.py
gistable/gistable
MIT
2024-11-18T20:44:14.916340+00:00
1,467,068,014,000
1c981f27c0e397a4141b5c9583ca8140c8fe771e
2
{ "blob_id": "1c981f27c0e397a4141b5c9583ca8140c8fe771e", "branch_name": "refs/heads/master", "committer_date": 1467068014000, "content_id": "8b3ab12bab1cb6fb5e21c723af5c123731f54990", "detected_licenses": [ "MIT" ], "directory_id": "8aa8635ece403d3ca38c7cb6c8f2f0614962f558", "extension": "py", "fi...
2.421875
stackv2
#!/usr/bin/python # import cgitb # cgitb.enable() import sys; import os sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('.')) import psycopg2 import re from Utils.Globals import * class DataSource: def __init__(self): """ Create a DataSource object :return: N...
301
39.76
142
15
2,565
python
[{"finding_id": "semgrep_rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query_a7fb2255c31a2634_4d602ae4", "tool_name": "semgrep", "rule_id": "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Avoiding SQL string conc...
3
true
[ "CWE-89", "CWE-89", "CWE-89" ]
[ "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH" ]
[ 192, 194, 199 ]
[ 192, 194, 199 ]
[ 9, 9, 9 ]
[ 82, 78, 78 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepared statement with named parameters. For complex SQL composition, use SQL Expre...
[ 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH" ]
DataSource.py
/event-detection-master/Utils/DataSource.py
a-raina/Event-Detection-using-NLP
MIT
2024-11-18T20:44:16.583712+00:00
1,560,361,383,000
b6eed866fb4711d3adfab506b0107f6029cac779
2
{ "blob_id": "b6eed866fb4711d3adfab506b0107f6029cac779", "branch_name": "refs/heads/master", "committer_date": 1560361383000, "content_id": "9e394c94dc2bf50a5709592d4eb10424b771ae42", "detected_licenses": [ "Apache-2.0" ], "directory_id": "94e9da5e4f3232fe19c96cb463fe7c885e5fdab7", "extension": "py"...
2.421875
stackv2
import copy import json import logging import os import uuid import subprocess from omniscient.structure.query_graph import QueryGraph from omniscient.structure.stage import Stage from omniscient.structure.sentence import Sentence from omniscient.structure.mention import Mention from omniscient.structure import consta...
271
33.18
119
23
2,103
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_b4772ae019a32771_44ecac82", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
5
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 58, 59 ]
[ 59, 59 ]
[ 19, 56 ]
[ 61, 60 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_output' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Found 'subprocess'...
[ 7.5, 7.5 ]
[ "LOW", "HIGH" ]
[ "HIGH", "LOW" ]
query_graph_utils.py
/omniscient/utils/query_graph_utils.py
Impavidity/Omniscient
Apache-2.0
2024-11-18T20:44:17.709162+00:00
1,647,338,190,000
1270cf51441e064b2d7a672c21731725f813322f
2
{ "blob_id": "1270cf51441e064b2d7a672c21731725f813322f", "branch_name": "refs/heads/main", "committer_date": 1647338278000, "content_id": "d0f228286774fb46c5089d270120ffaf8202afe7", "detected_licenses": [ "MIT" ], "directory_id": "878b8ec345003f40fbbfcdbb591bd132b24241cf", "extension": "py", "file...
2.328125
stackv2
import pickle from datetime import datetime import numpy as np import pandas as pd import xarray as xr import yaml from vmodel.util.util import clean_attrs def generate_filename(args): # Construct output file name time_str = datetime.now().strftime('%Y-%m-%d-%H-%M-%S') fnamedict = { 'agents': a...
99
27.75
80
13
786
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_29d0399439091257_6ddadd3e", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
2
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 92 ]
[ 92 ]
[ 13 ]
[ 65 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
dataset.py
/vmodel/dataset.py
lis-epfl/vmodel
MIT
2024-11-18T20:57:32.139227+00:00
1,378,156,025,000
8b63ac086743f192e52822c989e3eab9c2e4aa1e
2
{ "blob_id": "8b63ac086743f192e52822c989e3eab9c2e4aa1e", "branch_name": "refs/heads/master", "committer_date": 1378156644000, "content_id": "31622d72198902d8fa2ac2800e7f5aa61b1b6b10", "detected_licenses": [ "Python-2.0" ], "directory_id": "ce083dda93d5698952cdde25a69196483c8255e4", "extension": "py"...
2.359375
stackv2
#!/usr/bin/env python # # Wrapper on pyinotify for running commands # (c) 2009 Peter Bengtsson, peter@fry-it.com # # TODO: Ok, now it does not start a command while another is runnnig # But! then what if you actually wanted to test a modification you # saved while running another test # Yes, we...
213
30.44
93
17
1,461
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_7fb489c6284f572d_2320a828", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 106 ]
[ 106 ]
[ 21 ]
[ 47 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
gorun.py
/gorun.py
AndreaCrotti/python-gorun
Python-2.0
2024-11-18T20:57:33.584756+00:00
1,579,511,800,000
e0989b47c11bccf0129df1d9fdccf909c0b12db9
3
{ "blob_id": "e0989b47c11bccf0129df1d9fdccf909c0b12db9", "branch_name": "refs/heads/master", "committer_date": 1579511800000, "content_id": "448877cb19cb944acd2f74080b11e07cbc2d8d34", "detected_licenses": [ "MIT" ], "directory_id": "d7c339e1c3f40d358b6463e8ebd813d76761c5a4", "extension": "py", "fi...
2.828125
stackv2
import pickle from vicorrect.machine_learning.hmm import HiddenMarkovModel class CorrectVietnameseSentence(): def __init__(self, listNgrams=[2, 3, 4], eta=0.000001, verbose=True): self.__listNgrams = listNgrams self.__eta = eta self.__loaded = False self.__verbose = verbose def load(self, filePath): try: ...
35
27.51
81
15
278
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_78b95b93216200ec_aeb07195", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
1
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 13 ]
[ 13 ]
[ 19 ]
[ 52 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
add_accents.py
/vicorrect/model/add_accents.py
lvhanh270597/correct_vietnamese_sentence
MIT
2024-11-18T20:57:34.271453+00:00
1,551,126,716,000
0913054b93ba0bb0e92294cb0b3721da80836989
2
{ "blob_id": "0913054b93ba0bb0e92294cb0b3721da80836989", "branch_name": "refs/heads/master", "committer_date": 1551126716000, "content_id": "0aa1a04b8807b6215a7f2ef1ec460ced28bb2cd4", "detected_licenses": [ "MIT" ], "directory_id": "edffb6fcb86ede4bd5eda957074a3d8ad820b86d", "extension": "py", "fi...
2.328125
stackv2
import os import json import subprocess def ffprobe(fin, fout): ffp_in = subprocess.check_output(['ffprobe', '-v', 'warning', '-print_format', 'json', '-show_streams', '-show_format', ...
88
23.81
67
14
536
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_6dfa583feb614630_a83db6b9", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 43, 74 ]
[ 43, 74 ]
[ 3, 3 ]
[ 29, 29 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess ...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
encode.py
/encode.py
ec500-software-engineering/exercise-2-ffmpeg-BrefCool
MIT
2024-11-18T20:57:34.958615+00:00
1,580,165,283,000
5626835ccc8b27583b60ffe1b08306d2d999e9c6
3
{ "blob_id": "5626835ccc8b27583b60ffe1b08306d2d999e9c6", "branch_name": "refs/heads/master", "committer_date": 1580165283000, "content_id": "28ae91e9ce1dceb2a99552a316ed5518895afe22", "detected_licenses": [ "MIT" ], "directory_id": "c9d7aa1fca69a667a04d97c5870f44796b97a29b", "extension": "py", "fi...
2.609375
stackv2
import os import sys import requests from bs4 import BeautifulSoup from pySmartDL import SmartDL from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities class EgyBest: search_base_url = "https://nero.egybest.site/explore/?q=" chrome_driver = None def...
365
37.98
108
26
2,780
python
[{"finding_id": "semgrep_rules.python.lang.correctness.use-sys-exit_da06b18664d193a7_46aa0de5", "tool_name": "semgrep", "rule_id": "rules.python.lang.correctness.use-sys-exit", "finding_type": "correctness", "severity": "medium", "confidence": "medium", "message": "Detected use of `exit`. Use `sys.exit` over the python...
6
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 328 ]
[ 329 ]
[ 17 ]
[ 107 ]
[ "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
egybest.py
/egybest.py
ahmed081/EgyBest-Downloader
MIT
2024-11-18T20:57:52.820940+00:00
1,505,503,412,000
a9bd3d5686b67a0c78b7060194ac3103e352eb56
2
{ "blob_id": "a9bd3d5686b67a0c78b7060194ac3103e352eb56", "branch_name": "refs/heads/master", "committer_date": 1505503412000, "content_id": "ad31e069a32dab9fd67258a3fe57488d0840a14b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "4f12b9226ae6b3ce14a1ba46e188484d62e6cac1", "extension": "p...
2.375
stackv2
from contentmodels.models import ContentModel, ModelVersion from WfsCapabilities import WfsCapabilities from WfsGetFeature import WfsGetFeature from django import forms from django.http import HttpResponseNotAllowed from django.shortcuts import render #------------------------------------------------------------------...
123
42.26
114
18
1,109
python
[{"finding_id": "semgrep_rules.python.django.security.audit.xss.direct-use-of-httpresponse_71c11ff15b183e13_f8d6879f", "tool_name": "semgrep", "rule_id": "rules.python.django.security.audit.xss.direct-use-of-httpresponse", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected data ...
1
true
[ "CWE-79" ]
[ "rules.python.django.security.audit.xss.direct-use-of-httpresponse" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 73 ]
[ 73 ]
[ 12 ]
[ 43 ]
[ "A07:2017 - Cross-Site Scripting (XSS)" ]
[ "Detected data rendered directly to the end user via 'HttpResponse' or a similar object. This bypasses Django's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Django's template engine to safely render HTML." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
wfs.py
/validation/validators/wfs.py
usgin/ContentModelCMS
BSD-2-Clause
2024-11-18T20:57:55.621220+00:00
1,599,161,633,000
c4d300ac44be246bd48a2368579df593027789a0
3
{ "blob_id": "c4d300ac44be246bd48a2368579df593027789a0", "branch_name": "refs/heads/master", "committer_date": 1599161633000, "content_id": "155e00c7753b2d1496130ee5e9857e4ec88681bc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9db0a42f6e09372d8d937596cbb7adaea691cf0c", "extension": "py"...
2.703125
stackv2
''' Created on Jun 29, 2018 @author: falensaa ''' import dynet import logging import abc import pickle import random class TokenReprBuilder(object): __metaclass__ = abc.ABCMeta ## # word2i dictionaries operations @abc.abstractmethod def addToken(self, token): pass @abc....
366
26.21
106
17
2,390
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_8c86cbec026d3307_c85cfdd4", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
8
true
[ "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.pyth...
[ "security", "security", "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 97, 100, 165, 168, 218, 221, 290, 293 ]
[ 97, 100, 165, 168, 218, 221, 290, 293 ]
[ 9, 42, 9, 22, 9, 24, 9, 41 ]
[ 65, 63, 43, 43, 45, 45, 64, 62 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserial...
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5, 5, 5, 5, 5, 5, 5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
word.py
/imsnpars/repr/word.py
zentrum-lexikographie/IMSnPars
Apache-2.0
2024-11-18T20:57:59.147728+00:00
1,538,344,607,000
ba4406694e7d3aa75ee353675f6943f2d5989733
3
{ "blob_id": "ba4406694e7d3aa75ee353675f6943f2d5989733", "branch_name": "refs/heads/master", "committer_date": 1538344607000, "content_id": "64f01dd2904395d797a3ccd6dbb036b08b538108", "detected_licenses": [ "Apache-2.0" ], "directory_id": "19e8cfa283b2545d3155bc1e2e6190af6d380671", "extension": "py"...
3.15625
stackv2
#!/usr/bin/env python3 """Kicad script to create a BOM according to the Seeed Studio Fusion PCBA.""" import csv import sys import xml.etree.ElementTree as ET # Natural key sorting for orders like: # C1, C5, C10, C12 ... (instead of C1, C10, C12, C5...) # http://stackoverflow.com/a/5967539 import re def atoi(text): ...
123
28.77
87
17
954
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_145b4e8429191b37_fc5dd4a4", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
3
true
[ "CWE-611", "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml", "rules.python.lang.security.use-defused-xml-parse" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 6, 41 ]
[ 6, 41 ]
[ 1, 12 ]
[ 35, 32 ]
[ "A04:2017 - XML External Entities (XXE)", "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service.", "The native Python `xml` library is vulnerable to XML Exter...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
kicad_bom_seeedstudio.py
/kicad_bom_seeedstudio.py
leoheck/kicad-bom-seeedstudio
Apache-2.0
2024-11-18T20:57:59.226377+00:00
1,634,030,840,000
cfc573a3cf3dcedc4e0542f02f07c97ec75d3916
2
{ "blob_id": "cfc573a3cf3dcedc4e0542f02f07c97ec75d3916", "branch_name": "refs/heads/main", "committer_date": 1634030840000, "content_id": "ba106acfb69af587acce3bd2ee5951bb1cf016b7", "detected_licenses": [ "MIT-0" ], "directory_id": "b397aa55e978c580ed82cc49b5b93a8c0ae2c394", "extension": "py", "fi...
2.3125
stackv2
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import datetime import boto3 import json events_client = boto3.client("events") sagemaker_client = boto3.client("sagemaker") ssm_client = boto3.client("ssm") class Metric: _iam_permissions = [ { ...
142
27.67
137
17
852
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_beac715f08faa92b_4e843cef", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
1
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 45 ]
[ 45 ]
[ 34 ]
[ 41 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
metric.py
/lambda_function_code/metric.py
aws-samples/ds-dashboard
MIT-0
2024-11-18T20:58:01.411377+00:00
1,459,384,210,000
78b87251a1ac38c648cf6fb7a30851e8a6e6fb30
3
{ "blob_id": "78b87251a1ac38c648cf6fb7a30851e8a6e6fb30", "branch_name": "refs/heads/master", "committer_date": 1459384210000, "content_id": "6658dfe78c297c5831eaeff4906cd5e6edcd55b3", "detected_licenses": [ "MIT" ], "directory_id": "466b016d2f4c5633f3ab792cb1b8cfa2f24a53a2", "extension": "py", "fi...
2.875
stackv2
""" problems.py Module for handling problem related commands """ import requests, argparse, textwrap, os, string, glob, re import auacm from auacm.utils import subcommand, _find_pid_from_name, format_str_len import subprocess from subprocess import PIPE, STDOUT from shlex import split ALLOWED_EXTENSIONS = ['java', '...
325
31
79
21
2,396
python
[{"finding_id": "semgrep_rules.python.requests.best-practice.use-timeout_f7d07ee15e061bf8_291f3863", "tool_name": "semgrep", "rule_id": "rules.python.requests.best-practice.use-timeout", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Detected a 'requests' call without a timeo...
12
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 232, 269 ]
[ 237, 270 ]
[ 16, 12 ]
[ 37, 59 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess funct...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
problems.py
/src/auacm/problems.py
BrandonLMorris/auacm-cli
MIT
2024-11-18T20:58:02.832007+00:00
1,569,953,362,000
50dedba6c5ac39acb836381ed3886f6f392f18db
3
{ "blob_id": "50dedba6c5ac39acb836381ed3886f6f392f18db", "branch_name": "refs/heads/master", "committer_date": 1569953362000, "content_id": "b1e92be1b46fbeffbaee50ca0955f45cc21adc23", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ac216a2cc36f91625e440247986ead2cd8cce350", "extension": "p...
2.625
stackv2
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Flakiness Swarming Task Experiment - Task Triggering Script Triggers the needed tasks to run the experiment described by the input f...
160
35.76
96
17
1,491
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_5305f978d78e4be3_723953e1", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
4
true
[ "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-tainted-env-args", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security", "security" ]
[ "LOW", "MEDIUM", "LOW" ]
[ "HIGH", "HIGH", "HIGH" ]
[ 129, 129, 151 ]
[ 129, 129, 154 ]
[ 25, 49, 9 ]
[ 63, 62, 61 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_output' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subproces...
[ 7.5, 7.5, 7.5 ]
[ "LOW", "MEDIUM", "LOW" ]
[ "HIGH", "MEDIUM", "HIGH" ]
trigger_tasks.py
/appengine/findit/util_scripts/experiments/trigger_tasks.py
xinghun61/infra
BSD-3-Clause
2024-11-18T20:58:05.648482+00:00
1,587,241,026,000
b64ec12cb58308d58d6093eb61b0989a7703982b
3
{ "blob_id": "b64ec12cb58308d58d6093eb61b0989a7703982b", "branch_name": "refs/heads/master", "committer_date": 1587241026000, "content_id": "8d17da0b45769dfda21531b6462bc32fdb00e52f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c065661d932b8368ba325fb2880df37b8fe74c77", "extension": "py"...
2.609375
stackv2
#!/usr/local/bin/python # coding: latin-1 #if you use this code give me credit @tuf_unkn0wn #i do not give you permission to show / edit this script without my credit #to ask questions or report a problem message me on instagram @tuf_unkn0wn """ ██░ ██ ▄▄▄ ▄████▄ ██ ▄█▀▓█████ ▓█████▄ ▓██░ ██▒▒████▄ ▒██▀...
56
28.62
81
13
723
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-system-call-audit_1538cc16c27e5dc9_4ec79fc9", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-system-call-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Found dynamic content used...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 51 ]
[ 51 ]
[ 2 ]
[ 14 ]
[ "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
aserver.py
/commandlist/aserver.py
dAYOShACKER505/htk-lite
Apache-2.0
2024-11-18T20:58:08.900356+00:00
1,590,647,484,000
f36c1553ba060fd7892ff1ff5e7e43aeef7997b4
3
{ "blob_id": "f36c1553ba060fd7892ff1ff5e7e43aeef7997b4", "branch_name": "refs/heads/master", "committer_date": 1590647484000, "content_id": "5b28e16a53d70121ecb97cc41b06d60e33a79dd1", "detected_licenses": [ "MIT" ], "directory_id": "7a11eeb3d3c0381d91f81c9795b417f0ade5e26a", "extension": "py", "fi...
2.859375
stackv2
#Algorithme de réseau de neuronne fully connected sans utilisation de Keras from __future__ import print_function import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import pickle import tensorflow as tf import matplotlib.pyplot as plt X = tf.placeholder(tf.float32, [None, 28, 28, 1]) #Matrice contenant un lot d'...
75
25.88
118
13
593
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.open-never-closed_41001702859be142_0b3b67bc", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.open-never-closed", "finding_type": "best-practice", "severity": "high", "confidence": "medium", "message": "file object opened without corresponding...
5
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 42, 46 ]
[ 42, 46 ]
[ 11, 16 ]
[ 33, 38 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
NN_using_Tensorflow.py
/src/NN_using_Tensorflow.py
sirine-chahma/parking_space_detection
MIT
2024-11-18T20:58:14.143086+00:00
1,609,002,362,000
12c961c49a98ffb2bb2f555656de2c30e2622af7
2
{ "blob_id": "12c961c49a98ffb2bb2f555656de2c30e2622af7", "branch_name": "refs/heads/master", "committer_date": 1609002362000, "content_id": "745ee58e7d1034bd19b5016baf9d174d9112cbe9", "detected_licenses": [ "MIT" ], "directory_id": "8fd504b3f5ebc955c339cb2cc8c025a5d0116a82", "extension": "py", "fi...
2.390625
stackv2
from django.shortcuts import redirect from django.contrib import messages # from django.core.mail import send_mail from contacts.models import Contact def contact(request): ''' View for the inquiry form ''' if request.method == 'POST': # The data that are get posted from the form: user_id, sel...
65
38.77
80
16
497
python
[{"finding_id": "semgrep_rules.python.django.security.injection.open-redirect_2fa7be4d5edba1d6_2eb82a3b", "tool_name": "semgrep", "rule_id": "rules.python.django.security.injection.open-redirect", "finding_type": "security", "severity": "medium", "confidence": "medium", "message": "Data from request (listing_id) is pas...
3
true
[ "CWE-601", "CWE-601" ]
[ "rules.python.django.security.injection.open-redirect", "rules.python.django.security.injection.open-redirect" ]
[ "security", "security" ]
[ "MEDIUM", "MEDIUM" ]
[ "MEDIUM", "MEDIUM" ]
[ 14, 14 ]
[ 41, 65 ]
[ 9, 9 ]
[ 59, 51 ]
[ "A01:2021 - Broken Access Control", "A01:2021 - Broken Access Control" ]
[ "Data from request (listing_id) is passed to redirect(). This is an open redirect and could be exploited. Ensure you are redirecting to safe URLs by using django.utils.http.is_safe_url(). See https://cwe.mitre.org/data/definitions/601.html for more information.", "Data from request (listing_id) is passed to redir...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
views.py
/app/contacts/views.py
Akshaychdev/Usedbrains-E-market-project
MIT
2024-11-18T20:58:19.497949+00:00
1,602,041,927,000
8a4c847e89626158645daad76b9e92e10bdbdae4
3
{ "blob_id": "8a4c847e89626158645daad76b9e92e10bdbdae4", "branch_name": "refs/heads/master", "committer_date": 1602041927000, "content_id": "eda49c887d8a473117b49d9bc3af01beab4f09e7", "detected_licenses": [ "MIT" ], "directory_id": "3ff4b55ab15558ebaa62ef8e1f607b2dd1dd6e0b", "extension": "py", "fi...
2.53125
stackv2
import networkx as nx import matplotlib.pyplot as plt from xml.dom import minidom def get_sumo_data(): g = nx.grid_2d_graph(6, 6) dom = minidom.Document() nodes = dom.createElement("nodes") nodes.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance") nodes.setAttribute("xsi:noNames...
28
29.39
96
13
245
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_af5dafcff8fda5a5_a2ece099", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
3
true
[ "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 3 ]
[ 3 ]
[ 1 ]
[ 28 ]
[ "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service." ]
[ 7.5 ]
[ "LOW" ]
[ "MEDIUM" ]
process_sumo_data.py
/process_data/process_sumo_data.py
TwelveYC/road-network-modeling
MIT
2024-11-18T20:58:30.561276+00:00
1,622,726,388,000
6c9776da0c9f20ac02d892e93d0fcded5634db47
3
{ "blob_id": "6c9776da0c9f20ac02d892e93d0fcded5634db47", "branch_name": "refs/heads/master", "committer_date": 1622726388000, "content_id": "9df1a1e56595dbc2943178e129227c8fd3ef776a", "detected_licenses": [ "MIT" ], "directory_id": "43e87cb1946dddf5fd53f848192fe8c02d0f15bd", "extension": "py", "fi...
2.65625
stackv2
import os import random from collections import OrderedDict import cv2 import numpy as np import pytorch3d.transforms.rotation_conversions as rc import torch from PIL import Image from pytorch3d.renderer.cameras import get_world_to_view_transform from pytorch3d.transforms import Transform3d, Rotate from utils.params im...
321
34.33
170
20
2,997
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_44c4fb4e32203af4_c3ec49cf", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
4
true
[ "CWE-95", "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected", "rules.python.lang.security.audit.eval-detected" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 198, 200 ]
[ 198, 200 ]
[ 27, 27 ]
[ 94, 93 ]
[ "A03:2021 - Injection", "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.", "Detected the use of eval(). eval() can be dangerous if used...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
dataset.py
/e3d/segpose/dataset.py
tlwzzy/e3d
MIT
2024-11-18T20:58:37.837787+00:00
1,494,244,668,000
a5bcac60d86198e9f0c13becbfa5e4f8f422ec8f
3
{ "blob_id": "a5bcac60d86198e9f0c13becbfa5e4f8f422ec8f", "branch_name": "refs/heads/master", "committer_date": 1494244668000, "content_id": "75df9794d2d61ebafee4b3f95037bb1175bd1a69", "detected_licenses": [ "MIT" ], "directory_id": "4461a16d85572e9399670844ba15cf4f314ae6d4", "extension": "py", "fi...
2.765625
stackv2
import logging import traceback import os.path from datetime import datetime from argparse import ArgumentParser from Board.Board import Board from Library.Library import Library # from Schematic.Schematic import Schematic from xml.etree.ElementTree import ElementTree from xml.etree.ElementTree import XMLParser # n...
262
32.34
119
14
2,022
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_9465b6f99b3fc6f9_9ffc0185", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
8
true
[ "CWE-611", "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml", "rules.python.lang.security.use-defused-xml" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 11, 12 ]
[ 11, 12 ]
[ 1, 1 ]
[ 46, 44 ]
[ "A04:2017 - XML External Entities (XXE)", "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service.", "The Python documentation recommends using `defusedxml` ins...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
Start.py
/Start.py
Autohome2/Eagle2Kicad
MIT
2024-11-18T20:58:41.719916+00:00
1,601,719,836,000
5d2dc019eea7061ab4ea9a75fa2bbfc65dd2ff51
3
{ "blob_id": "5d2dc019eea7061ab4ea9a75fa2bbfc65dd2ff51", "branch_name": "refs/heads/master", "committer_date": 1601719836000, "content_id": "0bbb8070555dd20817193137e8b879d492c0b3a7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f278811c8718ee20de20754854120334dc5c09f0", "extension": "py"...
2.71875
stackv2
""" 本ライブラリ実行前に、h2dbを以下のオプションで起動する java -cp h2-1.4.200.jar org.h2.tools.Server -webAllowOthers -tcpAllowOthers -pgAllowOthers -baseDir ../data/ -ifNotExists -tcpAllowOthers 外部からの接続を許す -pgAllowOthers postgresql互換形式 -baseDir データが保存される先のDB DB名を mem:hoge とすることで、インメモリDBとして動くので何も保存されない -ifNotExists 外部接続時にテーブル作成を許可する """ impo...
144
34.88
129
17
1,373
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.formatted-sql-query_ba954e943dbb8a8a_2ffd6fa3", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.formatted-sql-query", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected possible formatted SQL query. U...
3
true
[ "CWE-89", "CWE-89", "CWE-89" ]
[ "rules.python.lang.security.audit.formatted-sql-query", "rules.python.lang.security.audit.sqli.psycopg-sqli", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "HIGH" ]
[ 129, 129, 129 ]
[ 129, 129, 129 ]
[ 9, 9, 9 ]
[ 28, 28, 28 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected possible formatted SQL query. Use parameterized queries instead.", "Detected string concatenation with a non-literal variable in a psycopg2 Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use paramet...
[ 5, 5, 7.5 ]
[ "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH" ]
h2dbgtfs.py
/h2dbgtfs.py
niyalist/GTFSDiff
Apache-2.0
2024-11-18T20:58:42.543550+00:00
1,593,831,890,000
3cda5108dccda53a5124c3463fa00c6f2ff3d582
3
{ "blob_id": "3cda5108dccda53a5124c3463fa00c6f2ff3d582", "branch_name": "refs/heads/master", "committer_date": 1593831890000, "content_id": "b89e0f426bd0e934d448dfbbb71ec87eb77fc932", "detected_licenses": [ "MIT" ], "directory_id": "25ac6df0589c6e1b79be79847061ba039c9e07fb", "extension": "py", "fi...
2.984375
stackv2
from tkinter import * from tkinter import messagebox from math import * root = Tk() root.title("Scientific Calculator") root.configure(background="powder blue") calc=Frame(root,bg="grey") calc.grid() equa = "" equation = StringVar() calculation = Entry(calc, textvariable = equation,fg="black",font=('arial',15,'bo...
202
49.22
155
12
3,513
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_a25fec928307f954_02193afb", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
43
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 31 ]
[ 31 ]
[ 28 ]
[ 38 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
scientificCalculator.py
/scientificCalculator.py
PatrickAttankurugu/Scientific-Calculator
MIT
2024-11-18T21:10:19.640376+00:00
1,639,520,358,000
80cd04b32ee1352f90a129290f1bbd58f7ede3be
3
{ "blob_id": "80cd04b32ee1352f90a129290f1bbd58f7ede3be", "branch_name": "refs/heads/master", "committer_date": 1639520358000, "content_id": "f849de365b2df211c255e43a244c901754c5ff24", "detected_licenses": [ "MIT" ], "directory_id": "28b51017bcf7f1535b6b2d0fe47c30d9f40859d6", "extension": "py", "fi...
2.53125
stackv2
#!/usr/bin/env python # This file is part of the markdown-katex project # https://github.com/mbarkhau/markdown-katex # # Copyright (c) 2019-2021 Manuel Barkhau (mbarkhau@gmail.com) - MIT License # SPDX-License-Identifier: MIT import sys import json import typing as typ import subprocess as sp import markdown_katex fro...
76
25.29
89
12
510
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_fdc11466778164a7_5bb6c51d", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 72 ]
[ 72 ]
[ 12 ]
[ 47 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
__main__.py
/src/markdown_katex/__main__.py
mbarkhau/markdown-katex
MIT
2024-11-18T21:10:19.750578+00:00
1,447,878,174,000
04cedd90f230da67eb025fcf221f36f7625cb56e
3
{ "blob_id": "04cedd90f230da67eb025fcf221f36f7625cb56e", "branch_name": "refs/heads/master", "committer_date": 1447878174000, "content_id": "26f57599e9ac1b4f93408c85e51e609105313ed2", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "3cacaa667c7dba168ad21548998c34e5eda6b0ce", "extension": "p...
2.640625
stackv2
#! /usr/bin/env python print 'starting' import os import sys import numpy import matplotlib #matplotlib.use('cairo') from matplotlib.gridspec import GridSpec from matplotlib.ticker import MultipleLocator import pylab from mvn import Mvn from mvn.matrix import Matrix import mvn.plotTools from collections import O...
248
24.12
84
14
1,586
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_3f5d8e0f0eebddb4_2cdba0fa", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
2
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 247 ]
[ 247 ]
[ 5 ]
[ 63 ]
[ "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
kalman.py
/mvn/examples/kalman.py
MarkDaoust/mvn
BSD-2-Clause
2024-11-18T21:10:19.928457+00:00
1,622,451,798,000
e899ce0fdb0486a599691eae5badd2734a65f5fc
3
{ "blob_id": "e899ce0fdb0486a599691eae5badd2734a65f5fc", "branch_name": "refs/heads/main", "committer_date": 1622451798000, "content_id": "0c20ad4a496883c040336b54a9a98dcdea0f543d", "detected_licenses": [ "Unlicense" ], "directory_id": "620f5eda6202087ffa190caf9fad8379e166eeff", "extension": "py", ...
3.0625
stackv2
# coding:utf-8 import os import numpy as np from torchvision.datasets import ImageFolder import torchvision.transforms as transforms import pickle """ 在训练前先运行该函数获得数据的均值和标准差 """ class Dataloader(): def __init__(self, isize, dataroot): # 训练,验证,测试数据集文件夹名 self.isize = isize self.dataroot ...
66
32.91
109
16
661
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_e4b21c77e39e224d_b02e522e", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
2
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 55, 56 ]
[ 55, 56 ]
[ 13, 13 ]
[ 39, 40 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
get_mean_std.py
/MT-CNV/get_mean_std.py
Wangzheaos/DARD-Net
Unlicense
2024-11-18T21:10:21.975356+00:00
1,596,189,140,000
ff6b4ec967a5e216c45cd97dd0c7124359fd0361
3
{ "blob_id": "ff6b4ec967a5e216c45cd97dd0c7124359fd0361", "branch_name": "refs/heads/master", "committer_date": 1596189140000, "content_id": "e6db946e3bae461274bb74d4d4c090b67ed40c52", "detected_licenses": [ "MIT" ], "directory_id": "6ca9a7ed179ed96857c86dd91d5f81ad07be4690", "extension": "py", "fi...
3.28125
stackv2
from sqlite3 import * from math import * def init_db(): db = connect(database='world.db') return db.cursor(), db def query_data(country_name, count, db_cursor): sql = "select city.Name from country,city where city.CountryCode=country.code" \ " and country.name='{}' and city.population>={} orde...
49
35.51
111
15
445
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.formatted-sql-query_bb79353fa5826c31_27757485", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.formatted-sql-query", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected possible formatted SQL query. U...
3
true
[ "CWE-89", "CWE-89" ]
[ "rules.python.lang.security.audit.formatted-sql-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "HIGH" ]
[ 13, 13 ]
[ 13, 13 ]
[ 5, 5 ]
[ 27, 27 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected possible formatted SQL query. Use parameterized queries instead.", "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepa...
[ 5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
run.py
/MixNotes/电影简介_贝叶斯/run.py
nickliqian/keep_learning
MIT
2024-11-18T21:10:23.271528+00:00
1,690,569,342,000
99104e1f5f3d9f194dddfbe455aff487f16a77ad
3
{ "blob_id": "99104e1f5f3d9f194dddfbe455aff487f16a77ad", "branch_name": "refs/heads/master", "committer_date": 1690569342000, "content_id": "2a32b19ec626ac2de8509cb3fd2593cd6dcb18a7", "detected_licenses": [ "MIT" ], "directory_id": "4f85b712215f5f1d8cdfa22199da5bde970c072e", "extension": "py", "fi...
2.890625
stackv2
"""This script plot_data_interactive_aerobotany.py takes the output from aggregate_drawing_demo.csv which is the clustered circle centres for the original Aerobotany project. It plots the data points and circles the clusters on the original subject image at the appropriate scale. A legend and title are added. The so...
213
44.57
107
18
2,480
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_58e7fce1240429ea_812a8ee2", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
5
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 78 ]
[ 78 ]
[ 5 ]
[ 46 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
plot_data_interactive_aerobotany.py
/other_code/Building_blocks/Plot_overlays/plot_data_interactive_aerobotany.py
zooniverse/Data-digging
MIT
2024-11-18T21:10:26.430761+00:00
1,510,780,875,000
495f4e6b34a95e523078f50fba8270668c10262c
2
{ "blob_id": "495f4e6b34a95e523078f50fba8270668c10262c", "branch_name": "refs/heads/master", "committer_date": 1510780875000, "content_id": "86105278129bcccd3f35f634b19d94e27d8a7c58", "detected_licenses": [ "MIT" ], "directory_id": "1a34472e45df99176ba0731f9dbdd5fa2fe9fe13", "extension": "py", "fi...
2.421875
stackv2
""" Profile all bench_list """ import subprocess as sp import pandas as pd import argparse from util import * import socket rpt_cmd = "opreport -l -n".split() # read a list of interested kernels def trim_func_param(infile, outfile): with open(infile, "r") as inf, open(outfile, "w") as outf: for line in ...
236
37.57
110
20
1,944
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_2082516de4467d73_346c0f45", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
23
true
[ "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.danger...
[ "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 59, 79, 80, 111, 183, 183 ]
[ 59, 79, 80, 111, 183, 183 ]
[ 21, 25, 25, 21, 29, 43 ]
[ 87, 65, 76, 56, 52, 51 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess functi...
[ 7.5, 7.5, 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "MEDIUM" ]
prof_blas.py
/prof_blas.py
doublsky/MLProfile
MIT
2024-11-18T21:10:29.994022+00:00
1,618,932,681,000
7b3ccef67369b1612058889bc11a616d2120c85d
2
{ "blob_id": "7b3ccef67369b1612058889bc11a616d2120c85d", "branch_name": "refs/heads/master", "committer_date": 1618932681000, "content_id": "bef1e3818c8db408fa779b2b16bf07b6ff794e1a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "744d7561fa7dfe29c2730a9c65fc1862cfb52b56", "extension": "py"...
2.3125
stackv2
import pickle with open("/home/why2011btv/predicted_logit.txt",'rb') as file: bb = pickle.load(file) print(bb) import h5py import json outfile = '/home/why2011btv/KG-embedding/20180727.hdf5' with h5py.File(outfile, 'r') as fin: a = fin['embedding'][...] ent_emb = a[0:14541,:] rel_emb = a[14541:14778,:]...
28
23.11
74
9
232
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_bdb3a3126c8445d3_1fc32927", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
2
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 3 ]
[ 3 ]
[ 10 ]
[ 27 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
emb_to_json_for_input_to_OpenKE.py
/emb_to_json_for_input_to_OpenKE.py
why2011btv/Dolores_AKBC20
Apache-2.0
2024-11-18T21:10:30.215510+00:00
1,618,935,083,000
2718eac861fa14f3c8156e013f30f8e8f5baa12f
2
{ "blob_id": "2718eac861fa14f3c8156e013f30f8e8f5baa12f", "branch_name": "refs/heads/main", "committer_date": 1618935083000, "content_id": "5754e81bd8fdb01a30ff6d5936477b24ac1ec259", "detected_licenses": [ "MIT" ], "directory_id": "595fc0fb6985bc58dd1a610e0662064a33dd8795", "extension": "py", "file...
2.3125
stackv2
#!/usr/bin/python3 #-*- coding:utf-8 -*- import time from datetime import datetime import requests import json import argparse import sys import platform import shutil import os import random banner_font = ''' Author : Dxvistxr CMS Identificator With API => \033[1;96mhttps://whatcms.org\033[00m 2019 ...
121
33.28
105
15
1,425
python
[{"finding_id": "semgrep_rules.python.requests.best-practice.use-raise-for-status_c2a98d0f0a1f84cc_3cda127a", "tool_name": "semgrep", "rule_id": "rules.python.requests.best-practice.use-raise-for-status", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "There's an HTTP request ...
8
true
[ "CWE-78", "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 90, 94, 98, 102 ]
[ 90, 94, 98, 102 ]
[ 17, 17, 17, 17 ]
[ 48, 48, 48, 48 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.", "Found dynamic conte...
[ 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
cmsid.py
/CMSID/cmsid.py
yanghaoi/Train-2018-2020
MIT
2024-11-18T21:10:31.037998+00:00
1,474,702,247,000
7ae80e700f5cf26a6c91661f9c6968256331cb8f
3
{ "blob_id": "7ae80e700f5cf26a6c91661f9c6968256331cb8f", "branch_name": "refs/heads/master", "committer_date": 1474702247000, "content_id": "c860aa871017f7d9b1f88c0b2c76497cd01c1711", "detected_licenses": [ "MIT" ], "directory_id": "0aff3315794d87dc1d9caeb9bb049155fcec7ed8", "extension": "py", "fi...
3.21875
stackv2
""" Create png image of map given a url containing Layers """ import os import json from urllib.request import urlopen import subprocess def create_map_layer_image(url, layername, output_dir): output_filename = "{}.png".format(layername) output_filepath = os.path.join(os.path.abspath(output_dir), output_filen...
57
36.32
104
18
416
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_eed056013c9b11b9_241d397f", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 20 ]
[ 20 ]
[ 5 ]
[ 31 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
get_map_layer_images.py
/src/phantomjs/get_map_layer_images.py
monkut/safecasttiles
MIT
2024-11-18T21:10:38.584837+00:00
1,618,673,716,000
79449528a034e547fd5498dfe62772b1342e673e
2
{ "blob_id": "79449528a034e547fd5498dfe62772b1342e673e", "branch_name": "refs/heads/master", "committer_date": 1618673716000, "content_id": "f382884490f51edc8f8fdead52da4719a5fc06af", "detected_licenses": [ "MIT" ], "directory_id": "a38af2694402ecdb056fa85be390a6af8ecb4f50", "extension": "py", "fi...
2.4375
stackv2
# -*- coding: utf-8 -*- from rdkit import RDLogger, Chem from rdkit.Chem import MolToSmiles, MolFromSmiles, Draw from rdkit.Chem.QED import qed from chainer_chemistry import datasets from chainer_chemistry.dataset.preprocessors.ggnn_preprocessor import GGNNPreprocessor import numpy as np import networkx as nx import ...
306
33.45
117
15
2,867
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_404f6e8fdac85e65_13ea4952", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
7
true
[ "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.pyth...
[ "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 78, 79, 80, 86, 87, 88 ]
[ 78, 79, 80, 86, 87, 88 ]
[ 9, 9, 9, 22, 26, 21 ]
[ 35, 39, 34, 36, 40, 35 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5, 5, 5, 5, 5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
trainQM9.py
/trainQM9.py
dmzou/SCAT
MIT
2024-11-18T21:10:44.227037+00:00
1,382,469,004,000
f37347bab75fd71646ad2028021484f2edb2a38b
3
{ "blob_id": "f37347bab75fd71646ad2028021484f2edb2a38b", "branch_name": "refs/heads/master", "committer_date": 1382469004000, "content_id": "05c6db51d225c3bf912c468d9f274bd636efb1d5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "04adbf7b2a2e22c37bc8fd034e8fb2071e05491a", "extension": "p...
2.59375
stackv2
""" Implements most file handling functions for pygrid """ # Copyright (c) 2013 Felix Brockherde # License: BSD import shutil import os from os.path import join as pjoin from os.path import exists as pexists import cPickle as pickle import time try: import numpy except: numpy = None def _save_data(filename,...
222
27.81
79
18
1,470
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_592eddf781093d51_a7196b10", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
17
true
[ "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-cPickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-cPickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-cPickle", "rules.p...
[ "security", "security", "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 27, 27, 39, 39, 71, 71, 81, 81 ]
[ 27, 27, 39, 39, 76, 76, 81, 81 ]
[ 13, 13, 20, 20, 9, 9, 16, 16 ]
[ 58, 58, 34, 34, 66, 66, 30, 30 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserial...
[ "Avoid using `cPickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead t...
[ 5, 5, 5, 5, 5, 5, 5, 5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
file_handling.py
/pygrid/file_handling.py
flxb/pygrid
BSD-2-Clause
2024-11-18T21:10:47.375780+00:00
1,418,777,182,000
b868ac0f2b137bdb45cd633a6fdb8f4c7e30f0f8
2
{ "blob_id": "b868ac0f2b137bdb45cd633a6fdb8f4c7e30f0f8", "branch_name": "refs/heads/master", "committer_date": 1418777182000, "content_id": "17c06cbb69504005a99e8f619f85f3cb1b75de22", "detected_licenses": [ "MIT" ], "directory_id": "ff1dd6cdc43d3dd0afbc5c86b3aae80cfc85aba2", "extension": "py", "fi...
2.40625
stackv2
#!/usr/bin/env python import os import MySQLdb import sys import re import wikipedia from bs4 import BeautifulSoup PROJECT_DIR = os.path.abspath( os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) DATA_DIR = os.path.abspath( os.path.join(PROJECT_DIR, '..', 'data')) sys.path.insert(0, PR...
409
30.7
128
24
3,235
python
[{"finding_id": "semgrep_rules.python.lang.security.dangerous-globals-use_e858dc3388309c59_f08b968e", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.dangerous-globals-use", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Found non static data as an index to 'globals()'...
11
true
[ "CWE-96", "CWE-89", "CWE-89", "CWE-89", "CWE-89", "CWE-89", "CWE-89", "CWE-89" ]
[ "rules.python.lang.security.dangerous-globals-use", "rules.python.lang.security.audit.formatted-sql-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "ru...
[ "security", "security", "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 40, 222, 222, 309, 360, 368, 389, 403 ]
[ 40, 222, 222, 309, 360, 368, 389, 403 ]
[ 13, 5, 5, 17, 13, 17, 21, 17 ]
[ 27, 21, 21, 32, 31, 36, 36, 36 ]
[ "A03:2021 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Found non static data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'.", "Detected possible formatted SQL query. Use parameterized queries instead.", "Avoiding SQL string concatenation: untr...
[ 5, 5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
populate.py
/IsPepsiOkay/database/populate.py
kharddie/is-pepsi-okay
MIT
2024-11-18T21:10:48.260338+00:00
1,605,326,812,000
b692f4f341c13413deb3bbf81b963a05244419af
3
{ "blob_id": "b692f4f341c13413deb3bbf81b963a05244419af", "branch_name": "refs/heads/master", "committer_date": 1605326812000, "content_id": "4affbbc6e81f8bf3ed4955bc4751c3bfc02c87c9", "detected_licenses": [ "MIT" ], "directory_id": "ffe0f2062021892d3c6c1c14efa8f6646ef8a0ba", "extension": "py", "fi...
2.65625
stackv2
from flask import Flask, request from flask_restful import Resource, Api, reqparse from sqlalchemy import create_engine from json import dumps from flask import jsonify # Connecting to the DB db_connect = create_engine('sqlite:///sample.db') # Creating the application app = Flask(__name__) api = Api(app) # API to ge...
58
27.22
71
19
367
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.formatted-sql-query_468df6beb5447607_ee2b5fd7", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.formatted-sql-query", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected possible formatted SQL query. U...
4
true
[ "CWE-89", "CWE-89", "CWE-915", "CWE-704" ]
[ "rules.python.lang.security.audit.formatted-sql-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.django.security.injection.tainted-sql-string", "rules.python.flask.security.injection.tainted-sql-string" ]
[ "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "MEDIUM" ]
[ "MEDIUM", "HIGH", "HIGH", "HIGH" ]
[ 32, 32, 33, 33 ]
[ 33, 33, 33, 33 ]
[ 17, 17, 13, 13 ]
[ 72, 72, 71, 71 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A08:2021 - Software and Data Integrity Failures", "A01:2017 - Injection" ]
[ "Detected possible formatted SQL query. Use parameterized queries instead.", "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepa...
[ 5, 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "MEDIUM", "MEDIUM" ]
[ "HIGH", "HIGH", "LOW", "MEDIUM" ]
server.py
/server/server.py
yrahul3910/csc510-project
MIT
2024-11-18T21:10:56.828204+00:00
1,618,422,711,000
21cca27e59285637c938e361e9850a4e37706be5
3
{ "blob_id": "21cca27e59285637c938e361e9850a4e37706be5", "branch_name": "refs/heads/master", "committer_date": 1618422711000, "content_id": "48190f10a42757b7594a48d84bc1426ddf6bef5b", "detected_licenses": [ "MIT" ], "directory_id": "7b540dc491b85bbff5d6233db1c6fe3e0ee47138", "extension": "py", "fi...
2.53125
stackv2
import numpy as np import os import string import re import tensorflow as tf tf.compat.v1.enable_eager_execution() def probability(n): try: counts = int(n) except: return 0. return 2.**(-counts/1000.) def find_rows(filename): with open(filename) as f: contents=f.read() res...
158
32.49
136
18
1,501
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_dfcc26bc45c2f115_1a4fa2ea", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
7
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 94, 116 ]
[ 94, 116 ]
[ 9, 9 ]
[ 39, 67 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.", "Found dynamic conte...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
sequence.py
/prospr/sequence.py
bbyun28/prospr
MIT
2024-11-18T21:10:58.005473+00:00
1,559,690,728,000
aca1fbdc4349e1faf6400f99772276cec8f4304d
2
{ "blob_id": "aca1fbdc4349e1faf6400f99772276cec8f4304d", "branch_name": "refs/heads/master", "committer_date": 1559690728000, "content_id": "36498c498afee59cb4ba0febd0216377d539c431", "detected_licenses": [ "MIT" ], "directory_id": "b2d2ae25aede5ee79f2167914daea66b96e598ff", "extension": "py", "fi...
2.5
stackv2
import os import socket from datetime import datetime from subprocess import getstatusoutput import boto3 from botocore.exceptions import ClientError AWS_ACCESS_KEY_ID = os.getenv('AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = os.getenv('AWS_SECRET_ACCESS_KEY') AWS_S3_BUCKET = os.getenv('AWS_S3_BUCKET') if not (AWS_AC...
81
24.59
104
17
517
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_f7f717c85cea8053_b30a5fff", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 42, 50 ]
[ 42, 50 ]
[ 21, 21 ]
[ 54, 45 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'getstatusoutput' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subpro...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
main.py
/main.py
WesleyBatista/raspiii
MIT
2024-11-18T21:11:01.828972+00:00
1,597,068,944,000
8c83fccd62fcf84524d88bf414a45ab44486936b
3
{ "blob_id": "8c83fccd62fcf84524d88bf414a45ab44486936b", "branch_name": "refs/heads/main", "committer_date": 1597068944000, "content_id": "abe837f7236af01b0f09f4e467cdf0a3b3f4629c", "detected_licenses": [ "MIT" ], "directory_id": "1266f756e04f96a58b4a02a18499506fbdbe0391", "extension": "py", "file...
2.515625
stackv2
"""Copy and/or move files.""" # standard library import datetime import glob import json import os import re import shutil import subprocess import time # first party import delphi.github_deploy_repo.file_operations as file_operations # header for generated files HEADER_WIDTH = 55 HEADER_LINES = [ # output from `f...
158
33.77
77
16
1,606
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_46266cf4bbc22da4_f4b5f8b1", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
7
true
[ "CWE-78", "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true" ]
[ "security", "security", "security", "security" ]
[ "LOW", "MEDIUM", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 119, 119, 122, 122 ]
[ 119, 119, 122, 122 ]
[ 5, 38, 5, 38 ]
[ 43, 42, 43, 42 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Found 'subprocess' f...
[ 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "HIGH", "LOW", "HIGH" ]
[ "HIGH", "LOW", "HIGH", "LOW" ]
copymove.py
/src/actions/copymove.py
cmu-delphi/github-deploy-repo
MIT
2024-11-18T21:11:03.458634+00:00
1,600,208,766,000
3d38739238091efb3b6ad713eed7cec59b0a1554
2
{ "blob_id": "3d38739238091efb3b6ad713eed7cec59b0a1554", "branch_name": "refs/heads/master", "committer_date": 1600208766000, "content_id": "f70cc5a1bcdac716b4c8be3c121f38829038f099", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0f58bcae13be4d9f5d1be2cbd6fc3d19a6529745", "extension": "py"...
2.4375
stackv2
# # 2020 ExpertSystem # '''Script for generating predictions for the coinform250 dataset using the acred predictor See https://github.com/co-inform/Datasets See also scripts/fetch-data.sh, which should download the input json file and place it in the `data/evaluation/` folder. ''' import argparse import time import ...
143
30.61
98
16
1,131
python
[{"finding_id": "semgrep_rules.python.requests.security.disabled-cert-validation_3bfd6a6299d9c740_b1a46ef1", "tool_name": "semgrep", "rule_id": "rules.python.requests.security.disabled-cert-validation", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Certificate verification has been ex...
3
true
[ "CWE-295" ]
[ "rules.python.requests.security.disabled-cert-validation" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 55 ]
[ 57 ]
[ 12 ]
[ 51 ]
[ "A03:2017 - Sensitive Data Exposure" ]
[ "Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation." ]
[ 7.5 ]
[ "LOW" ]
[ "LOW" ]
pred_coinfo250.py
/scripts/pred_coinfo250.py
expertailab/acred
Apache-2.0
2024-11-18T21:11:03.794550+00:00
1,623,358,765,000
94cf61a943d61852aa1a8a804e513f9d09168011
3
{ "blob_id": "94cf61a943d61852aa1a8a804e513f9d09168011", "branch_name": "refs/heads/main", "committer_date": 1623358765000, "content_id": "c75aab14df84c29a8c9d05a99df39da6ff1a6643", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cd3ccc969d6e31dce1a0cdc21de71899ab670a46", "extension": "py", ...
3.0625
stackv2
#!/usr/bin/python3 """Aggregate testlogs XMLs into a single XML file This scripts takes a directory as an input, collects all XML files that exist in the directory tree and aggregates results for testsuites and testcases that are present within. The tests that are run multiple times are indexed with a numeric suffix c...
70
33.67
78
19
532
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_efa3f9a5a4259b5e_e7a684a6", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
2
true
[ "CWE-611", "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml", "rules.python.lang.security.use-defused-xml-parse" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 21, 28 ]
[ 21, 28 ]
[ 1, 12 ]
[ 35, 30 ]
[ "A04:2017 - XML External Entities (XXE)", "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service.", "The native Python `xml` library is vulnerable to XML Exter...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
aggregate_xmls.py
/agp-7.1.0-alpha01/tools/base/bazel/qa/utils/aggregate_xmls.py
jomof/CppBuildCacheWorkInProgress
Apache-2.0
2024-11-18T21:11:04.985914+00:00
1,531,251,619,000
42a836d108a4933a59e3609c40d2502919b18f11
5
{ "blob_id": "42a836d108a4933a59e3609c40d2502919b18f11", "branch_name": "refs/heads/master", "committer_date": 1531251619000, "content_id": "c59ceb0c719bb5bdcb91d8e642bad9b74fe1d16c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e939c75bd882ae3e55c2c8b58fb0302f0fea6c41", "extension": "py"...
4.84375
stackv2
# You can use the input() function to ask for input: # n = input("Enter number: ") # print(n) # To build a simple calculator we could just rely on the eval function of Python: # print(eval(input("Expression: "))) # e.g. 21 + 12 # Store result in variable and it can be used in expression: while True: exp = input...
18
35.28
135
9
180
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_0ace61f8d09a3347_8438d801", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
1
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 11 ]
[ 11 ]
[ 9 ]
[ 18 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
calculator.py
/exercises/python intro/google/calculator.py
Artimbocca/python
Apache-2.0
2024-11-18T21:11:07.224993+00:00
1,603,899,565,000
d264105f3b2bd59fd0696039fc19f48ff69e27f3
3
{ "blob_id": "d264105f3b2bd59fd0696039fc19f48ff69e27f3", "branch_name": "refs/heads/master", "committer_date": 1603899565000, "content_id": "fe2a5a508394cd21427a0bc5e283a6fb5eecc9d2", "detected_licenses": [ "CC0-1.0" ], "directory_id": "e2d2988ee51c2084d0e58bf3c8e7d778f32330b9", "extension": "py", ...
2.765625
stackv2
import logging from selenium.webdriver.support.ui import Select import subprocess import os import pickle import requests import sqlite3 from time import sleep def get_years(driver): '''Retrieve a list of fiscal years available in the FCRA database''' years = [] driver.get('https://fcraonline.nic.in/fc_qtr...
295
40.5
88
23
2,756
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.arbitrary-sleep_cdac9df42228b333_c7a6d9cf", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.arbitrary-sleep", "finding_type": "best-practice", "severity": "high", "confidence": "medium", "message": "time.sleep() call; did you mean to leave thi...
13
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 53, 81 ]
[ 53, 81 ]
[ 5, 5 ]
[ 54, 64 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
modules_dl.py
/data-sets/spfrantz-code/modules_dl.py
ruralhuman/accountability
CC0-1.0
2024-11-18T21:11:08.494988+00:00
1,510,267,898,000
8c77c556534fee53c2d8b3f8323b07fa4aa34f7a
2
{ "blob_id": "8c77c556534fee53c2d8b3f8323b07fa4aa34f7a", "branch_name": "refs/heads/master", "committer_date": 1510267898000, "content_id": "88dc5fde4a0f1885bfec2efdae1dc685064bf827", "detected_licenses": [ "MIT" ], "directory_id": "17b9f098d783b58a65a2f4a2d51c7d1ae19285cf", "extension": "py", "fi...
2.4375
stackv2
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import paho.mqtt.client as paho import json import time import uuid import Queue import subprocess import unicodedata MQTT_SERVER = 'localhost' MAYORDOMO_TOPIC = 'rcr/Mayordomo' SPEAK_TOPIC = 'rcr/Speak' PLAYER_TOPIC = 'rcr/MusicPlay...
231
32.12
104
19
2,122
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_043469feca811abf_41befc63", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
10
true
[ "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.danger...
[ "security", "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 95, 154, 172, 173, 174, 205, 211 ]
[ 95, 154, 172, 173, 174, 205, 211 ]
[ 5, 13, 13, 13, 13, 13, 13 ]
[ 83, 103, 86, 91, 88, 87, 73 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess funct...
[ 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
Mayordomo.py
/Mayordomo.py
elenajimenezm/Mayordomo
MIT
2024-11-18T21:11:16.262414+00:00
1,606,450,715,000
0c8d03f5d906e864de8af65afce16732d44f0c83
2
{ "blob_id": "0c8d03f5d906e864de8af65afce16732d44f0c83", "branch_name": "refs/heads/master", "committer_date": 1606450715000, "content_id": "7950d5690cb9cdf85abbba0ca2ddaf60421183b3", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "2756f2aa3e67805e59832d7e74030b824ab4e674", "extension": "p...
2.40625
stackv2
#!/usr/bin/python import sys import os import time import datetime from datetime import timedelta import requests from bs4 import BeautifulSoup from ftplib import FTP #if len(sys.argv) != 2: # print >>sys.stderr, "Useage: ",sys.argv[0]," [YYYY_MM_DD]" # quit() #date = sys.argv[1] # get current date and time mi...
107
27.96
106
17
872
python
[{"finding_id": "semgrep_rules.python.requests.best-practice.use-raise-for-status_eeb474d05e8588cc_7ad9fdc5", "tool_name": "semgrep", "rule_id": "rules.python.requests.best-practice.use-raise-for-status", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "There's an HTTP request ...
6
true
[ "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-tainted-env-args" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH" ]
[ 60, 86, 86 ]
[ 60, 86, 86 ]
[ 9, 9, 9 ]
[ 23, 23, 23 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.", "Found dynamic conte...
[ 7.5, 7.5, 7.5 ]
[ "LOW", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH" ]
ftpCSapr2Images.py
/projDir/uw/scripts/ftpCSapr2Images.py
NCAR/lrose-projects-relampago
BSD-2-Clause
2024-11-18T21:11:17.075376+00:00
1,594,920,890,000
09bcfd09745e1bdc759abbe87c2eb4a812cb6141
2
{ "blob_id": "09bcfd09745e1bdc759abbe87c2eb4a812cb6141", "branch_name": "refs/heads/master", "committer_date": 1594920890000, "content_id": "9c3350384664a220270e4489361ade38e0b776fe", "detected_licenses": [ "MIT" ], "directory_id": "e472833ac2c9f7ecc0c5c87d26d716615a9436ec", "extension": "py", "fi...
2.484375
stackv2
import io import matplotlib.pyplot as plt import matplotlib.image as mpimg import glob import cv2 import numpy as np import pickle def calibrate_camera(): '''use calibration images to automatically calculate the undistortion coefficients''' # initialzing imgpoints = [] # 2d image world objpoints = [] #...
35
31.77
96
13
322
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_85d2f06c1444c93f_b54970a7", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
1
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 35 ]
[ 35 ]
[ 9 ]
[ 44 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
camera_cal.py
/camera_cal.py
rajath12/Advanced_Lane_Lines
MIT
2024-11-18T21:11:18.877410+00:00
1,431,694,191,000
a7986fc4856134f491a10dca266409bf04d3aa39
3
{ "blob_id": "a7986fc4856134f491a10dca266409bf04d3aa39", "branch_name": "refs/heads/master", "committer_date": 1431694191000, "content_id": "cb30cebdf36a84e3abd6762a7ac94009c72c9942", "detected_licenses": [ "MIT" ], "directory_id": "35498c1db5b9eb66aeeaef7855213df317288882", "extension": "py", "fi...
2.59375
stackv2
__author__ = 'kian' import os import time from subprocess import Popen # This file is needed to loop over the different keys and produce their .wav file # NB This uses the bash command 'sed' ! letters = ['A', 'Ab', 'Ad', 'B', 'C', 'Cd', 'D', 'Dd', 'E', 'F', 'Fd', 'G'] nums = ['2', '3', '4', '5'] moduleNext = None par =...
51
37.47
116
20
527
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-system-call-audit_495d7138b35a8dcd_6eb60e77", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-system-call-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Found dynamic content used...
5
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit", "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 40, 43 ]
[ 40, 43 ]
[ 13, 13 ]
[ 42, 44 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.", "Found dynamic conte...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
renamer.py
/renamer.py
kianvde/PianoSimulation
MIT
2024-11-18T19:03:18.415945+00:00
1,421,517,685,000
fa30b9ba4a29ebf791629079edf3f480058326bd
3
{ "blob_id": "fa30b9ba4a29ebf791629079edf3f480058326bd", "branch_name": "refs/heads/master", "committer_date": 1421517685000, "content_id": "8001a5fac737c7345bbc3102d5ac7693f1fb9621", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "f7565bbadf9e3f1217c96388a953179e2fe22cd2...
2.671875
stackv2
""" Dynamic synaptic weight implementing phenomenological short term depression and facilitation. Description: Implemented is the ODE form of the short-term depression and facilitation model as described Eq (2) and Eq (3) in [1] or Eq (6) in [2], whereby Eq (2) in [1] seems to have an error in the sub...
61
30.38
97
13
570
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-system-call-audit_64c9592c3131a1ab_3aebdcc0", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-system-call-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Found dynamic content used...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 61 ]
[ 61 ]
[ 5 ]
[ 69 ]
[ "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
markram_synapse_dynamics.py
/lib9ml/python/nineml/examples/examples_from_trunk_pre_merge/AL/markram_synapse_dynamics.py
iraikov/nineml
BSD-3-Clause,BSD-2-Clause
2024-11-18T19:03:24.423031+00:00
1,495,456,731,000
182de9b68255fba10d34b354b19c0b8db0d42e34
3
{ "blob_id": "182de9b68255fba10d34b354b19c0b8db0d42e34", "branch_name": "refs/heads/master", "committer_date": 1495459508000, "content_id": "ba24619b3666e8a3934a54d7aff5d9ed4edf3c9a", "detected_licenses": [ "MIT" ], "directory_id": "36c1b439c4d4877806e008d8af1ae95c1477fbeb", "extension": "py", "fi...
3.015625
stackv2
from __future__ import division from math import ceil, floor from itertools import permutations as p, combinations as c def safe_eval(expr): try: return eval(expr) except ZeroDivisionError: return 0 max_cons, max_abcd = 0, 0 operators = ['+', '-', '*', '/']*3 nos_set = [str(i) for i in xrange...
41
26.24
76
15
375
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_18d6942b04b66c68_77d38961", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
1
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 7 ]
[ 7 ]
[ 16 ]
[ 26 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
93.py
/src/solutions/93.py
bshankar/euler
MIT
2024-11-18T19:03:31.210634+00:00
1,549,638,588,000
2a5951d4d64473aba067036776bd9e8a1c09af98
3
{ "blob_id": "2a5951d4d64473aba067036776bd9e8a1c09af98", "branch_name": "refs/heads/master", "committer_date": 1549638588000, "content_id": "6a802ee31135ec1a99d1534f746c936e24330642", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a2b7e4d364c66e8f2fb54a9ee4d247099310251f", "extension": "p...
2.5625
stackv2
import os import pandas as pd import pymongo import redis import socket import tempfile import cPickle import subprocess import shutil import vislab def zero_results(collection, query): return collection.find(query).limit(1).count() == 0 def exclude_ids_in_collection(image_ids, collection): """ Exclude ...
202
26.52
95
17
1,330
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_4599d30ce0f657ff_73424ac5", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
6
true
[ "CWE-502", "CWE-78" ]
[ "rules.python.lang.security.deserialization.avoid-cPickle", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "HIGH" ]
[ 101, 166 ]
[ 101, 167 ]
[ 9, 9 ]
[ 43, 67 ]
[ "A08:2017 - Insecure Deserialization", "A01:2017 - Injection" ]
[ "Avoid using `cPickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Detected subprocess function 'Popen' without a...
[ 5, 7.5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "HIGH" ]
util.py
/vislab/util.py
asanakoy/vislab
BSD-2-Clause
2024-11-18T19:03:35.595898+00:00
1,608,905,044,000
188d2aa2fb2e3be903cdc96de9ccceb7a79e6318
4
{ "blob_id": "188d2aa2fb2e3be903cdc96de9ccceb7a79e6318", "branch_name": "refs/heads/master", "committer_date": 1608905044000, "content_id": "4f6bd5e6a5de30684993d7daf90749aecc6eebee", "detected_licenses": [ "MIT" ], "directory_id": "857fc21a40aa32d2a57637de1c723e4ab51062ff", "extension": "py", "fi...
3.96875
stackv2
#!/usr/bin/evn python3 # coding:utf-8 # 009_03.py 的另一种改进 def collect_prime(n): # (*) global prime_lst # 话说回来,这句不写也行 for i in range(2, int(n**0.5)+1): if n % i == 0: prime_lst.append(str(i)) return collect_prime(n//i) prime_lst.append(str(n)) # 最后一个质因数 retu...
38
22.84
79
13
279
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.eval-detected_516cf7045eafa8d0_2601412c", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.eval-detected", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected the use of eval(). eval() can be dangerous ...
1
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 19 ]
[ 19 ]
[ 34 ]
[ 49 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
009_05.py
/FishCDailyQuestion/ex001-010/Python3_009/009_05.py
YorkFish/git_study
MIT
2024-11-18T19:03:35.854214+00:00
126,230,400,000
d2a02b5b0e5d5390f54c6c0c85a82122b60fa408
3
{ "blob_id": "d2a02b5b0e5d5390f54c6c0c85a82122b60fa408", "branch_name": "refs/heads/master", "committer_date": 1466765588000, "content_id": "bd0e1b55a6e9b433b218ebcedad56fab54a72ed0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b6b06f676a0435b32d3e323381b9f6fa67d83cae", "extension": "py"...
2.65625
stackv2
#!/usr/bin/env python """ Markdown documentation generator and checker. Generate HTML documentation from Markdown files in the current working directory, and check that their links are valid. """ import BaseHTTPServer import argparse import itertools import os import re import socket import string import subprocess ...
176
32.2
79
14
1,336
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_3fa683d34e67ea54_32c7ffc7", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
5
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-tainted-env-args" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 86, 87 ]
[ 88, 87 ]
[ 13, 9 ]
[ 56, 48 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess funct...
[ 7.5, 7.5 ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "MEDIUM" ]
generate.py
/tools/generate.py
sunfishcode/design
Apache-2.0
2024-11-18T19:03:36.735971+00:00
1,689,003,010,000
3d39d6fe505bb1d96a6515d531f9d229fc2b363c
3
{ "blob_id": "3d39d6fe505bb1d96a6515d531f9d229fc2b363c", "branch_name": "refs/heads/main", "committer_date": 1689003010000, "content_id": "9958c250754549e2994a6ac5f334b0014ace5303", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "64f5452be7258631986b980448629c6b189c3624", "exten...
2.640625
stackv2
""" Author: Michael S. P. Kelley Background subtract and de-stripe NIRSpec IFU data, then run the stage 2 spectroscopic pipeline. NIRSpec observations of 22P/Kopff from program 1252 observed the comet at all requested instrument settings, then moved to the background and repeated the observation sequence. This is no...
103
35.89
80
14
973
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-system-call-audit_696da506395b1c2e_59c01ba9", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-system-call-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Found dynamic content used...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-system-call-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 59 ]
[ 59 ]
[ 5 ]
[ 51 ]
[ "A01:2017 - Injection" ]
[ "Found dynamic content used in a system call. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
spec2.py
/nirspec/backgrounds/spec2.py
mkelley/jwst-comets
MIT,BSD-3-Clause
2024-11-18T19:03:41.179237+00:00
1,524,986,437,000
bf39282cb4f1850cea1807ebeb0e7811f47035a5
2
{ "blob_id": "bf39282cb4f1850cea1807ebeb0e7811f47035a5", "branch_name": "refs/heads/master", "committer_date": 1524986437000, "content_id": "62e2d6cc2876b534f8977d14e4f215f4893a779a", "detected_licenses": [ "MIT" ], "directory_id": "882797fdb8a311796969a882a81fe76aac8becb3", "extension": "py", "fi...
2.46875
stackv2
from __future__ import print_function, division import torch import torch.optim as optim import torch.nn.functional as F from torch.autograd import Variable import time from datetime import datetime import os import copy import json import argparse import pickle from data_loader.data_loader import get_data_loaders fro...
128
40.6
133
20
1,231
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_12400758abd4cb9b_94780887", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
2
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 120 ]
[ 120 ]
[ 9 ]
[ 31 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
train.py
/train.py
Kexiii/pytorch-hymenoptera
MIT
2024-11-18T19:03:41.582824+00:00
1,550,162,992,000
ec4b0f03c577db35877f5512a3a30957deb98ec2
2
{ "blob_id": "ec4b0f03c577db35877f5512a3a30957deb98ec2", "branch_name": "refs/heads/master", "committer_date": 1550162992000, "content_id": "be4431a05eebdc351af86149b5deb5d55304a641", "detected_licenses": [ "MIT" ], "directory_id": "cabeeb10c64d7137b9b14f94c7859070bd3d77e5", "extension": "py", "fi...
2.421875
stackv2
import load_sample import pandas as pd from pandas import DataFrame from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import cosine_similarity from os.path import join from copy import deepcopy import time import datetime from queue import LifoQueue import pickle sample = load_s...
104
29.37
87
15
799
python
[{"finding_id": "semgrep_rules.python.lang.maintainability.return-not-in-function_610ab08bacb7b2da_89d7f355", "tool_name": "semgrep", "rule_id": "rules.python.lang.maintainability.return-not-in-function", "finding_type": "maintainability", "severity": "medium", "confidence": "medium", "message": "`return` only makes se...
4
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 96 ]
[ 96 ]
[ 5 ]
[ 63 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
init_groups.py
/no-smoke-search-app/model/init_groups.py
ViktorMarinov/no-smoke-search
MIT
2024-11-18T19:03:41.816500+00:00
1,680,525,552,000
383caace0611a0df2a314a8411e651e2dacfb256
2
{ "blob_id": "383caace0611a0df2a314a8411e651e2dacfb256", "branch_name": "refs/heads/master", "committer_date": 1680525552000, "content_id": "c8559b2f250a03f9efda3e824c0d6f5417899ea4", "detected_licenses": [ "MIT" ], "directory_id": "ef414bf6e76b5a8252c2bbdaff776f382d2ff667", "extension": "py", "fi...
2.484375
stackv2
# -*- coding: utf-8 -*- """ Apply Gauss-Seidel Iteration Scheme to smooth high-frequency distortions across a slice stack. NOTE: Nipype ready code - inner functions used inside the 'run' function. Author: Alexander Woodward, Connectome Analysis Unit, RIKEN CBS, Wako, Japan Email: alexander.woodward@riken.jp """ de...
269
40.36
94
19
2,583
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_8c1ecfecb43ce455_2d164e8b", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
27
true
[ "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true", "rules.python.lang.security.audit.dangerous-subprocess-use...
[ "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security", "security" ]
[ "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 98, 99, 131, 132, 134, 135, 137, 138, 239, 240, 242, 242, 243, 244, 246, 247, 249, 250, 267, 267 ]
[ 99, 99, 132, 132, 135, 135, 138, 138, 240, 240, 242, 242, 244, 244, 247, 247, 250, 250, 267, 267 ]
[ 20, 37, 9, 59, 9, 56, 20, 57, 5, 43, 5, 71, 5, 66, 5, 47, 16, 41, 5, 64 ]
[ 53, 41, 64, 63, 61, 60, 73, 61, 48, 47, 76, 75, 71, 70, 52, 51, 57, 45, 69, 68 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01...
[ "Detected subprocess function 'check_output' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Found 'subprocess'...
[ 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH" ]
[ "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW", "HIGH", "LOW" ]
nzp_gs_smooth.py
/nzp_gs_smooth.py
cau-riken/nzp_gs_smooth_standalone
MIT
2024-11-18T19:28:36.222394+00:00
1,574,213,604,000
d867fb467cd5376b7fb1a01e918a731f4e0435df
3
{ "blob_id": "d867fb467cd5376b7fb1a01e918a731f4e0435df", "branch_name": "refs/heads/master", "committer_date": 1574213604000, "content_id": "87fd15aac0b05b9c2de3767136fb7c247fb3797a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "affd00484342e6a6486adcb5a12cdb7e98816f8d", "extension": "py"...
2.578125
stackv2
#!/usr/bin/env python2 import io from io import open import fcntl import string import time import datetime import logging import json import os import socket import sys import lib.iw_motor import lib.iw_acc import lib.iw_hot import lib.iw_rgb import lib.iw_sal # Change per well well_num = 9 sleep_between_trials = 5...
381
29.22
154
21
2,924
python
[{"finding_id": "semgrep_rules.python.requests.best-practice.use-raise-for-status_c968db4121de2972_cccb6c65", "tool_name": "semgrep", "rule_id": "rules.python.requests.best-practice.use-raise-for-status", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "There's an HTTP request ...
11
true
[ "CWE-295" ]
[ "rules.python.requests.security.disabled-cert-validation" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 37 ]
[ 37 ]
[ 11 ]
[ 155 ]
[ "A03:2017 - Sensitive Data Exposure" ]
[ "Certificate verification has been explicitly disabled. This permits insecure connections to insecure servers. Re-enable certification validation." ]
[ 7.5 ]
[ "LOW" ]
[ "LOW" ]
fall2019-2.py
/fall2019-2.py
jie-zhou/Ike-Wai-Sensors
Apache-2.0
2024-11-18T19:28:39.206682+00:00
1,601,441,111,000
8528fcd218568eb76fee2a6daf2b15baecc7b8bf
3
{ "blob_id": "8528fcd218568eb76fee2a6daf2b15baecc7b8bf", "branch_name": "refs/heads/master", "committer_date": 1601441111000, "content_id": "5a25b6cb26875957dec22f1a4cbcfeaaee47704a", "detected_licenses": [ "MIT" ], "directory_id": "ffb123d337e61d400a6a6ca17d9f335083513e31", "extension": "py", "fi...
2.765625
stackv2
from subprocess import call DATAFILE_PATH = 'temp/' class CRF: def __init__(self): return None def preprocess_dataset(self, dataset, filename): ''' TODO as the task in hand ''' f = open(DATAFILE_PATH + filename, 'w') for discussion in dataset: if ...
95
34.23
74
24
683
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_06f087e287e47332_b66b4f47", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
8
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 61, 61 ]
[ 61, 61 ]
[ 9, 29 ]
[ 34, 33 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'call' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Found 'subprocess' functio...
[ 7.5, 7.5 ]
[ "LOW", "HIGH" ]
[ "HIGH", "LOW" ]
CRF.py
/CRF.py
amilasilva92/multilingual-communities-by-code-switching
MIT
2024-11-18T19:28:42.953517+00:00
1,557,343,824,000
dd90e4a7545ced998fa71820f80b46a7d9bc7b92
3
{ "blob_id": "dd90e4a7545ced998fa71820f80b46a7d9bc7b92", "branch_name": "refs/heads/master", "committer_date": 1557343824000, "content_id": "8f3b6049950da7e4b892cf183e0d88c94fa6ba82", "detected_licenses": [ "MIT" ], "directory_id": "28ebadd9c355824ef141dce137ebab8e65f8d307", "extension": "py", "fi...
2.828125
stackv2
####################################################################### # This file is part of Pyblosxom. # # Copyright (C) 2004-2011 by the Pyblosxom team. See AUTHORS. # # Pyblosxom is distributed under the MIT license. See the file # LICENSE for distribution details. ###############################################...
312
24.3
77
18
2,050
python
[{"finding_id": "semgrep_rules.python.django.security.injection.raw-html-format_7fb5f182dc2a0f01_cb3c09f5", "tool_name": "semgrep", "rule_id": "rules.python.django.security.injection.raw-html-format", "finding_type": "security", "severity": "medium", "confidence": "medium", "message": "Detected user input flowing into ...
1
true
[ "CWE-79" ]
[ "rules.python.django.security.injection.raw-html-format" ]
[ "security" ]
[ "MEDIUM" ]
[ "MEDIUM" ]
[ 275 ]
[ 276 ]
[ 9 ]
[ 63 ]
[ "A07:2017 - Cross-Site Scripting (XSS)" ]
[ "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that ...
[ 5 ]
[ "HIGH" ]
[ "MEDIUM" ]
yeararchives.py
/Pyblosxom/plugins/yeararchives.py
daemonfreaks/pyblosxom
MIT
2024-11-18T19:28:43.345940+00:00
1,583,506,011,000
d7c7d55cc4c92ad2539f0940e5d1a8eabf69026d
3
{ "blob_id": "d7c7d55cc4c92ad2539f0940e5d1a8eabf69026d", "branch_name": "refs/heads/master", "committer_date": 1583506011000, "content_id": "13c0f0e11715eede55980c809662bea0a3f9f660", "detected_licenses": [ "MIT" ], "directory_id": "ec010c7a30d1a0d9ae14288e14236d2e8f238a4b", "extension": "py", "fi...
2.75
stackv2
"""pyextensions is a proof-of-concept of implementing code transformations using import hooks. By code transformation, we mean that instead of executing the code found in a module *as is*, it is first transformed prior to its execution. The transformations are done by other modules, called transformers, which are norm...
396
35.3
87
21
2,976
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_9e861dc87ad22d7e_b3a7ac9d", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
4
true
[ "CWE-95", "CWE-95" ]
[ "rules.python.lang.security.audit.exec-detected", "rules.python.lang.security.audit.exec-detected" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 148, 150 ]
[ 148, 150 ]
[ 13, 13 ]
[ 44, 39 ]
[ "A03:2021 - Injection", "A03:2021 - Injection" ]
[ "Detected the use of exec(). exec() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.", "Detected the use of exec(). exec() can be dangerous if used...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
pyextensions.py
/pyextensions.py
aroberge/pyextensions
MIT
2024-11-18T19:28:48.286293+00:00
1,686,794,745,000
231e7d5c7ffe24d261569df007170edf99de10dd
3
{ "blob_id": "231e7d5c7ffe24d261569df007170edf99de10dd", "branch_name": "refs/heads/master", "committer_date": 1686794745000, "content_id": "fce7ea009dbbfd7df01fc5e799bcef329e41c30d", "detected_licenses": [ "MIT" ], "directory_id": "11fb0bbdc98da7c0879290cc0665b451ab0facbc", "extension": "py", "fi...
2.59375
stackv2
#!/usr/bin/python3 """ Search for Unicode Descriptions uni binary from: https://github.com/arp242/uni """ import sys import re import subprocess import json import csv if len(sys.argv) >= 2: query = sys.argv[1] try: out: str = subprocess.check_output( ["./uni", "-q", "search", query, "-...
76
22.37
93
15
482
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_92f1e8136521d08a_33cfbada", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-tainted-env-args" ]
[ "security", "security" ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "HIGH" ]
[ 29, 29 ]
[ 31, 31 ]
[ 23, 47 ]
[ 27, 26 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_output' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subproces...
[ 7.5, 7.5 ]
[ "LOW", "MEDIUM" ]
[ "HIGH", "MEDIUM" ]
unicode_search.py
/alfred-search-unicode/unicode_search.py
blueset/alfred-search-unicode
MIT
2024-11-18T19:28:49.313768+00:00
1,520,576,881,000
48a8bf55874e1f03ce27af5162231a0419c345bc
3
{ "blob_id": "48a8bf55874e1f03ce27af5162231a0419c345bc", "branch_name": "refs/heads/master", "committer_date": 1520576881000, "content_id": "982ce8a7d0fbdcf61c8ead5576158b52a45937c9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cab4ca8b262ed2f3b99d81e710f2bfbad9bfc8b9", "extension": "py"...
3.0625
stackv2
""" A sample Airflow job copying doing the followings: - copying Google Stock price info from Google Finance - pushing to a local MySQL You need to have this table created in your local MySQL create table test.google_stock_price ( date date NOT NULL PRIMARY KEY, open float, high float, low float,...
112
27.75
123
18
780
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.formatted-sql-query_8256bd302780f531_fd63af1e", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.formatted-sql-query", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected possible formatted SQL query. U...
2
true
[ "CWE-89", "CWE-89" ]
[ "rules.python.lang.security.audit.formatted-sql-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "HIGH" ]
[ 94, 94 ]
[ 94, 94 ]
[ 13, 13 ]
[ 30, 30 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected possible formatted SQL query. Use parameterized queries instead.", "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepa...
[ 5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
google_stock_price_to_mysql_etl.py
/dataEngineering/google_stock_price_to_mysql_etl.py
ferdinand33/TestingRepo
Apache-2.0
2024-11-18T19:28:50.606858+00:00
1,591,879,680,000
4761244cdc7c136ae8e2537a4d1b641e649786d3
3
{ "blob_id": "4761244cdc7c136ae8e2537a4d1b641e649786d3", "branch_name": "refs/heads/master", "committer_date": 1591879680000, "content_id": "3921947077b44e5dc53502ca36895e5e5d699888", "detected_licenses": [ "MIT" ], "directory_id": "cafa76586370a39831eacd0984beacbfdbb45a45", "extension": "py", "fi...
3.234375
stackv2
"""NFL Playcalling Environment""" import random import gym from gym import spaces import data_loader as nfl_data # Create some test functions until api is built class NFLPlaycallingEnv(gym.Env): """Custom Environment that follows gym interface""" metadata = {'render.modes': ['human']} def __init__(self): su...
219
29.18
125
16
1,911
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_bff584af68567054_636df1b6", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
2
true
[ "CWE-95" ]
[ "rules.python.lang.security.audit.eval-detected" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 23 ]
[ 23 ]
[ 18 ]
[ 34 ]
[ "A03:2021 - Injection" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." ]
[ 5 ]
[ "LOW" ]
[ "HIGH" ]
env.py
/env.py
jacobeturpin/nfl-offensive-playcalling-optimization
MIT
2024-11-18T19:28:54.846855+00:00
1,625,436,327,000
e93f060e4fb8d49de16cba1533032885f62c29b9
2
{ "blob_id": "e93f060e4fb8d49de16cba1533032885f62c29b9", "branch_name": "refs/heads/main", "committer_date": 1625436327000, "content_id": "9654f98f115b2d8dee744823fe20f1520f31a16a", "detected_licenses": [ "MIT" ], "directory_id": "7be5837b96f22966f7eb4c78bed2e2ad1918a68a", "extension": "py", "file...
2.3125
stackv2
# %% import numpy as np import sys sys.path.append('../..') from utils.tester import Tester import pickle import os import matplotlib import matplotlib.pyplot as plt import math import tikzplotlib city_name = 'Phoenix' data = [] # data.append({'save_file_name': '2021-04-09_16-35-32', 'description': 'Regular cost'}) ...
240
31.5
126
15
2,440
python
[{"finding_id": "semgrep_rules.python.lang.correctness.useless-eqeq_9ea6929026020bd5_1b5d97df", "tool_name": "semgrep", "rule_id": "rules.python.lang.correctness.useless-eqeq", "finding_type": "correctness", "severity": "low", "confidence": "medium", "message": "This expression is always True: `city_name == city_name` ...
3
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 51, 67 ]
[ 51, 67 ]
[ 19, 18 ]
[ 33, 32 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
plot_different_cost_comparisons.py
/src/plotting/tikz_plotting/plot_different_cost_comparisons.py
cyrusneary/multiscaleLockdownCovid19
MIT
2024-11-18T19:28:56.613046+00:00
1,468,576,532,000
9f881efdc6196e692394faee554b86e3a9e66f2f
3
{ "blob_id": "9f881efdc6196e692394faee554b86e3a9e66f2f", "branch_name": "refs/heads/master", "committer_date": 1468576532000, "content_id": "437d684d76377653558e40f03eb6c86435202bb4", "detected_licenses": [ "MIT" ], "directory_id": "1358b3e3a029481a33deae9c55b0e1cad8fa4b47", "extension": "py", "fi...
2.71875
stackv2
import subprocess import os class PythonRunner: def __init__(self, input_directory, algorithm_name): self.algorithm_name = algorithm_name self.python_file_name = self.algorithm_name + '.py' self.input_directory = input_directory def get_output(self, user_input): p = subproces...
25
29.08
99
14
142
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_de1a4ff701684d03_56482ac0", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 13 ]
[ 17 ]
[ 13 ]
[ 31 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'Popen' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
python_runner.py
/python_runner.py
radzak/ResultChecker
MIT
2024-11-18T19:28:58.499789+00:00
1,603,100,319,000
08eaf9b37938a2a2c9c63ec50f6d67345ec2ada2
2
{ "blob_id": "08eaf9b37938a2a2c9c63ec50f6d67345ec2ada2", "branch_name": "refs/heads/master", "committer_date": 1603100319000, "content_id": "7048d5e78fba4cae08f62cd98728ff28a592e85a", "detected_licenses": [ "MIT" ], "directory_id": "dcff46b92756e324009bd132e666baad7ef6f151", "extension": "py", "fi...
2.421875
stackv2
import sqlite3 from settings import * entry = sqlite3.connect(db_name) cur = entry.cursor() print('wrapper library imported.') def fetch_ID(id): res = cur.execute("""SELECT * FROM quotes WHERE msgID IS %s""" % id).fetchall() res = [(i[0].replace(r';!;', r"'"), i[1].replace(r';!;', r"'"), i[2], i[3], i[4], ...
92
30.02
131
14
869
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.formatted-sql-query_6639e67c6df60b25_bc32c700", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.formatted-sql-query", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected possible formatted SQL query. U...
7
true
[ "CWE-89", "CWE-89", "CWE-89", "CWE-89", "CWE-89", "CWE-89", "CWE-89" ]
[ "rules.python.lang.security.audit.formatted-sql-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.lang.security.audit.formatted-sql-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", "rules.python.sqlalchemy.security.sqlalchemy-execute-raw-query", ...
[ "security", "security", "security", "security", "security", "security", "security" ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "HIGH", "MEDIUM", "HIGH", "HIGH", "MEDIUM", "HIGH" ]
[ 12, 12, 25, 25, 42, 91, 91 ]
[ 12, 12, 27, 27, 42, 91, 91 ]
[ 11, 11, 9, 9, 11, 3, 3 ]
[ 73, 73, 103, 103, 67, 64, 64 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected possible formatted SQL query. Use parameterized queries instead.", "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepa...
[ 5, 7.5, 5, 7.5, 7.5, 5, 7.5 ]
[ "LOW", "LOW", "LOW", "LOW", "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH", "HIGH" ]
wrapper.py
/wrapper.py
vega-d/FAQdiscordBot
MIT
2024-11-18T19:28:58.610836+00:00
1,536,338,868,000
a239b0fd19438b51f591d9cf6c0faa38ba46b69e
3
{ "blob_id": "a239b0fd19438b51f591d9cf6c0faa38ba46b69e", "branch_name": "refs/heads/master", "committer_date": 1536338868000, "content_id": "4edd90963d634e1afa047f704ac5d9824e41004a", "detected_licenses": [ "MIT" ], "directory_id": "0eb8704e39a1c04c27dc15a4791273b1d6e34af0", "extension": "py", "fi...
2.734375
stackv2
import logging import os import pkgutil import re import sys from pathlib import Path import attr import jinja2 @attr.s class Template(object): """Jinja-driven template for documentation. Args: filename (str): Path to Jinja template. Attributes: filename (str): Path to Jinja template. ...
131
31.86
118
16
970
python
[{"finding_id": "semgrep_rules.python.flask.security.xss.audit.direct-use-of-jinja2_ce8f81c63b1f7d45_3e3a6b6f", "tool_name": "semgrep", "rule_id": "rules.python.flask.security.xss.audit.direct-use-of-jinja2", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Detected direct use of jinja...
4
true
[ "CWE-79", "CWE-79", "CWE-116", "CWE-79" ]
[ "rules.python.flask.security.xss.audit.direct-use-of-jinja2", "rules.python.flask.security.xss.audit.direct-use-of-jinja2", "rules.python.jinja2.security.audit.missing-autoescape-disabled", "rules.python.flask.security.xss.audit.direct-use-of-jinja2" ]
[ "security", "security", "security", "security" ]
[ "LOW", "LOW", "MEDIUM", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 42, 63, 63, 84 ]
[ 42, 65, 65, 84 ]
[ 20, 20, 20, 20 ]
[ 41, 63, 63, 41 ]
[ "A07:2017 - Cross-Site Scripting (XSS)", "A07:2017 - Cross-Site Scripting (XSS)", "A03:2021 - Injection", "A07:2017 - Cross-Site Scripting (XSS)" ]
[ "Detected direct use of jinja2. If not done properly, this may bypass HTML escaping which opens up the application to cross-site scripting (XSS) vulnerabilities. Prefer using the Flask method 'render_template()' and templates with a '.html' extension in order to prevent XSS.", "Detected direct use of jinja2. If n...
[ 5, 5, 5, 5 ]
[ "LOW", "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM", "MEDIUM" ]
templates.py
/medsldocs/templates.py
MEDSL/documentation
MIT
2024-11-18T19:39:26.480246+00:00
1,435,650,431,000
57b024bca8ed40ff1e3e454bed80e2a21e31d11a
3
{ "blob_id": "57b024bca8ed40ff1e3e454bed80e2a21e31d11a", "branch_name": "refs/heads/master", "committer_date": 1435650431000, "content_id": "29f0f56e464458f4f34bb887c8bad57291d9b95f", "detected_licenses": [ "MIT" ], "directory_id": "46ba3b02ed738839c97922b02cdbe647c19f1e78", "extension": "py", "fi...
2.578125
stackv2
#!/usr/bin/python3 #coding=utf-8 from datetime import datetime import itertools import networkx as nx import pickle import math from abstract_type import abstract_type import sys sys.path.append('..') import insummer from insummer.common_type import Question,Answer from insummer.read_conf import config from insummer.u...
187
29.7
105
13
1,624
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.open-never-closed_530dddcb1bbf8b97_755da08f", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.open-never-closed", "finding_type": "best-practice", "severity": "high", "confidence": "medium", "message": "file object opened without corresponding...
7
true
[ "CWE-502", "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 33, 35, 74 ]
[ 33, 35, 74 ]
[ 19, 16, 5 ]
[ 43, 37, 45 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5, 5 ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM" ]
text_rank.py
/code/statistic/text_rank.py
lavizhao/insummer
MIT
2024-11-18T19:39:34.495282+00:00
1,545,312,654,000
409dcb0d962ca61f26a7861521d924a50fb1c9db
3
{ "blob_id": "409dcb0d962ca61f26a7861521d924a50fb1c9db", "branch_name": "refs/heads/master", "committer_date": 1545312654000, "content_id": "ee7de8a5669c74ed33643cafcd9a21d055e057ec", "detected_licenses": [ "MIT" ], "directory_id": "7825e042956cdb2bc6b7a1bd28e2a99894c23f21", "extension": "py", "fi...
2.859375
stackv2
""" zipfix is a library for efficiently working with changes in git repositories. It holds an in-memory copy of the object database and supports efficient in-memory merges and rebases. """ from typing import Tuple, List, Optional from argparse import ArgumentParser from pathlib import Path import subprocess import tem...
136
39.17
87
20
1,189
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_3f22d7ad20e7df27_8b78f330", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 46 ]
[ 47 ]
[ 16 ]
[ 67 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
__init__.py
/zipfix/__init__.py
emilio/git-zipfix
MIT
2024-11-18T19:39:35.147272+00:00
1,688,657,923,000
d114bc7c0cc722bb3ef85eb36f86187a99f62b13
3
{ "blob_id": "d114bc7c0cc722bb3ef85eb36f86187a99f62b13", "branch_name": "refs/heads/main", "committer_date": 1688657923000, "content_id": "b144a340f0fa1c3578c8bb766c93794ca50f733b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "99ff5c83dd71a1857eba33581c154b188fc39871", "extension": "py"...
2.6875
stackv2
import os, sys, subprocess, random, uuid class Plopper: def __init__(self,sourcefile,outputdir): # Initializing global variables self.sourcefile = sourcefile self.outputdir = outputdir+"/tmp_files" if not os.path.exists(self.outputdir): os.makedirs(self.outputdir) ...
50
37.44
121
15
430
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_f9c8af3aa972fc69_da267bcd", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
4
true
[ "CWE-78", "CWE-78", "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true", "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.subprocess-shell-true" ]
[ "security", "security", "security", "security" ]
[ "LOW", "MEDIUM", "LOW", "MEDIUM" ]
[ "HIGH", "HIGH", "HIGH", "HIGH" ]
[ 38, 38, 42, 42 ]
[ 38, 38, 42, 42 ]
[ 30, 60, 32, 62 ]
[ 89, 64, 91, 66 ]
[ "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Found 'subprocess' function...
[ 7.5, 7.5, 7.5, 7.5 ]
[ "LOW", "HIGH", "LOW", "HIGH" ]
[ "HIGH", "LOW", "HIGH", "LOW" ]
plopper.py
/ytopt/benchmark/mmm-block/plopper/plopper.py
ytopt-team/ytopt
BSD-2-Clause
2024-11-18T19:39:36.977527+00:00
1,368,396,177,000
4d3c05ae00dc998920f9c0845717fa0b60c7ed92
2
{ "blob_id": "4d3c05ae00dc998920f9c0845717fa0b60c7ed92", "branch_name": "refs/heads/master", "committer_date": 1368396177000, "content_id": "4049184ccff51e5fca5f97118ddcd82f9de7d04f", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ca681c9dcc3fd862abada520c678b6d2eeb497ef", "extension": "p...
2.40625
stackv2
import cPickle, logging, multiprocessing, os, Queue, redis, string, threading from apscheduler.scheduler import Scheduler from datetime import datetime, timedelta from PlanetLabNode import PlanetLabNode from utilities import outputException, distance import argparse parser = argparse.ArgumentParser(description='Tking...
121
34.62
134
17
1,024
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_deef89c98b9d1385_3e551ae0", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
5
true
[ "CWE-95", "CWE-95", "CWE-502" ]
[ "rules.python.lang.security.audit.eval-detected", "rules.python.lang.security.audit.eval-detected", "rules.python.lang.security.deserialization.avoid-cPickle" ]
[ "security", "security", "security" ]
[ "LOW", "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM", "MEDIUM" ]
[ 34, 35, 50 ]
[ 34, 35, 50 ]
[ 55, 55, 12 ]
[ 93, 93, 67 ]
[ "A03:2021 - Injection", "A03:2021 - Injection", "A08:2017 - Insecure Deserialization" ]
[ "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.", "Detected the use of eval(). eval() can be dangerous if used...
[ 5, 5, 5 ]
[ "LOW", "LOW", "LOW" ]
[ "HIGH", "HIGH", "MEDIUM" ]
controller.py
/king/controller.py
nebgnahz/CS268NetworkMeasurement
BSD-2-Clause
2024-11-18T19:39:46.964162+00:00
1,497,492,721,000
0f9b6bfe8a27e5dcf9e60f933c59d1b2c98e8231
2
{ "blob_id": "0f9b6bfe8a27e5dcf9e60f933c59d1b2c98e8231", "branch_name": "refs/heads/master", "committer_date": 1497492882000, "content_id": "f598f8db446802ff33b01b4bab0160c943831713", "detected_licenses": [ "MIT" ], "directory_id": "df7c9aa290f4888dedca9751d032008fc413cf9e", "extension": "py", "fi...
2.421875
stackv2
import subprocess import os from .settings import Settings class ShellCommand: def __init__(self, args): self.__args = args self.__startup_info = None self.__shell = False if os.name == 'nt': self.__startup_info = subprocess.STARTUPINFO() self.__startup_info...
40
28.38
74
13
248
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_21463b8d4b886ba1_68632b2c", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78", "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
[ 12, 29 ]
[ 12, 37 ]
[ 35, 19 ]
[ 59, 37 ]
[ "A01:2017 - Injection", "A01:2017 - Injection" ]
[ "Detected subprocess function 'STARTUPINFO' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.", "Detected subprocess...
[ 7.5, 7.5 ]
[ "LOW", "LOW" ]
[ "HIGH", "HIGH" ]
command.py
/plugin/command.py
andykingking/sublime-format
MIT
2024-11-18T19:39:52.923725+00:00
1,692,828,071,000
e4cc582229b6fa327be9064fd628450ce99bbd21
3
{ "blob_id": "e4cc582229b6fa327be9064fd628450ce99bbd21", "branch_name": "refs/heads/main", "committer_date": 1692828071000, "content_id": "ad938072d59e0b91a6677e1785eb7769bb210874", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a3d6556180e74af7b555f8d47d3fea55b94bcbda", "extension": "py"...
2.625
stackv2
#!/usr/bin/env python3 # Copyright 2013 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. description = """ Make a symlink and optionally touch a file (to handle dependencies). """ usage = "%prog [options] source[ source ...] linkname" epilog = "...
92
32.33
79
17
731
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_6870e2749a8a867a_a9d3dc83", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
2
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 80 ]
[ 80 ]
[ 9 ]
[ 65 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'check_output' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
symlink.py
/build/symlink.py
chromium/chromium
BSD-3-Clause
2024-11-18T19:39:56.434917+00:00
1,576,063,028,000
5171dfc819d489ae015f5f6757b59a08285675ca
3
{ "blob_id": "5171dfc819d489ae015f5f6757b59a08285675ca", "branch_name": "refs/heads/master", "committer_date": 1576063028000, "content_id": "f2c6e908662cf2ac65ad2add410036042ea5acf5", "detected_licenses": [ "MIT" ], "directory_id": "5805b5e645e905992d0f8c199fed39d09bfe5acb", "extension": "py", "fi...
2.78125
stackv2
#!/usr/bin/env python3 import argparse import statistics import os import sys import subprocess from typing import Optional, Iterator, Iterable, Tuple, List def get_commits_list( repo_path: str, author: Optional[str] = None, after: Optional[str] = None, rev_list_args: Optional[str] = None, ) -> Itera...
88
30.3
84
12
652
python
[{"finding_id": "semgrep_rules.python.lang.security.audit.dangerous-subprocess-use-audit_e8329274ddc7ab79_d6119373", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.audit.dangerous-subprocess-use-audit", "finding_type": "security", "severity": "high", "confidence": "low", "message": "Detected subprocess ...
1
true
[ "CWE-78" ]
[ "rules.python.lang.security.audit.dangerous-subprocess-use-audit" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 24 ]
[ 28 ]
[ 14 ]
[ 6 ]
[ "A01:2017 - Injection" ]
[ "Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." ]
[ 7.5 ]
[ "LOW" ]
[ "HIGH" ]
message_stats.py
/message_stats.py
mp4096/git-achievements
MIT
2024-11-18T19:39:56.571115+00:00
1,398,650,275,000
a0ac897955bc88f75ce1145877d9d70d72619a01
3
{ "blob_id": "a0ac897955bc88f75ce1145877d9d70d72619a01", "branch_name": "refs/heads/master", "committer_date": 1398650275000, "content_id": "856c50b4308ac4f40587485e335f7ebc4d12e85f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "457df1e4ea80edb14ab0dcc894bcc08975d80f41", "extension": "py"...
2.515625
stackv2
from ConfigUtil import config_util __author__ = 'michaellin' import xml.etree.ElementTree as ET class HierarchyConfig: def __init__(self, file_name, repeated_tag): self.config_map = {} self.file_name = file_name self.repeated_tag = repeated_tag def write_to_file(self): if no...
40
25.68
79
12
234
python
[{"finding_id": "semgrep_rules.python.lang.security.use-defused-xml_d246e5e03149b16a_d36b8c5b", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.use-defused-xml", "finding_type": "security", "severity": "high", "confidence": "low", "message": "The Python documentation recommends using `defusedxml` instead...
3
true
[ "CWE-611" ]
[ "rules.python.lang.security.use-defused-xml" ]
[ "security" ]
[ "LOW" ]
[ "HIGH" ]
[ 5 ]
[ 5 ]
[ 1 ]
[ 35 ]
[ "A04:2017 - XML External Entities (XXE)" ]
[ "The Python documentation recommends using `defusedxml` instead of `xml` because the native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service." ]
[ 7.5 ]
[ "LOW" ]
[ "MEDIUM" ]
hierarchy_config.py
/user-interface/src/ConfigUtil/hierarchy_config.py
linmichaelj/avalanche
Apache-2.0
2024-11-18T20:18:02.972749+00:00
1,589,969,901,000
f34b5671ab902e81015e48b3020096c06719683f
3
{ "blob_id": "f34b5671ab902e81015e48b3020096c06719683f", "branch_name": "refs/heads/master", "committer_date": 1589969901000, "content_id": "4bd355b7f0e87648a848574ac226072f1800e164", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7775fb7ba338e8707f559e0372a6d11a78f8c69f", "extension": "py"...
2.78125
stackv2
import numpy as np import os import pickle NUM_LABELS = {'ENZYMES':3, 'COLLAB':0, 'IMDBBINARY':0, 'IMDBMULTI':0, 'MUTAG':7, 'NCI1':37, 'NCI109':38, 'PROTEINS':3, 'PTC':22, 'DD':89} BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) def load_dataset(ds_name): """ construct graphs and labe...
227
41.18
152
19
2,483
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_e7b32e91bd52ab09_1101f1bb", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
6
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 72 ]
[ 72 ]
[ 16 ]
[ 30 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
data_helper.py
/data_loader/data_helper.py
liuyunwu/ProvablyPowerfulGraphNetworks
Apache-2.0
2024-11-18T20:18:06.950686+00:00
1,678,997,667,000
b5aa4687744b00b3aac5a9d7ebc5299dd1c7c32a
2
{ "blob_id": "b5aa4687744b00b3aac5a9d7ebc5299dd1c7c32a", "branch_name": "refs/heads/main", "committer_date": 1678997667000, "content_id": "d1bbb1b742576e46e61a97cb15ecfb92b53f568a", "detected_licenses": [ "MIT" ], "directory_id": "5e22728a45dc131b5abcdde3c10928557177898b", "extension": "py", "file...
2.421875
stackv2
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Noteboo...
177
31.41
87
24
1,229
python
[{"finding_id": "semgrep_rules.python.attr.correctness.attr-mutable-initializer_d9e81976bfac381f_993e7b92", "tool_name": "semgrep", "rule_id": "rules.python.attr.correctness.attr-mutable-initializer", "finding_type": "correctness", "severity": "medium", "confidence": "medium", "message": "Unsafe usage of mutable initia...
1
true
[ "" ]
[ "rules.python.attr.correctness.attr-mutable-initializer" ]
[ "correctness" ]
[ "MEDIUM" ]
[ "MEDIUM" ]
[ 29 ]
[ 29 ]
[ 5 ]
[ 34 ]
[ "" ]
[ "Unsafe usage of mutable initializer with attr.s decorator. Multiple instances of this class will re-use the same data structure, which is likely not the desired behavior. Consider instead: replace assignment to mutable initializer (ex. dict() or {}) with attr.ib(factory=type) where type is dict, set, or list" ]
[ 5 ]
[ "" ]
[ "" ]
nb_metadata.py
/msticnb/nb_metadata.py
microsoft/msticnb
MIT
2024-11-18T20:18:08.233918+00:00
1,608,510,203,000
ac4a97d9e58461b77cc927163736d43a3e87749b
2
{ "blob_id": "ac4a97d9e58461b77cc927163736d43a3e87749b", "branch_name": "refs/heads/main", "committer_date": 1608510203000, "content_id": "83c78ac31b9a4599b4d4ac20e9853fb8627d0e0b", "detected_licenses": [ "MIT" ], "directory_id": "001d475d2ce43f37d44edbbe0f3b136f5a73a432", "extension": "py", "file...
2.328125
stackv2
import os import argparse import pickle import numpy as np import pandas as pd from sklearn.utils import shuffle import datasets from datasets import load_dataset from tqdm import tqdm data_out = os.path.join('.','datasets') custom_out = os.path.join(data_out, 'used_evals') in_domains = [ 'imdb', 'sst2', ]...
112
28.91
133
17
851
python
[{"finding_id": "semgrep_rules.python.lang.security.deserialization.avoid-pickle_0997373f2fe359fa_2a1f41e4", "tool_name": "semgrep", "rule_id": "rules.python.lang.security.deserialization.avoid-pickle", "finding_type": "security", "severity": "medium", "confidence": "low", "message": "Avoid using `pickle`, which is kno...
1
true
[ "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security" ]
[ "LOW" ]
[ "MEDIUM" ]
[ 112 ]
[ 112 ]
[ 9 ]
[ 33 ]
[ "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." ]
[ 5 ]
[ "LOW" ]
[ "MEDIUM" ]
get_hf_datasets.py
/dataset_analyses/get_hf_datasets.py
positivevaib/ood-detection
MIT
2024-11-18T20:18:08.346135+00:00
1,556,253,230,000
9c1176e2631ce90b2cfb200ad10d6d5f1ba13964
3
{ "blob_id": "9c1176e2631ce90b2cfb200ad10d6d5f1ba13964", "branch_name": "refs/heads/master", "committer_date": 1556253230000, "content_id": "8dec4b645438cf541fd42e3e034b5154b0617982", "detected_licenses": [ "MIT" ], "directory_id": "4001153bf50cbaa4d300c79a94bf72fb555e37f0", "extension": "py", "fi...
2.71875
stackv2
import numpy as np import os import sys import nltk import pickle import pprint import copy nltk.download('punkt') class Dataset(object): def __init__(self, config): self.config = config # dictionary settings self.initialize_dictionary() self.build_corpus(self.config.train_path, s...
264
33.91
81
18
2,215
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_e0a57ca5f40a5e36_86ad7698", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
4
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 235, 238 ]
[ 235, 238 ]
[ 9, 19 ]
[ 70, 71 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
dataset.py
/dataset.py
unixnme/charnlm-pytorch
MIT
2024-11-18T20:18:10.539112+00:00
1,487,178,095,000
9ba63847dc305562ad3865281b02077eaa636762
3
{ "blob_id": "9ba63847dc305562ad3865281b02077eaa636762", "branch_name": "refs/heads/master", "committer_date": 1487178095000, "content_id": "45db7e9ee66a039a73e76aa619d3c64d0a200340", "detected_licenses": [ "MIT" ], "directory_id": "80c92410009407145959e71c9fa7a9c221aef332", "extension": "py", "fi...
2.8125
stackv2
#!/usr/bin/env python import RPi.GPIO as GPIO import datetime import time import sys import pickle from Adafruit_LED_Backpack import SevenSegment GPIO.setmode(GPIO.BCM) display = SevenSegment.SevenSegment() display.begin() GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(19, GPIO.IN, pull_up_down=GPIO.PU...
92
21.16
76
12
710
python
[{"finding_id": "semgrep_rules.python.lang.best-practice.unspecified-open-encoding_eb9e9b4357d3e0dd_e6c16067", "tool_name": "semgrep", "rule_id": "rules.python.lang.best-practice.unspecified-open-encoding", "finding_type": "best-practice", "severity": "medium", "confidence": "medium", "message": "Missing 'encoding' par...
4
true
[ "CWE-502", "CWE-502" ]
[ "rules.python.lang.security.deserialization.avoid-pickle", "rules.python.lang.security.deserialization.avoid-pickle" ]
[ "security", "security" ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
[ 42, 90 ]
[ 42, 90 ]
[ 33, 2 ]
[ 50, 40 ]
[ "A08:2017 - Insecure Deserialization", "A08:2017 - Insecure Deserialization" ]
[ "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.", "Avoid using `pickle`, which is known to lead to...
[ 5, 5 ]
[ "LOW", "LOW" ]
[ "MEDIUM", "MEDIUM" ]
tracker1.py
/tracker1.py
doctorwho42/Reeve-Work-Tracker
MIT