-
Notifications
You must be signed in to change notification settings - Fork 761
yup #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yup #89
Conversation
...uaViewSDK into feature/playground
...ground Conflicts: Android/LuaViewDemo/LuaViewDemo.iml Android/LuaViewSDK/LuaViewSDK.iml
Dev 5.10.0 playground See merge request !54
# Conflicts: # LuaViewSDK.podspec
CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
城西 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
CLAassistant
commented
Jul 15, 2018
CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
城西 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.
Check failure
Code scanning / CodeQL
Failure to use HTTPS or SFTP URL in Maven artifact upload/download High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, the repository URLs in the <distributionManagement>
section of the Maven POM file should be updated to use HTTPS instead of HTTP. This ensures secure communication with the artifact repository, protecting against MITM attacks and supply chain vulnerabilities.
Steps to implement the fix:
- Locate the
<distributionManagement>
section in the POM file. - Update the
<url>
elements for both<repository>
and<snapshotRepository>
to use HTTPS instead of HTTP. - Verify that the repository supports HTTPS and that the updated URLs are correct.
No additional methods, imports, or definitions are required for this fix.
Check failure
Code scanning / CodeQL
Failure to use HTTPS or SFTP URL in Maven artifact upload/download High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, the repository URLs in the <distributionManagement>
section should be updated to use HTTPS instead of HTTP. This ensures that all communication with the artifact repository is encrypted and secure.
Steps to implement the fix:
- Replace the
http://
protocol in the<url>
tags of both<repository>
and<snapshotRepository>
withhttps://
. - Verify that the repository supports HTTPS and update any necessary credentials or configurations if required.
Check failure
Code scanning / CodeQL
Arbitrary file access during archive extraction ("Zip Slip") High
file system operation
Uh oh!
There was an error while loading. Please reload this page.
Unsanitized archive entry, which may contain '..', is used in a
file system operation
Uh oh!
There was an error while loading. Please reload this page.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, we need to validate the constructed file paths to ensure they remain within the intended directory (scriptBundleFolderPath
). This can be achieved by normalizing the paths using java.io.File.getCanonicalFile()
or java.nio.file.Path.normalize()
and verifying that the normalized path starts with the intended directory's canonical path. If the validation fails, the code should throw an exception or skip processing the entry.
Steps to implement the fix:
- Normalize the constructed file path using
File.getCanonicalFile()
to resolve any symbolic links or traversal sequences. - Validate that the normalized path starts with the canonical path of the destination directory (
scriptBundleFolderPath
). - Reject or skip entries that fail the validation.
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
Uh oh!
There was an error while loading. Please reload this page.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, we need to validate the constructed paths to ensure they remain within a controlled directory and do not contain any path traversal sequences or special characters. This can be achieved by normalizing the paths and verifying that they start with the expected base directory (scriptBundleFolderPath
). Additionally, we should reject any input that contains path separators (/
or \
) or ..
sequences.
Steps to implement the fix:
- Use
java.nio.file.Paths
to normalize the constructed paths and verify that they remain within thescriptBundleFolderPath
. - Add a validation step to reject any
rawName
that contains path separators (/
or\
) or..
sequences. - Ensure that the
FileUtil.getSecurityFileName
method is robust and complements the validation logic.
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
Uh oh!
There was an error while loading. Please reload this page.
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm High
AES/CBC/PKCS5Padding
Uh oh!
There was an error while loading. Please reload this page.
Check failure
Code scanning / CodeQL
Using a static initialization vector for encryption High
static initialization vector
Uh oh!
There was an error while loading. Please reload this page.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, we need to replace the static IV (cIv
) with a dynamically generated random IV for each encryption session. This can be achieved using SecureRandom
to generate a random IV. The IV should be stored alongside the ciphertext to allow decryption later, as the IV is required for decryption.
In the provided code, the aes
method initializes the Cipher
object for decryption. To ensure compatibility with encryption, the IV should be passed as an additional parameter to the aes
method. This requires modifying the method signature and updating the logic to use a dynamic IV.
Check failure
Code scanning / CodeQL
Implicit narrowing conversion in compound assignment High
int
Uh oh!
There was an error while loading. Please reload this page.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, we need to ensure that the types of the variables involved in the compound assignment are compatible. Since k
is of type long
, we should change the type of i
from int
to long
. This will eliminate the need for an implicit cast and prevent potential data loss or overflow. The change should be made in the declaration of i
on line 452, as well as in any other parts of the code that depend on i
.
Check failure
Code scanning / CodeQL
Implicit narrowing conversion in compound assignment High
short
Uh oh!
There was an error while loading. Please reload this page.
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, we need to ensure that the type of freereg
is at least as wide as the type of n
to avoid implicit narrowing conversions. The best approach is to change the type of freereg
from short
to int
. This ensures that the result of this.freereg + n
remains within the bounds of the type and avoids the need for an implicit cast.
The changes required are:
- Update the declaration of
freereg
on line 66 to useint
instead ofshort
. - Ensure that all references to
freereg
in the file remain consistent with the new type.
Check failure
Code scanning / CodeQL
Android debuggable attribute enabled High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 months ago
To fix the issue, the android:debuggable
attribute should either be removed entirely or explicitly set to false
. The default value for android:debuggable
is false
when the attribute is omitted, so removing it is sufficient. This ensures that the application cannot be debugged in production, adhering to best practices for security.
The change should be made in the Android/LuaViewSDK/target/AndroidManifest.xml
file, specifically on line 20 where the android:debuggable
attribute is currently set to true
.
macports.conf.5.txt