commit_msg string | commit_url string | cve_id null | cwe_id null | file_name string | vulnerability_score int64 | extension string | date string | id string | func string | vulnerable int64 | language string |
|---|---|---|---|---|---|---|---|---|---|---|---|
Merge pull request from GHSA-p6p2-qq95-vq5h
* Removing custom connector template functions
* Updating connector template modal description
* Adding function upload tests | https://github.com/ethyca/fides/commit/5989b5fa744c8d8c340963b895a054883549358a | null | null | src/fides/api/service/connectors/saas/connector_registry_service.py | 3 | py | 2023-09-05T19:51:11Z | cleanvul_py_t3_00000_before | def save_template(cls, db: Session, zip_file: ZipFile) -> None:
"""
Extracts and validates the contents of a zip file containing a
custom connector template, registers the template, and saves it to the database.
"""
# verify the zip file before we use it
verify_zip(zip_f... | 1 | py |
Merge pull request from GHSA-p6p2-qq95-vq5h
* Removing custom connector template functions
* Updating connector template modal description
* Adding function upload tests | https://github.com/ethyca/fides/commit/5989b5fa744c8d8c340963b895a054883549358a | null | null | src/fides/api/service/connectors/saas/connector_registry_service.py | 3 | py | 2023-09-05T19:51:11Z | cleanvul_py_t3_00000_after | def save_template(cls, db: Session, zip_file: ZipFile) -> None:
"""
Extracts and validates the contents of a zip file containing a
custom connector template, registers the template, and saves it to the database.
"""
# verify the zip file before we use it
verify_zip(zip_f... | 0 | py |
[2.0] Fix unsafe `mark_safe` use in various features (#4832)
* Audit all uses of mark_safe() and change to format_html() where appropriate
* Test updates and change fragment
* Add ruff for linting, add S308 disables to audited code
* Test fixes
* Update change fragments
* One more change fragment
--------- | https://github.com/nautobot/nautobot/commit/54abe23331b6c3d0d82bf1b028c679b1d200920d | null | null | nautobot/core/views/utils.py | 3 | py | 2023-11-21T21:16:21Z | cleanvul_py_t3_00001_before | def get_csv_form_fields_from_serializer_class(serializer_class):
"""From the given serializer class, build a list of field dicts suitable for rendering in the CSV import form."""
serializer = serializer_class(context={"request": None, "depth": 0})
fields = []
for field_name, field in serializer.fields.i... | 1 | py |
[2.0] Fix unsafe `mark_safe` use in various features (#4832)
* Audit all uses of mark_safe() and change to format_html() where appropriate
* Test updates and change fragment
* Add ruff for linting, add S308 disables to audited code
* Test fixes
* Update change fragments
* One more change fragment
--------- | https://github.com/nautobot/nautobot/commit/54abe23331b6c3d0d82bf1b028c679b1d200920d | null | null | nautobot/core/views/utils.py | 3 | py | 2023-11-21T21:16:21Z | cleanvul_py_t3_00001_after | def get_csv_form_fields_from_serializer_class(serializer_class):
"""From the given serializer class, build a list of field dicts suitable for rendering in the CSV import form."""
serializer = serializer_class(context={"request": None, "depth": 0})
fields = []
for field_name, field in serializer.fields.i... | 0 | py |
Fix a security related issue where an authenticated user can run remote command using validate binary path API. #6763
CVE-XXXX-XXXXX - request raised, number to be received. | https://github.com/pgadmin-org/pgadmin4/commit/01dc3e8bed088bbc0724376bf0fc725a095cf1a3 | null | null | web/pgadmin/misc/file_manager/__init__.py | 3 | py | 2023-09-18T07:38:38Z | cleanvul_py_t3_00004_before | def check_file_for_bom_and_binary(filename, enc="utf-8"):
"""
This utility function will check if file is Binary file
and/or if it startswith BOM character
Args:
filename: File
enc: Encoding for the file
Returns:
Status(Error?), Error message... | 1 | py |
Fix a security related issue where an authenticated user can run remote command using validate binary path API. #6763
CVE-XXXX-XXXXX - request raised, number to be received. | https://github.com/pgadmin-org/pgadmin4/commit/01dc3e8bed088bbc0724376bf0fc725a095cf1a3 | null | null | web/pgadmin/misc/file_manager/__init__.py | 3 | py | 2023-09-18T07:38:38Z | cleanvul_py_t3_00004_after | def check_file_for_bom_and_binary(filename, enc="utf-8"):
"""
This utility function will check if file is Binary file
and/or if it startswith BOM character
Args:
filename: File
enc: Encoding for the file
Returns:
Status(Error?), Error message... | 0 | py |
Use re2 for matching untrusted regex | https://github.com/apache/airflow/commit/dc23225b5fb2872102f68e3ff32dcc09ae5d37aa | null | null | airflow/models/dag.py | 3 | py | null | cleanvul_py_t3_00005_before | def partial_subset(
self,
task_ids_or_regex: str | re.Pattern | Iterable[str],
include_downstream=False,
include_upstream=True,
include_direct_upstream=False,
):
"""
Returns a subset of the current dag as a deep copy of the current dag
based on a regex... | 1 | py |
Use re2 for matching untrusted regex | https://github.com/apache/airflow/commit/dc23225b5fb2872102f68e3ff32dcc09ae5d37aa | null | null | airflow/models/dag.py | 3 | py | null | cleanvul_py_t3_00005_after | def partial_subset(
self,
task_ids_or_regex: str | Pattern | Iterable[str],
include_downstream=False,
include_upstream=True,
include_direct_upstream=False,
):
"""
Returns a subset of the current dag as a deep copy of the current dag
based on a regex th... | 0 | py |
refactor: optimize calldatasize check (#3104)
this changes the calldatasize check from a global/contract-entry check
to a function-local check - the calldatasize check only needs to be
present if a selector is 0. this maintains the invariant protecting
against the bug in #1603 while being more efficient.
Co-authored-... | https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520 | null | null | vyper/codegen/module.py | 3 | py | 2023-01-20T16:06:25Z | cleanvul_py_t3_00006_before | def _runtime_ir(runtime_functions, all_sigs, global_ctx):
# categorize the runtime functions because we will organize the runtime
# code into the following sections:
# payable functions, nonpayable functions, fallback function, internal_functions
internal_functions = [f for f in runtime_functions if _is... | 1 | py |
refactor: optimize calldatasize check (#3104)
this changes the calldatasize check from a global/contract-entry check
to a function-local check - the calldatasize check only needs to be
present if a selector is 0. this maintains the invariant protecting
against the bug in #1603 while being more efficient.
Co-authored-... | https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520 | null | null | vyper/codegen/module.py | 3 | py | 2023-01-20T16:06:25Z | cleanvul_py_t3_00006_after | def _runtime_ir(runtime_functions, all_sigs, global_ctx):
# categorize the runtime functions because we will organize the runtime
# code into the following sections:
# payable functions, nonpayable functions, fallback function, internal_functions
internal_functions = [f for f in runtime_functions if _is... | 0 | py |
Updates to collaboration scope - implemented a few more endpoints and modified base functions to check permissions | https://github.com/vantage6/vantage6/commit/28c303675028513bc2f87be75be85e35bcb296e9 | null | null | vantage6-server/vantage6/server/resource/user.py | 3 | py | 2023-06-08T14:25:23Z | cleanvul_py_t3_00007_before | def post(self):
"""Create user
---
description: >-
Creates new user from the request data to the users organization.\n
### Permission Table\n
|Rule name|Scope|Operation|Assigned to node|Assigned to container|
Description|\n
|--|--|--|--|--|--|\n... | 1 | py |
Updates to collaboration scope - implemented a few more endpoints and modified base functions to check permissions | https://github.com/vantage6/vantage6/commit/28c303675028513bc2f87be75be85e35bcb296e9 | null | null | vantage6-server/vantage6/server/resource/user.py | 3 | py | 2023-06-08T14:25:23Z | cleanvul_py_t3_00007_after | def post(self):
"""Create user
---
description: >-
Creates new user from the request data to the users organization.\n
### Permission Table\n
|Rule name|Scope|Operation|Assigned to node|Assigned to container|
Description|\n
|--|--|--|--|--|--|\n... | 0 | py |
Added consume all to streams. | https://github.com/Cog-Creators/Red-DiscordBot/commit/e269ea0d3bc88417163c18431b1df38a9be92bfc | null | null | redbot/cogs/streams/streams.py | 3 | py | 2020-08-11T22:40:06Z | cleanvul_py_t3_00008_before | async def check_streams(self):
for stream in self.streams:
with contextlib.suppress(Exception):
try:
if stream.__class__.__name__ == "TwitchStream":
await self.maybe_renew_twitch_bearer_token()
embed, is_rerun = awai... | 1 | py |
Added consume all to streams. | https://github.com/Cog-Creators/Red-DiscordBot/commit/e269ea0d3bc88417163c18431b1df38a9be92bfc | null | null | redbot/cogs/streams/streams.py | 3 | py | 2020-08-11T22:40:06Z | cleanvul_py_t3_00008_after | async def check_streams(self):
for stream in self.streams:
with contextlib.suppress(Exception):
try:
if stream.__class__.__name__ == "TwitchStream":
await self.maybe_renew_twitch_bearer_token()
embed, is_rerun = awai... | 0 | py |
Merge branch 'main' into fix/triggerer_log | https://github.com/apache/airflow/commit/ddedb1df6603e4c9974d6a2da527a28046b8cc10 | null | null | airflow/dag_processing/manager.py | 3 | py | 2023-04-01T21:36:22Z | cleanvul_py_t3_00009_before | def _add_callback_to_queue(self, request: CallbackRequest):
# requests are sent by dag processors. SLAs exist per-dag, but can be generated once per SLA-enabled
# task in the dag. If treated like other callbacks, SLAs can cause feedback where a SLA arrives,
# goes to the front of the queue, gets... | 1 | py |
Merge branch 'main' into fix/triggerer_log | https://github.com/apache/airflow/commit/ddedb1df6603e4c9974d6a2da527a28046b8cc10 | null | null | airflow/dag_processing/manager.py | 3 | py | 2023-04-01T21:36:22Z | cleanvul_py_t3_00009_after | def _add_callback_to_queue(self, request: CallbackRequest):
# requests are sent by dag processors. SLAs exist per-dag, but can be generated once per SLA-enabled
# task in the dag. If treated like other callbacks, SLAs can cause feedback where a SLA arrives,
# goes to the front of the queue, gets... | 0 | py |
refactor: optimize calldatasize check (#3104)
this changes the calldatasize check from a global/contract-entry check
to a function-local check - the calldatasize check only needs to be
present if a selector is 0. this maintains the invariant protecting
against the bug in #1603 while being more efficient.
Co-authored-... | https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520 | null | null | vyper/codegen/function_definitions/external_function.py | 3 | py | 2023-01-20T16:06:25Z | cleanvul_py_t3_00011_before | def _generate_kwarg_handlers(context: Context, sig: FunctionSignature) -> List[Any]:
# generate kwarg handlers.
# since they might come in thru calldata or be default,
# allocate them in memory and then fill it in based on calldata or default,
# depending on the signature
# a kwarg handler looks lik... | 1 | py |
refactor: optimize calldatasize check (#3104)
this changes the calldatasize check from a global/contract-entry check
to a function-local check - the calldatasize check only needs to be
present if a selector is 0. this maintains the invariant protecting
against the bug in #1603 while being more efficient.
Co-authored-... | https://github.com/vyperlang/vyper/commit/02339dfda0f3caabad142060d511d10bfe93c520 | null | null | vyper/codegen/function_definitions/external_function.py | 3 | py | 2023-01-20T16:06:25Z | cleanvul_py_t3_00011_after | def _generate_kwarg_handlers(context: Context, sig: FunctionSignature) -> List[Any]:
# generate kwarg handlers.
# since they might come in thru calldata or be default,
# allocate them in memory and then fill it in based on calldata or default,
# depending on the signature
# a kwarg handler looks lik... | 0 | py |
Updated web data uploads to be turned off by default | https://github.com/man-group/dtale/commit/954f6be1a06ff8629ead2c85c6e3f8e2196b3df2 | null | null | dtale/views.py | 3 | py | 2024-01-03T15:44:17Z | cleanvul_py_t3_00013_before | def startup(
url="",
data=None,
data_loader=None,
name=None,
data_id=None,
context_vars=None,
ignore_duplicate=True,
allow_cell_edits=True,
inplace=False,
drop_index=False,
precision=2,
show_columns=None,
hide_columns=None,
optimize_dataframe=False,
column_for... | 1 | py |
Updated web data uploads to be turned off by default | https://github.com/man-group/dtale/commit/954f6be1a06ff8629ead2c85c6e3f8e2196b3df2 | null | null | dtale/views.py | 3 | py | 2024-01-03T15:44:17Z | cleanvul_py_t3_00013_after | def startup(
url="",
data=None,
data_loader=None,
name=None,
data_id=None,
context_vars=None,
ignore_duplicate=True,
allow_cell_edits=True,
inplace=False,
drop_index=False,
precision=2,
show_columns=None,
hide_columns=None,
optimize_dataframe=False,
column_for... | 0 | py |
Add is_valid_pipeline_relative_path check | https://github.com/orchest/orchest/commit/4c35c20110da8046a4df0fa31d384c75f3c1af2d | null | null | services/orchest-webserver/app/app/core/pipelines.py | 3 | py | 2022-05-02T08:54:53Z | cleanvul_py_t3_00014_before | def _collateral(
self,
project_uuid: str,
pipeline_uuid: str,
pipeline_name: str,
pipeline_path: str,
**kwargs,
):
pipeline_dir = get_pipeline_directory(pipeline_uuid, project_uuid)
pipeline_json_path = get_pipeline_path(pipeline_uuid, project_uuid)
... | 1 | py |
Add is_valid_pipeline_relative_path check | https://github.com/orchest/orchest/commit/4c35c20110da8046a4df0fa31d384c75f3c1af2d | null | null | services/orchest-webserver/app/app/core/pipelines.py | 3 | py | 2022-05-02T08:54:53Z | cleanvul_py_t3_00014_after | def _collateral(
self,
project_uuid: str,
pipeline_uuid: str,
old_path: str,
new_path: str,
):
"""Move a pipeline to another path, i.e. rename it."""
if not is_valid_project_relative_path(project_uuid, new_path):
raise error.OutOfProjectError(
... | 0 | py |
Use `-r=...` instead of `-r ...` for hg
This ensures that the resulting revision can not be misinterpreted as an
option. | https://github.com/pypa/pip/commit/389cb799d0da9a840749fcd14878928467ed49b4 | null | null | src/pip/_internal/vcs/mercurial.py | 3 | py | 2023-10-01T13:10:25Z | cleanvul_py_t3_00015_before | def get_base_rev_args(rev: str) -> List[str]:
return ["-r", rev] | 1 | py |
Use `-r=...` instead of `-r ...` for hg
This ensures that the resulting revision can not be misinterpreted as an
option. | https://github.com/pypa/pip/commit/389cb799d0da9a840749fcd14878928467ed49b4 | null | null | src/pip/_internal/vcs/mercurial.py | 3 | py | 2023-10-01T13:10:25Z | cleanvul_py_t3_00015_after | def get_base_rev_args(rev: str) -> List[str]:
return [f"-r={rev}"] | 0 | py |
Enabled TLS certificate verification in get_vault_token() | https://github.com/allegro/bigflow/commit/7e956661f76907594e8c82e8fb0af76dbea2a0fc | null | null | bigflow/deploy.py | 3 | py | 2023-01-30T11:23:56Z | cleanvul_py_t3_00016_before | def deploy_docker_image(
image_tar_path: str,
docker_repository: str,
auth_method: AuthorizationType = AuthorizationType.LOCAL_ACCOUNT,
vault_endpoint: T.Optional[str] = None,
vault_secret: T.Optional[str] = None,
) -> str:
if image_tar_path.endswith(".toml"):
deploy_fn = _deploy_docker_... | 1 | py |
Enabled TLS certificate verification in get_vault_token() | https://github.com/allegro/bigflow/commit/7e956661f76907594e8c82e8fb0af76dbea2a0fc | null | null | bigflow/deploy.py | 3 | py | 2023-01-30T11:23:56Z | cleanvul_py_t3_00016_after | def deploy_docker_image(
image_tar_path: str,
docker_repository: str,
auth_method: AuthorizationType = AuthorizationType.LOCAL_ACCOUNT,
vault_endpoint: T.Optional[str] = None,
vault_endpoint_verify: str | bool | None = None,
vault_secret: T.Optional[str] = None,
) -> str:
if image_tar_path.e... | 0 | py |
Don't safe_join os.pardir | https://github.com/orchest/orchest/commit/00eb502a42aa86571d6a6dec285d3065e73b01ef | null | null | services/orchest-webserver/app/app/core/filemanager.py | 3 | py | 2022-05-02T09:30:01Z | cleanvul_py_t3_00017_before | def find_unique_duplicate_filepath(fp):
counter = 1
new_path_fs = "{base} ({counter}){ext}"
if fp.endswith("/"):
basename = os.path.basename(fp[:-1])
ext = ""
base_no_ext = basename
else:
basename = os.path.basename(fp)
_, ext = os.path.splitext(fp)
if le... | 1 | py |
Don't safe_join os.pardir | https://github.com/orchest/orchest/commit/00eb502a42aa86571d6a6dec285d3065e73b01ef | null | null | services/orchest-webserver/app/app/core/filemanager.py | 3 | py | 2022-05-02T09:30:01Z | cleanvul_py_t3_00017_after | def find_unique_duplicate_filepath(fp):
counter = 1
new_path_fs = "{base} ({counter}){ext}"
if fp.endswith("/"):
basename = os.path.basename(fp[:-1])
ext = ""
base_no_ext = basename
else:
basename = os.path.basename(fp)
_, ext = os.path.splitext(fp)
if le... | 0 | py |
Don't allow update_into to mutate immutable objects | https://github.com/pyca/cryptography/commit/94a50a9731f35405f0357fa5f3b177d46a726ab3 | null | null | src/cryptography/hazmat/backends/openssl/ciphers.py | 3 | py | 2023-01-31T13:33:54Z | cleanvul_py_t3_00018_before | def update_into(self, data: bytes, buf: bytes) -> int:
total_data_len = len(data)
if len(buf) < (total_data_len + self._block_size_bytes - 1):
raise ValueError(
"buffer must be at least {} bytes for this "
"payload".format(len(data) + self._block_size_bytes - ... | 1 | py |
Don't allow update_into to mutate immutable objects | https://github.com/pyca/cryptography/commit/94a50a9731f35405f0357fa5f3b177d46a726ab3 | null | null | src/cryptography/hazmat/backends/openssl/ciphers.py | 3 | py | 2023-01-31T13:33:54Z | cleanvul_py_t3_00018_after | def update_into(self, data: bytes, buf: bytes) -> int:
total_data_len = len(data)
if len(buf) < (total_data_len + self._block_size_bytes - 1):
raise ValueError(
"buffer must be at least {} bytes for this "
"payload".format(len(data) + self._block_size_bytes - ... | 0 | py |
Hide passwords in plain html, for when SR is not password protected (#4361)
* Hide passwords in plain html, for when SR is not password protected
* XMLEscape parameter values sent as GET or POST | https://github.com/SickRage/SickRage/commit/8156a74a68aea930d1e1047baba8b115c3abfc44 | null | null | sickbeard/webserve.py | 3 | py | 2018-03-10T07:49:44Z | cleanvul_py_t3_00019_before | def testPMS(self, host=None, username=None, password=None, plex_server_token=None):
self.set_header(b'Cache-Control', 'max-age=0,no-cache,no-store')
if set('*') == set(password or '*'):
password = sickbeard.PLEX_SERVER_PASSWORD
finalResult = ''
curResult = notifiers.plex_n... | 1 | py |
Hide passwords in plain html, for when SR is not password protected (#4361)
* Hide passwords in plain html, for when SR is not password protected
* XMLEscape parameter values sent as GET or POST | https://github.com/SickRage/SickRage/commit/8156a74a68aea930d1e1047baba8b115c3abfc44 | null | null | sickbeard/webserve.py | 3 | py | 2018-03-10T07:49:44Z | cleanvul_py_t3_00019_after | def testPMS(self, host=None, username=None, password=None, plex_server_token=None):
self.set_header(b'Cache-Control', 'max-age=0,no-cache,no-store')
password = filters.unhide(sickbeard.PLEX_SERVER_PASSWORD, password)
finalResult = ''
curResult = notifiers.plex_notifier.test_notify_pms... | 0 | py |
Merge pull request from GHSA-mq5p-2mcr-m52j
make positional args explicit | https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481 | null | null | nbgitpuller/pull.py | 3 | py | 2021-08-25T12:23:02Z | cleanvul_py_t3_00020_before | def resolve_default_branch(self):
"""
This will resolve the default branch of the repo in
the case where the branch given does not exist
"""
try:
head_branch = subprocess.run(
["git", "ls-remote", "--symref", self.git_url, "HEAD"],
capt... | 1 | py |
Merge pull request from GHSA-mq5p-2mcr-m52j
make positional args explicit | https://github.com/jupyterhub/nbgitpuller/commit/07690644f29a566011dd0d7ba14cae3eb0490481 | null | null | nbgitpuller/pull.py | 3 | py | 2021-08-25T12:23:02Z | cleanvul_py_t3_00020_after | def resolve_default_branch(self):
"""
This will resolve the default branch of the repo in
the case where the branch given does not exist
"""
try:
head_branch = subprocess.run(
["git", "ls-remote", "--symref", "--", self.git_url, "HEAD"],
... | 0 | py |
tpm: do not compress quote with zlib by default
Pythons zlib decompression has no mitigations against zip bombs or similar
attacks, so we remove the compression for the quote data.
The data itself is rather small compared to the IMA or UEFI event log.
Signed-off-by: Thore Sommer <mail@thson.de> | https://github.com/keylime/keylime/commit/6e44758b64b0ee13564fc46e807f4ba98091c355 | null | null | keylime/cloud_verifier_common.py | 3 | py | 2022-01-16T15:14:07Z | cleanvul_py_t3_00021_before | def process_quote_response(agent, json_response, agentAttestState) -> Failure:
"""Validates the response from the Cloud agent.
This method invokes an Registrar Server call to register, and then check the quote.
"""
failure = Failure(Component.QUOTE_VALIDATION)
received_public_key = None
quote =... | 1 | py |
tpm: do not compress quote with zlib by default
Pythons zlib decompression has no mitigations against zip bombs or similar
attacks, so we remove the compression for the quote data.
The data itself is rather small compared to the IMA or UEFI event log.
Signed-off-by: Thore Sommer <mail@thson.de> | https://github.com/keylime/keylime/commit/6e44758b64b0ee13564fc46e807f4ba98091c355 | null | null | keylime/cloud_verifier_common.py | 3 | py | 2022-01-16T15:14:07Z | cleanvul_py_t3_00021_after | def process_quote_response(agent, json_response, agentAttestState) -> Failure:
"""Validates the response from the Cloud agent.
This method invokes an Registrar Server call to register, and then check the quote.
"""
failure = Failure(Component.QUOTE_VALIDATION)
received_public_key = None
quote =... | 0 | py |
Merge pull request from GHSA-7wgr-7666-7pwj
* All strings used as file/directory names are now sanitized to address the path traversal vulnerabilities
* Switched calls to utils.spinal_case to utils.kebab_case
Co-authored-by: Ethan Mann <emann@triaxtec.com> | https://github.com/triaxtec/openapi-python-client/commit/3e7dfae5d0b3685abf1ede1bc6c086a116ac4746 | null | null | openapi_python_client/__init__.py | 3 | py | 2020-08-13T16:57:06Z | cleanvul_py_t3_00022_before | def _build_api(self) -> None:
# Generate Client
client_path = self.package_dir / "client.py"
client_template = self.env.get_template("client.pyi")
client_path.write_text(client_template.render())
# Generate endpoints
api_dir = self.package_dir / "api"
api_dir.mkd... | 1 | py |
Merge pull request from GHSA-7wgr-7666-7pwj
* All strings used as file/directory names are now sanitized to address the path traversal vulnerabilities
* Switched calls to utils.spinal_case to utils.kebab_case
Co-authored-by: Ethan Mann <emann@triaxtec.com> | https://github.com/triaxtec/openapi-python-client/commit/3e7dfae5d0b3685abf1ede1bc6c086a116ac4746 | null | null | openapi_python_client/__init__.py | 3 | py | 2020-08-13T16:57:06Z | cleanvul_py_t3_00022_after | def _build_api(self) -> None:
# Generate Client
client_path = self.package_dir / "client.py"
client_template = self.env.get_template("client.pyi")
client_path.write_text(client_template.render())
# Generate endpoints
api_dir = self.package_dir / "api"
api_dir.mkd... | 0 | py |
Hide passwords in plain html, for when SR is not password protected (#4361)
* Hide passwords in plain html, for when SR is not password protected
* XMLEscape parameter values sent as GET or POST | https://github.com/SickRage/SickRage/commit/8156a74a68aea930d1e1047baba8b115c3abfc44 | null | null | sickbeard/webserve.py | 3 | py | 2018-03-10T07:49:44Z | cleanvul_py_t3_00024_before | def testEMBY(host=None, emby_apikey=None):
host = config.clean_host(host)
result = notifiers.emby_notifier.test_notify(unquote_plus(host), emby_apikey)
if result:
return _("Test notice sent successfully to {emby_host}").format(emby_host=unquote_plus(host))
else:
... | 1 | py |
Hide passwords in plain html, for when SR is not password protected (#4361)
* Hide passwords in plain html, for when SR is not password protected
* XMLEscape parameter values sent as GET or POST | https://github.com/SickRage/SickRage/commit/8156a74a68aea930d1e1047baba8b115c3abfc44 | null | null | sickbeard/webserve.py | 3 | py | 2018-03-10T07:49:44Z | cleanvul_py_t3_00024_after | def testEMBY(host=None, emby_apikey=None):
host = config.clean_host(host)
emby_apikey = filters.unhide(sickbeard.EMBY_APIKEY, emby_apikey)
result = notifiers.emby_notifier.test_notify(unquote_plus(host), emby_apikey)
if result:
return _("Test notice sent successfully to {emby... | 0 | py |
Security: Fix for LFI found by thongngo | https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/b9cdd1f52bdf127cf33bb1be369e374a2855f8e6 | null | null | DynamicAnalyzer/views.py | 3 | py | 2016-05-26T13:47:30Z | cleanvul_py_t3_00026_before | def TakeScreenShot(request):
print "\n[INFO] Taking Screenshot"
try:
if request.method == 'POST':
MD5=request.POST['md5']
m=re.match('[0-9a-f]{32}',MD5)
if m:
data = {}
r=random.randint(1, 1000000)
DIR=settings.BASE_DIR
... | 1 | py |
Security: Fix for LFI found by thongngo | https://github.com/MobSF/Mobile-Security-Framework-MobSF/commit/b9cdd1f52bdf127cf33bb1be369e374a2855f8e6 | null | null | DynamicAnalyzer/views.py | 3 | py | 2016-05-26T13:47:30Z | cleanvul_py_t3_00026_after | def TakeScreenShot(request):
print "\n[INFO] Taking Screenshot"
try:
if request.method == 'POST':
MD5=request.POST['md5']
m=re.match('^[0-9a-f]{32}$',MD5)
if m:
data = {}
r=random.randint(1, 1000000)
DIR=settings.BASE_DI... | 0 | py |
Merge branch 'main' into fix/triggerer_log | https://github.com/apache/airflow/commit/ddedb1df6603e4c9974d6a2da527a28046b8cc10 | null | null | airflow/serialization/serde.py | 3 | py | 2023-04-01T21:36:22Z | cleanvul_py_t3_00027_before | def deserialize(o: T | None, full=True, type_hint: Any = None) -> object:
"""
Deserializes an object of primitive type T into an object. Uses an allow
list to determine if a class can be loaded.
:param o: primitive to deserialize into an arbitrary object.
:param full: if False it will return a stri... | 1 | py |
Merge branch 'main' into fix/triggerer_log | https://github.com/apache/airflow/commit/ddedb1df6603e4c9974d6a2da527a28046b8cc10 | null | null | airflow/serialization/serde.py | 3 | py | 2023-04-01T21:36:22Z | cleanvul_py_t3_00027_after | def deserialize(o: T | None, full=True, type_hint: Any = None) -> object:
"""
Deserializes an object of primitive type T into an object. Uses an allow
list to determine if a class can be loaded.
:param o: primitive to deserialize into an arbitrary object.
:param full: if False it will return a stri... | 0 | py |
When parsing json from untrusted sources, remove templating tags | https://github.com/ansible/ansible/commit/8ed6350e65c82292a631f08845dfaacffe7f07f5 | null | null | lib/ansible/runner/__init__.py | 3 | py | 2014-06-30T20:59:32Z | cleanvul_py_t3_00028_before | def _execute_module(self, conn, tmp, module_name, args,
async_jid=None, async_module=None, async_limit=None, inject=None, persist_files=False, complex_args=None, delete_remote_tmp=True):
''' transfer and run a module along with its arguments on the remote side'''
# hack to support fireball mod... | 1 | py |
When parsing json from untrusted sources, remove templating tags | https://github.com/ansible/ansible/commit/8ed6350e65c82292a631f08845dfaacffe7f07f5 | null | null | lib/ansible/runner/__init__.py | 3 | py | 2014-06-30T20:59:32Z | cleanvul_py_t3_00028_after | def _execute_module(self, conn, tmp, module_name, args,
async_jid=None, async_module=None, async_limit=None, inject=None, persist_files=False, complex_args=None, delete_remote_tmp=True):
''' transfer and run a module along with its arguments on the remote side'''
# hack to support fireball mod... | 0 | py |
Fix improper use of socket authentication in mysql.user_chpass | https://github.com/saltstack/salt/commit/f47dda61e651ea1e38fbc0bf6ab5272380b1491e | null | null | salt/modules/mysql.py | 3 | py | 2019-02-01T13:52:52Z | cleanvul_py_t3_00029_before | def user_chpass(user,
host='localhost',
password=None,
password_hash=None,
allow_passwordless=False,
unix_socket=None,
password_column=None,
**connection_args):
'''
Change password for a MySQL user
... | 1 | py |
Fix improper use of socket authentication in mysql.user_chpass | https://github.com/saltstack/salt/commit/f47dda61e651ea1e38fbc0bf6ab5272380b1491e | null | null | salt/modules/mysql.py | 3 | py | 2019-02-01T13:52:52Z | cleanvul_py_t3_00029_after | def user_chpass(user,
host='localhost',
password=None,
password_hash=None,
allow_passwordless=False,
unix_socket=None,
password_column=None,
**connection_args):
'''
Change password for a MySQL user
... | 0 | py |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 29