instruction
string
input
string
output
string
cwe_ids
list
cve_id
string
severity
string
cvss_score
float64
repo_name
string
func_name
string
file_path
string
commit_hash
string
is_vulnerable
int64
Analyze the following code function for security vulnerabilities
private boolean isIncorrectWebjarPath(String requestFilename) { return INCORRECT_WEBJAR_PATH_REGEX.matcher(requestFilename).lookingAt(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isIncorrectWebjarPath File: flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java Repository: vaadin/flow The code follows secure coding practices.
[ "CWE-22" ]
CVE-2020-36321
MEDIUM
5
vaadin/flow
isIncorrectWebjarPath
flow-server/src/main/java/com/vaadin/flow/server/StaticFileServer.java
6ae6460ca4f3a9b50bd46fbf49c807fe67718307
0
Analyze the following code function for security vulnerabilities
public static void copyMemory(long srcAddr, long dstAddr, long length) { PlatformDependent0.copyMemory(srcAddr, dstAddr, length); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: copyMemory File: common/src/main/java/io/netty/util/internal/PlatformDependent.java Repository: netty The code follows secure coding practices.
[ "CWE-668", "CWE-378", "CWE-379" ]
CVE-2022-24823
LOW
1.9
netty
copyMemory
common/src/main/java/io/netty/util/internal/PlatformDependent.java
185f8b2756a36aaa4f973f1a2a025e7d981823f1
0
Analyze the following code function for security vulnerabilities
protected JsonDeserializer<Object> findContentDeserializerFromAnnotation(DeserializationContext ctxt, Annotated ann) throws JsonMappingException { AnnotationIntrospector intr = ctxt.getAnnotationIntrospector(); if (intr != null) { Object deserDef = intr.findContentDes...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: findContentDeserializerFromAnnotation File: src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java Repository: FasterXML/jackson-databind The code follows secure coding practices.
[ "CWE-502" ]
CVE-2019-16942
HIGH
7.5
FasterXML/jackson-databind
findContentDeserializerFromAnnotation
src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java
54aa38d87dcffa5ccc23e64922e9536c82c1b9c8
0
Analyze the following code function for security vulnerabilities
@GetMapping("{postId:\\d+}/comments/list_view") @ApiOperation("Lists comment with list view") public Page<BaseCommentWithParentVO> listComments(@PathVariable("postId") Integer postId, @RequestParam(name = "page", required = false, defaultValue = "0") int pag...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: listComments File: src/main/java/run/halo/app/controller/content/api/PostController.java Repository: halo-dev/halo The code follows secure coding practices.
[ "CWE-79" ]
CVE-2020-19007
LOW
3.5
halo-dev/halo
listComments
src/main/java/run/halo/app/controller/content/api/PostController.java
d6b3d6cb5d681c7d8d64fd48de6c7c99b696bb8b
0
Analyze the following code function for security vulnerabilities
public void setUserWatching(boolean user_watching) { if (is_user_watching == user_watching) return; is_user_watching = user_watching; if (mXMPPConnection != null && mXMPPConnection.isAuthenticated()) sendUserWatching(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setUserWatching File: src/org/yaxim/androidclient/service/SmackableImp.java Repository: ge0rg/yaxim The code follows secure coding practices.
[ "CWE-20", "CWE-346" ]
CVE-2017-5589
MEDIUM
4.3
ge0rg/yaxim
setUserWatching
src/org/yaxim/androidclient/service/SmackableImp.java
65a38dc77545d9568732189e86089390f0ceaf9f
0
Analyze the following code function for security vulnerabilities
public void bytesReadRead(final int count) { if (count > 0) { this.totalPackedRead += count; if (this.unrarCallback != null) { this.unrarCallback.volumeProgressChanged(this.totalPackedRead, this.totalPackedSize); } } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: bytesReadRead File: src/main/java/com/github/junrar/Archive.java Repository: junrar The code follows secure coding practices.
[ "CWE-835" ]
CVE-2022-23596
MEDIUM
5
junrar
bytesReadRead
src/main/java/com/github/junrar/Archive.java
7b16b3d90b91445fd6af0adfed22c07413d4fab7
0
Analyze the following code function for security vulnerabilities
void checkReadyForSleepLocked() { if (!mService.isSleepingOrShuttingDown()) { // Do not care. return; } if (!mSleepTimeout) { boolean dontSleep = false; for (int displayNdx = mActivityDisplays.size() - 1; displayNdx >= 0; --displayNdx) { ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: checkReadyForSleepLocked File: services/core/java/com/android/server/am/ActivityStackSupervisor.java Repository: android The code follows secure coding practices.
[ "CWE-284" ]
CVE-2016-3838
MEDIUM
4.3
android
checkReadyForSleepLocked
services/core/java/com/android/server/am/ActivityStackSupervisor.java
468651c86a8adb7aa56c708d2348e99022088af3
0
Analyze the following code function for security vulnerabilities
private String findContainerName(VFSContainer container, String filename) { String newName = filename; VFSItem newFile = container.resolve(newName); for(int count=1; newFile != null && count < 999 ; count++) { newName = filename + "_" + count; newFile = container.resolve(newName); } if(newFile == nul...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: findContainerName File: src/main/java/org/olat/core/commons/modules/bc/commands/CmdUnzip.java Repository: OpenOLAT The code follows secure coding practices.
[ "CWE-22" ]
CVE-2021-41152
MEDIUM
4
OpenOLAT
findContainerName
src/main/java/org/olat/core/commons/modules/bc/commands/CmdUnzip.java
418bb509ffcb0e25ab4390563c6c47f0458583eb
0
Analyze the following code function for security vulnerabilities
private void persistenceXmlGenerator(XmlGenerator gen, Config config) { PersistenceConfig prCfg = config.getPersistenceConfig(); if (prCfg == null) { gen.node("persistence", "enabled", "false"); return; } gen.open("persistence", "enabled", prCfg.isEnabled()) ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: persistenceXmlGenerator File: hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java Repository: hazelcast The code follows secure coding practices.
[ "CWE-522" ]
CVE-2023-33264
MEDIUM
4.3
hazelcast
persistenceXmlGenerator
hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java
80a502d53cc48bf895711ab55f95e3a51e344ac1
0
Analyze the following code function for security vulnerabilities
@Override public int hashCode() { return Objects.hash(certTypeInUse, certTypeSSLClient, certTypeSSLServer, certTypeSecureEmail, certTypeSubEmailCA, certTypeSubSSLCA, commonName, country, eMail, issuedBy, issuedByInUse, issuedOnFrom, issuedOnInUse, issuedOnTo, issuerDN, locali...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: hashCode File: base/common/src/main/java/com/netscape/certsrv/cert/CertSearchRequest.java Repository: dogtagpki/pki The code follows secure coding practices.
[ "CWE-611" ]
CVE-2022-2414
HIGH
7.5
dogtagpki/pki
hashCode
base/common/src/main/java/com/netscape/certsrv/cert/CertSearchRequest.java
16deffdf7548e305507982e246eb9fd1eac414fd
0
Analyze the following code function for security vulnerabilities
public String getAttachmentURL(String filename, String action, String querystring, XWikiContext context) { // Attachment file name cannot be empty if (StringUtils.isEmpty(filename)) { return null; } return context.getWiki().getAttachmentURL(new AttachmentReference(filena...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getAttachmentURL File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
getAttachmentURL
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
@Deprecated public void setLanguage(String language) { setLocale(LocaleUtils.toLocale(Util.normalizeLanguage(language), Locale.ROOT)); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setLanguage File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
setLanguage
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
private TempShareNode convertNode(PanelShare panelShare) { return BeanUtils.copyBean(new TempShareNode(), panelShare); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: convertNode File: backend/src/main/java/io/dataease/service/panel/ShareService.java Repository: dataease The code follows secure coding practices.
[ "CWE-639" ]
CVE-2023-32310
HIGH
8.1
dataease
convertNode
backend/src/main/java/io/dataease/service/panel/ShareService.java
72f428e87b5395c03d2f94ef6185fc247ddbc8dc
0
Analyze the following code function for security vulnerabilities
public void requestSort() { removeMessages(MESSAGE_RANKING_SORT); sendEmptyMessage(MESSAGE_RANKING_SORT); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: requestSort File: services/core/java/com/android/server/notification/NotificationManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-284" ]
CVE-2016-3884
MEDIUM
4.3
android
requestSort
services/core/java/com/android/server/notification/NotificationManagerService.java
61e9103b5725965568e46657f4781dd8f2e5b623
0
Analyze the following code function for security vulnerabilities
public ApiClient setConnectTimeout(int connectionTimeout) { this.connectionTimeout = connectionTimeout; httpClient.property(ClientProperties.CONNECT_TIMEOUT, connectionTimeout); return this; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setConnectTimeout File: samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java Repository: OpenAPITools/openapi-generator The code follows secure coding practices.
[ "CWE-668" ]
CVE-2021-21430
LOW
2.1
OpenAPITools/openapi-generator
setConnectTimeout
samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java
2c576483f26f85b3979c6948a131f585c237109a
0
Analyze the following code function for security vulnerabilities
private void notifyForgottenLocalFiles() { NotificationCompat.Builder notificationBuilder = createNotificationBuilder(); notificationBuilder.setTicker(i18n(R.string.sync_foreign_files_forgotten_ticker)); /// includes a pending intent in the notification showing a more detailed explanation ...
Vulnerability Classification: - CWE: CWE-732 - CVE: CVE-2022-24886 - Severity: LOW - CVSS Score: 2.1 Description: Make PendingIntents immutable Good practice for security Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com> Function: notifyForgottenLocalFiles File: src/main/java/com/owncloud/android/syncada...
[ "CWE-732" ]
CVE-2022-24886
LOW
2.1
nextcloud/android
notifyForgottenLocalFiles
src/main/java/com/owncloud/android/syncadapter/FileSyncAdapter.java
27559efb79d45782e000b762860658d49e9c35e9
1
Analyze the following code function for security vulnerabilities
public Map<Integer, DataSerializableFactory> getDataSerializableFactories() { if (dataSerializableFactories == null) { dataSerializableFactories = new HashMap<Integer, DataSerializableFactory>(); } return dataSerializableFactories; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getDataSerializableFactories File: hazelcast/src/main/java/com/hazelcast/config/SerializationConfig.java Repository: hazelcast The code follows secure coding practices.
[ "CWE-502" ]
CVE-2016-10750
MEDIUM
6.8
hazelcast
getDataSerializableFactories
hazelcast/src/main/java/com/hazelcast/config/SerializationConfig.java
c1c31359a1df953e79a9ca9b6c54b3cdbfef11e9
0
Analyze the following code function for security vulnerabilities
@Override public void setTransform(Object graphics, Transform transform) { AndroidGraphics ag = (AndroidGraphics) graphics; Transform existing = ag.getTransform(); if (existing == null) { existing = transform == null ? Transform.makeIdentity() : transform.copy(); ag.s...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setTransform File: Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java Repository: codenameone/CodenameOne The code follows secure coding practices.
[ "CWE-668" ]
CVE-2022-4903
MEDIUM
5.1
codenameone/CodenameOne
setTransform
Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java
dad49c9ef26a598619fc48d2697151a02987d478
0
Analyze the following code function for security vulnerabilities
public CmsXmlContentDefinition getCachedContentDefinition(String systemId) { String cacheKey = getCacheKeyForCurrentProject(systemId); CmsXmlContentDefinition result = m_cacheContentDefinitions.get(cacheKey); if ((result != null) && LOG.isDebugEnabled()) { LOG.debug(Messages.get().g...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getCachedContentDefinition File: src/org/opencms/xml/CmsXmlEntityResolver.java Repository: alkacon/opencms-core The code follows secure coding practices.
[ "CWE-611" ]
CVE-2021-3312
MEDIUM
4
alkacon/opencms-core
getCachedContentDefinition
src/org/opencms/xml/CmsXmlEntityResolver.java
92e035423aa6967822d343e54392d4291648c0ee
0
Analyze the following code function for security vulnerabilities
public static String getImportUploadableDirectory(int ePersonID) throws Exception { String uploadDir = ConfigurationManager.getProperty("org.dspace.app.batchitemimport.work.dir"); if (uploadDir == null) { throw new Exception( "A dspace.cfg entry fo...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getImportUploadableDirectory File: dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java Repository: DSpace The code follows secure coding practices.
[ "CWE-22" ]
CVE-2022-31195
HIGH
7.2
DSpace
getImportUploadableDirectory
dspace-api/src/main/java/org/dspace/app/itemimport/ItemImport.java
56e76049185bbd87c994128a9d77735ad7af0199
0
Analyze the following code function for security vulnerabilities
public static long align(long value, int alignment) { return Pow2.align(value, alignment); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: align File: common/src/main/java/io/netty/util/internal/PlatformDependent.java Repository: netty The code follows secure coding practices.
[ "CWE-668", "CWE-378", "CWE-379" ]
CVE-2022-24823
LOW
1.9
netty
align
common/src/main/java/io/netty/util/internal/PlatformDependent.java
185f8b2756a36aaa4f973f1a2a025e7d981823f1
0
Analyze the following code function for security vulnerabilities
@Test public void testSerializationAsString03() throws Exception { Instant date = Instant.now(); String value = MAPPER.writer() .without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .writeValueAsString(date); assertEquals("The value is not correct.", '"...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: testSerializationAsString03 File: datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/TestInstantSerialization.java Repository: FasterXML/jackson-modules-java8 The code follows secure coding practices.
[ "CWE-20" ]
CVE-2018-1000873
MEDIUM
4.3
FasterXML/jackson-modules-java8
testSerializationAsString03
datetime/src/test/java/com/fasterxml/jackson/datatype/jsr310/TestInstantSerialization.java
ba27ce5909dfb49bcaf753ad3e04ecb980010b0b
0
Analyze the following code function for security vulnerabilities
@UnsupportedAppUsage public void setActiveAdmin(@NonNull ComponentName policyReceiver, boolean refreshing) { setActiveAdmin(policyReceiver, refreshing, myUserId()); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setActiveAdmin File: core/java/android/app/admin/DevicePolicyManager.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-40089
HIGH
7.8
android
setActiveAdmin
core/java/android/app/admin/DevicePolicyManager.java
e2e05f488da6abc765a62e7faf10cb74e729732e
0
Analyze the following code function for security vulnerabilities
@Override public void setFileSelectors(final FileSelector[] fileSelectors) { this.fileSelectors = fileSelectors; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setFileSelectors File: src/main/java/org/codehaus/plexus/archiver/AbstractUnArchiver.java Repository: codehaus-plexus/plexus-archiver The code follows secure coding practices.
[ "CWE-22", "CWE-61" ]
CVE-2023-37460
CRITICAL
9.8
codehaus-plexus/plexus-archiver
setFileSelectors
src/main/java/org/codehaus/plexus/archiver/AbstractUnArchiver.java
54759839fbdf85caf8442076f001d5fd64e0dcb2
0
Analyze the following code function for security vulnerabilities
protected String getUrlSuffix() { return "serviceValidate"; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getUrlSuffix File: cas-client-core/src/main/java/org/jasig/cas/client/validation/Cas20ServiceTicketValidator.java Repository: apereo/java-cas-client The code follows secure coding practices.
[ "CWE-74" ]
CVE-2014-4172
HIGH
7.5
apereo/java-cas-client
getUrlSuffix
cas-client-core/src/main/java/org/jasig/cas/client/validation/Cas20ServiceTicketValidator.java
ae37092100c8eaec610dab6d83e5e05a8ee58814
0
Analyze the following code function for security vulnerabilities
private Collection<ApplicationMgtListener> getApplicationMgtListeners() { return ApplicationMgtListenerServiceComponent.getApplicationMgtListeners(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getApplicationMgtListeners File: components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java Repository: wso2/carbon-...
[ "CWE-611" ]
CVE-2021-42646
MEDIUM
6.4
wso2/carbon-identity-framework
getApplicationMgtListeners
components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java
e9119883ee02a884f3c76c7bbc4022a4f4c58fc0
0
Analyze the following code function for security vulnerabilities
@Pure public @Nullable String getString(String columnName) throws SQLException { return getString(findColumn(columnName)); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getString File: pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java Repository: pgjdbc The code follows secure coding practices.
[ "CWE-89" ]
CVE-2022-31197
HIGH
8
pgjdbc
getString
pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
739e599d52ad80f8dcd6efedc6157859b1a9d637
0
Analyze the following code function for security vulnerabilities
boolean hasOverlayOverUntrustedModeEmbedded() { if (!isEmbeddedInUntrustedMode() || getTask() == null) { // The activity is not embedded in untrusted mode. return false; } // Check if there are any activities with different UID over the activity that is embedded ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: hasOverlayOverUntrustedModeEmbedded File: services/core/java/com/android/server/wm/ActivityRecord.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21145
HIGH
7.8
android
hasOverlayOverUntrustedModeEmbedded
services/core/java/com/android/server/wm/ActivityRecord.java
44aeef1b82ecf21187d4903c9e3666a118bdeaf3
0
Analyze the following code function for security vulnerabilities
public RemoteViews createContentView() { return createContentView(false /* increasedheight */ ); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: createContentView File: core/java/android/app/Notification.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-21288
MEDIUM
5.5
android
createContentView
core/java/android/app/Notification.java
726247f4f53e8cc0746175265652fa415a123c0c
0
Analyze the following code function for security vulnerabilities
@Nullable @Override public final Long getLong(CharSequence name) { final String v = get(name); return toLong(v); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getLong File: core/src/main/java/com/linecorp/armeria/common/HttpHeadersBase.java Repository: line/armeria The code follows secure coding practices.
[ "CWE-74" ]
CVE-2019-16771
MEDIUM
5
line/armeria
getLong
core/src/main/java/com/linecorp/armeria/common/HttpHeadersBase.java
b597f7a865a527a84ee3d6937075cfbb4470ed20
0
Analyze the following code function for security vulnerabilities
void removeDeadWindows() { for (int winNdx = mChildren.size() - 1; winNdx >= 0; --winNdx) { WindowState win = mChildren.get(winNdx); if (win.mAppDied) { ProtoLog.w(WM_DEBUG_ADD_REMOVE, "removeDeadWindows: %s", win); // Set mDestroyi...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: removeDeadWindows File: services/core/java/com/android/server/wm/ActivityRecord.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21145
HIGH
7.8
android
removeDeadWindows
services/core/java/com/android/server/wm/ActivityRecord.java
44aeef1b82ecf21187d4903c9e3666a118bdeaf3
0
Analyze the following code function for security vulnerabilities
@Deprecated public void setPasswordMinimumLetters(@NonNull ComponentName admin, int length) { if (mService != null) { try { mService.setPasswordMinimumLetters(admin, length, mParentInstance); } catch (RemoteException e) { throw e.rethrowFromSystemServe...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setPasswordMinimumLetters File: core/java/android/app/admin/DevicePolicyManager.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-40089
HIGH
7.8
android
setPasswordMinimumLetters
core/java/android/app/admin/DevicePolicyManager.java
e2e05f488da6abc765a62e7faf10cb74e729732e
0
Analyze the following code function for security vulnerabilities
@Override public synchronized void free() { freed = true; data = null; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: free File: pgjdbc/src/main/java/org/postgresql/jdbc/PgSQLXML.java Repository: pgjdbc The code follows secure coding practices.
[ "CWE-611" ]
CVE-2020-13692
MEDIUM
6.8
pgjdbc
free
pgjdbc/src/main/java/org/postgresql/jdbc/PgSQLXML.java
14b62aca4764d496813f55a43d050b017e01eb65
0
Analyze the following code function for security vulnerabilities
public static <B> Class getTypeParameter(Class<? extends B> c, Class<B> base, int n) { Type parameterization = Types.getBaseClass(c,base); if (parameterization instanceof ParameterizedType) { ParameterizedType pt = (ParameterizedType) parameterization; return Types.erasure(Types....
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getTypeParameter File: core/src/main/java/hudson/Functions.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-310" ]
CVE-2014-2061
MEDIUM
5
jenkinsci/jenkins
getTypeParameter
core/src/main/java/hudson/Functions.java
bf539198564a1108b7b71a973bf7de963a6213ef
0
Analyze the following code function for security vulnerabilities
private static File tmpdir0() { File f; try { f = toDirectory(SystemPropertyUtil.get("io.netty.tmpdir")); if (f != null) { logger.debug("-Dio.netty.tmpdir: {}", f); return f; } f = toDirectory(SystemPropertyUtil.get("java.i...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: tmpdir0 File: common/src/main/java/io/netty/util/internal/PlatformDependent.java Repository: netty The code follows secure coding practices.
[ "CWE-668", "CWE-378", "CWE-379" ]
CVE-2022-24823
LOW
1.9
netty
tmpdir0
common/src/main/java/io/netty/util/internal/PlatformDependent.java
185f8b2756a36aaa4f973f1a2a025e7d981823f1
0
Analyze the following code function for security vulnerabilities
@Override public boolean onCreate() { Settings.setInSystemServer(); synchronized (mLock) { mUserManager = UserManager.get(getContext()); mPackageManager = AppGlobals.getPackageManager(); mHandlerThread = new HandlerThread(LOG_TAG, Process.THRE...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: onCreate File: packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-40117
HIGH
7.8
android
onCreate
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ff86ff28cf82124f8e65833a2dd8c319aea08945
0
Analyze the following code function for security vulnerabilities
public UnreadConversation getUnreadConversation() { return mUnreadConversation; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getUnreadConversation File: core/java/android/app/Notification.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-21288
MEDIUM
5.5
android
getUnreadConversation
core/java/android/app/Notification.java
726247f4f53e8cc0746175265652fa415a123c0c
0
Analyze the following code function for security vulnerabilities
public void toXML(DocumentInstanceInputProperties documentProperties, XAROutputProperties xarProperties) throws XWikiException { try { Utils.getComponent(XWikiDocumentFilterUtils.class).exportEntity(this, xarProperties.getTarget(), xarProperties, documentProperties); ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: toXML File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
toXML
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
@Path("/allocate-job-caches") @Consumes(MediaType.APPLICATION_OCTET_STREAM) @Produces(MediaType.APPLICATION_OCTET_STREAM) @POST public byte[] allocateJobCaches(byte[] cacheAllocationRequestBytes) { CacheAllocationRequest allocationRequest = (CacheAllocationRequest) SerializationUtils .deserialize(cacheA...
Vulnerability Classification: - CWE: CWE-502 - CVE: CVE-2021-21243 - Severity: HIGH - CVSS Score: 7.5 Description: Do not deserialize data from job nodes in Kubernetes resource to avoid security vulnerability Function: allocateJobCaches File: server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/ser...
[ "CWE-502" ]
CVE-2021-21243
HIGH
7.5
theonedev/onedev
allocateJobCaches
server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/server/plugin/executor/kubernetes/KubernetesResource.java
9637fc8fa461c5777282a0021c3deb1e7a48f137
1
Analyze the following code function for security vulnerabilities
private static int getResetModeEnforcingPermission(Bundle args) { final int mode = (args != null) ? args.getInt(Settings.CALL_METHOD_RESET_MODE_KEY) : 0; switch (mode) { case Settings.RESET_MODE_UNTRUSTED_DEFAULTS: { if (!isCallerSystemOrShellOrRootOnDebuggableBuild()) { ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getResetModeEnforcingPermission File: packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-40117
HIGH
7.8
android
getResetModeEnforcingPermission
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ff86ff28cf82124f8e65833a2dd8c319aea08945
0
Analyze the following code function for security vulnerabilities
public void updateUserDisabledList(List<String> networks) { mUserTemporarilyDisabledList.update(new HashSet<>(networks)); mNonCarrierMergedNetworksStatusTracker.update(new HashSet<>(networks)); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: updateUserDisabledList File: service/java/com/android/server/wifi/WifiConfigManager.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21242
CRITICAL
9.8
android
updateUserDisabledList
service/java/com/android/server/wifi/WifiConfigManager.java
72e903f258b5040b8f492cf18edd124b5a1ac770
0
Analyze the following code function for security vulnerabilities
private boolean mutateSecureSetting(String name, String value, String tag, boolean makeDefault, int requestingUserId, int operation, boolean forceNotify, int mode, boolean overrideableByRestore) { // Make sure the caller can change the settings. enforceWritePermission(Manifest.pe...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: mutateSecureSetting File: packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-40117
HIGH
7.8
android
mutateSecureSetting
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ff86ff28cf82124f8e65833a2dd8c319aea08945
0
Analyze the following code function for security vulnerabilities
public static String getEnvironmentInfo() { final String newline = String.format("%n"); final StringBuilder sb = new StringBuilder(); sb.append("GeoTools version ").append(getVersion().toString()); if (sb.toString().endsWith("SNAPSHOT")) { sb.append(" (built from r").append(...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getEnvironmentInfo File: modules/library/metadata/src/main/java/org/geotools/util/factory/GeoTools.java Repository: geotools The code follows secure coding practices.
[ "CWE-917" ]
CVE-2022-24818
HIGH
7.5
geotools
getEnvironmentInfo
modules/library/metadata/src/main/java/org/geotools/util/factory/GeoTools.java
4f70fa3234391dd0cda883a20ab0ec75688cba49
0
Analyze the following code function for security vulnerabilities
public @NonNull List<Pair<PasspointProvider, PasspointMatch>> matchProvider( ScanResult scanResult) { return matchProvider(scanResult, true); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: matchProvider File: service/java/com/android/server/wifi/hotspot2/PasspointManager.java Repository: android The code follows secure coding practices.
[ "CWE-120" ]
CVE-2023-21243
MEDIUM
5.5
android
matchProvider
service/java/com/android/server/wifi/hotspot2/PasspointManager.java
5b49b8711efaadadf5052ba85288860c2d7ca7a6
0
Analyze the following code function for security vulnerabilities
private void showNamespaces(final String uri, final HttpServletResponse response) throws IOException { final List<String> namespaces = VarExporter.getNamespaces(); namespaces.remove(null); Collections.sort(namespaces); final Map<String, String> parents = Maps.newHashMapWithExpectedSize(...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: showNamespaces File: varexport/src/main/java/com/indeed/util/varexport/servlet/ViewExportedVariablesServlet.java Repository: indeedeng/util The code follows secure coding practices.
[ "CWE-79" ]
CVE-2020-36634
MEDIUM
5.4
indeedeng/util
showNamespaces
varexport/src/main/java/com/indeed/util/varexport/servlet/ViewExportedVariablesServlet.java
c0952a9db51a880e9544d9fac2a2218a6bfc9c63
0
Analyze the following code function for security vulnerabilities
@Test public void parseQueryMTypeWGroupByWildcardImplicit() throws Exception { HttpQuery query = NettyMocks.getQuery(tsdb, "/api/query?start=1h-ago&m=sum:sys.cpu.0{host=*quirm}"); TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions); TSSubQuery sub = tsq.getQueries().get(0); ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: parseQueryMTypeWGroupByWildcardImplicit File: test/tsd/TestQueryRpc.java Repository: OpenTSDB/opentsdb The code follows secure coding practices.
[ "CWE-79" ]
CVE-2023-25827
MEDIUM
6.1
OpenTSDB/opentsdb
parseQueryMTypeWGroupByWildcardImplicit
test/tsd/TestQueryRpc.java
ff02c1e95e60528275f69b31bcbf7b2ac625cea8
0
Analyze the following code function for security vulnerabilities
public ApiClient setBearerToken(String bearerToken) { for (Authentication auth : authentications.values()) { if (auth instanceof HttpBearerAuth) { ((HttpBearerAuth) auth).setBearerToken(bearerToken); return this; } } throw new RuntimeException("No Bearer authentication configured...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setBearerToken File: samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java Repository: OpenAPITools/openapi-generator The code follows secure coding practices.
[ "CWE-668" ]
CVE-2021-21430
LOW
2.1
OpenAPITools/openapi-generator
setBearerToken
samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java
2c576483f26f85b3979c6948a131f585c237109a
0
Analyze the following code function for security vulnerabilities
@Override public SerializationServiceBuilder setConfig(SerializationConfig config) { this.config = config; if (portableVersion < 0) { portableVersion = config.getPortableVersion(); } checkClassDefErrors = config.isCheckClassDefErrors(); useNativeByteOrder = config...
Vulnerability Classification: - CWE: CWE-502 - CVE: CVE-2016-10750 - Severity: MEDIUM - CVSS Score: 6.8 Description: Add basic protection against untrusted deserialization. Function: setConfig File: hazelcast/src/main/java/com/hazelcast/internal/serialization/impl/DefaultSerializationServiceBuilder.java Repository: h...
[ "CWE-502" ]
CVE-2016-10750
MEDIUM
6.8
hazelcast
setConfig
hazelcast/src/main/java/com/hazelcast/internal/serialization/impl/DefaultSerializationServiceBuilder.java
c1c31359a1df953e79a9ca9b6c54b3cdbfef11e9
1
Analyze the following code function for security vulnerabilities
public void addLongCreator(AnnotatedWithParams creator, boolean explicit) { verifyNonDup(creator, C_LONG, explicit); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: addLongCreator File: src/main/java/com/fasterxml/jackson/databind/deser/impl/CreatorCollector.java Repository: FasterXML/jackson-databind The code follows secure coding practices.
[ "CWE-502" ]
CVE-2019-16942
HIGH
7.5
FasterXML/jackson-databind
addLongCreator
src/main/java/com/fasterxml/jackson/databind/deser/impl/CreatorCollector.java
54aa38d87dcffa5ccc23e64922e9536c82c1b9c8
0
Analyze the following code function for security vulnerabilities
@Override public void notifyActivityDrawn(IBinder token) { if (DEBUG_VISIBILITY) Slog.d(TAG_VISIBILITY, "notifyActivityDrawn: token=" + token); synchronized (this) { ActivityRecord r = mStackSupervisor.isInAnyStackLocked(token); if (r != null) { r.getStack().n...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: notifyActivityDrawn File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
notifyActivityDrawn
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
Builder setSourceRecord(ActivityRecord source) { mSourceRecord = source; return this; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setSourceRecord File: services/core/java/com/android/server/wm/ActivityRecord.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21145
HIGH
7.8
android
setSourceRecord
services/core/java/com/android/server/wm/ActivityRecord.java
44aeef1b82ecf21187d4903c9e3666a118bdeaf3
0
Analyze the following code function for security vulnerabilities
public int getFileLength() { return fileLength; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getFileLength File: java/com/gitlab/pdftk_java/com/lowagie/text/pdf/PdfReader.java Repository: pdftk-java/pdftk The code follows secure coding practices.
[ "CWE-835" ]
CVE-2021-37819
HIGH
7.5
pdftk-java/pdftk
getFileLength
java/com/gitlab/pdftk_java/com/lowagie/text/pdf/PdfReader.java
9b0cbb76c8434a8505f02ada02a94263dcae9247
0
Analyze the following code function for security vulnerabilities
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; // set the request in the threadlocal. thi...
Vulnerability Classification: - CWE: CWE-434 - CVE: CVE-2017-11466 - Severity: HIGH - CVSS Score: 9.0 Description: #12131 fixes arbitrary upload Function: doFilter File: dotCMS/src/main/java/com/dotmarketing/filters/CMSFilter.java Repository: dotCMS/core Fixed Code: public void doFilter(ServletRequest req, ServletRe...
[ "CWE-434" ]
CVE-2017-11466
HIGH
9
dotCMS/core
doFilter
dotCMS/src/main/java/com/dotmarketing/filters/CMSFilter.java
208798c6aa9ca70f90740c8a8924e481283109ce
1
Analyze the following code function for security vulnerabilities
private void enablePointerLocation() { if (mPointerLocationView == null) { mPointerLocationView = new PointerLocationView(mContext); mPointerLocationView.setPrintCoords(false); WindowManager.LayoutParams lp = new WindowManager.LayoutParams( WindowManager.L...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: enablePointerLocation File: policy/src/com/android/internal/policy/impl/PhoneWindowManager.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-0812
MEDIUM
6.6
android
enablePointerLocation
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
84669ca8de55d38073a0dcb01074233b0a417541
0
Analyze the following code function for security vulnerabilities
@Deprecated public static String issueJwt(String id, String subject, String issuer, Long period, List<String> roles, List<String> permissions, Boolean isRefresh) { Map<String, Object> customClaimMap = new HashMap<>(4); customClaimMa...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: issueJwt File: core/src/main/java/com/usthe/sureness/util/JsonWebTokenUtil.java Repository: dromara/sureness The code follows secure coding practices.
[ "CWE-798" ]
CVE-2023-31581
CRITICAL
9.8
dromara/sureness
issueJwt
core/src/main/java/com/usthe/sureness/util/JsonWebTokenUtil.java
4f5fefaf673168d74820020a191fab2904629742
0
Analyze the following code function for security vulnerabilities
public void setContent(XDOM content) throws XWikiException { getDoc().setContent(content); updateAuthor(); updateContentAuthor(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setContent File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-863" ]
CVE-2022-23615
MEDIUM
5.5
xwiki/xwiki-platform
setContent
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java
7ab0fe7b96809c7a3881454147598d46a1c9bbbe
0
Analyze the following code function for security vulnerabilities
@Override public void rebootSafeMode(boolean confirm) { ShutdownThread.rebootSafeMode(mContext, confirm); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: rebootSafeMode File: services/core/java/com/android/server/wm/WindowManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3875
HIGH
7.2
android
rebootSafeMode
services/core/java/com/android/server/wm/WindowManagerService.java
69729fa8b13cadbf3173fe1f389fe4f3b7bd0f9c
0
Analyze the following code function for security vulnerabilities
@GetMapping("list-file") public JSON listFile(HttpServletRequest request) { final ID user = getRequestUser(request); int pageNo = getIntParameter(request, "pageNo", 1); int pageSize = getIntParameter(request, "pageSize", 100); String sort = getParameter(request, "sort"); Str...
Vulnerability Classification: - CWE: CWE-89 - CVE: CVE-2023-1495 - Severity: MEDIUM - CVSS Score: 6.5 Description: H5 sync2 (#595) * style: 目录样式gh * style: J_new * feat: advListFilterTabs * feat: nav-copyto * enh: 助记码全拼 * enh: 地图搜索选点 * enh: topnav * list pn * .form-line.v33 * open TAG * ...
[ "CWE-89" ]
CVE-2023-1495
MEDIUM
6.5
getrebuild/rebuild
listFile
src/main/java/com/rebuild/web/files/FileListController.java
c9474f84e5f376dd2ade2078e3039961a9425da7
1
Analyze the following code function for security vulnerabilities
@GuardedBy("mLock") @NonNull private boolean isUserLoadedLocked(@UserIdInt int userId) { return mUsers.get(userId) != null; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isUserLoadedLocked File: services/core/java/com/android/server/pm/ShortcutService.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-40079
HIGH
7.8
android
isUserLoadedLocked
services/core/java/com/android/server/pm/ShortcutService.java
96e0524c48c6e58af7d15a2caf35082186fc8de2
0
Analyze the following code function for security vulnerabilities
private String getGroupWikiRelPath(OLATResourceable ores) { return "/cts/wikis/" + ores.getResourceableTypeName() + "/" + ores.getResourceableId(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getGroupWikiRelPath File: src/main/java/org/olat/modules/wiki/WikiManager.java Repository: OpenOLAT The code follows secure coding practices.
[ "CWE-22" ]
CVE-2021-39180
HIGH
9
OpenOLAT
getGroupWikiRelPath
src/main/java/org/olat/modules/wiki/WikiManager.java
699490be8e931af0ef1f135c55384db1f4232637
0
Analyze the following code function for security vulnerabilities
public static JsonNode deserializeIntoTree(String contents, String fileOrHost) { JsonNode result; try { if (isJson(contents)) { result = Json.mapper().readTree(contents); } else { result = readYamlTree(contents); } } catch (IOE...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: deserializeIntoTree File: modules/swagger-parser/src/main/java/io/swagger/parser/util/DeserializationUtils.java Repository: swagger-api/swagger-parser The code follows secure coding practices.
[ "CWE-502" ]
CVE-2017-1000207
MEDIUM
6.8
swagger-api/swagger-parser
deserializeIntoTree
modules/swagger-parser/src/main/java/io/swagger/parser/util/DeserializationUtils.java
4c6584306b40de9b2dfa9065c3a438cd918534af
0
Analyze the following code function for security vulnerabilities
void updateUserSetupCompleteAndPaired() { List<UserInfo> users = mUserManager.getAliveUsers(); final int N = users.size(); for (int i = 0; i < N; i++) { int userHandle = users.get(i).id; if (mInjector.settingsSecureGetIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 0, ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: updateUserSetupCompleteAndPaired File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
updateUserSetupCompleteAndPaired
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
@Test public void testDELETEAttachmentNoRights() throws Exception { String attachmentName = String.format("%d.txt", System.currentTimeMillis()); String attachmentURI = buildURIForThisPage(AttachmentResource.class, attachmentName); String content = "ATTACHMENT CONTENT"; PutMetho...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: testDELETEAttachmentNoRights File: xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-test/xwiki-platform-rest-test-tests/src/test/it/org/xwiki/rest/test/AttachmentsResourceIT.java Repository: xwiki/xwiki-plat...
[ "CWE-352" ]
CVE-2023-37277
CRITICAL
9.6
xwiki/xwiki-platform
testDELETEAttachmentNoRights
xwiki-platform-core/xwiki-platform-rest/xwiki-platform-rest-test/xwiki-platform-rest-test-tests/src/test/it/org/xwiki/rest/test/AttachmentsResourceIT.java
4c175405faa0e62437df397811c7526dfc0fbae7
0
Analyze the following code function for security vulnerabilities
@Override public void forceRemoveActiveAdmin(ComponentName adminReceiver, int userHandle) { if (!mHasFeature) { return; } Objects.requireNonNull(adminReceiver, "ComponentName is null"); Preconditions.checkCallAuthorization(isAdb(getCallerIdentity()) ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: forceRemoveActiveAdmin File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-40089
HIGH
7.8
android
forceRemoveActiveAdmin
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
e2e05f488da6abc765a62e7faf10cb74e729732e
0
Analyze the following code function for security vulnerabilities
@Deprecated public void addAttachment(XWikiAttachment attachment) { setAttachment(attachment); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: addAttachment File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
addAttachment
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
final void showAppWarningsIfNeededLocked(ActivityRecord r) { mAppWarnings.showUnsupportedCompileSdkDialogIfNeeded(r); mAppWarnings.showUnsupportedDisplaySizeDialogIfNeeded(r); mAppWarnings.showDeprecatedTargetDialogIfNeeded(r); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: showAppWarningsIfNeededLocked File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
showAppWarningsIfNeededLocked
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
@Override public int describeContents() { return 0; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: describeContents File: framework/java/android/net/wifi/hotspot2/pps/Policy.java Repository: android The code follows secure coding practices.
[ "CWE-400" ]
CVE-2023-21240
MEDIUM
5.5
android
describeContents
framework/java/android/net/wifi/hotspot2/pps/Policy.java
69119d1d3102e27b6473c785125696881bce9563
0
Analyze the following code function for security vulnerabilities
void addConferenceParticipants(Call call, List<Uri> participants) { final String callId = mCallIdMapper.getCallId(call); if (callId != null && isServiceValid("addConferenceParticipants")) { try { logOutgoing("addConferenceParticipants %s", callId); mServiceInt...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: addConferenceParticipants File: src/com/android/server/telecom/ConnectionServiceWrapper.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21283
MEDIUM
5.5
android
addConferenceParticipants
src/com/android/server/telecom/ConnectionServiceWrapper.java
9b41a963f352fdb3da1da8c633d45280badfcb24
0
Analyze the following code function for security vulnerabilities
private static String fileContents() { try (InputStream in = Holder.class.getResourceAsStream("/error.html")) { return IOUtils.toString(in, StandardCharsets.UTF_8); } catch (IOException e) { throw new RuntimeException(e); } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: fileContents File: spark/spark-base/src/main/java/com/thoughtworks/go/spark/HtmlErrorPage.java Repository: gocd The code follows secure coding practices.
[ "CWE-79" ]
CVE-2022-29183
MEDIUM
4.3
gocd
fileContents
spark/spark-base/src/main/java/com/thoughtworks/go/spark/HtmlErrorPage.java
bda81084c0401234b168437cf35a63390e3064d1
0
Analyze the following code function for security vulnerabilities
private void unbindFields(List<Field<?>> fields) { for (Field<?> field : fields) { clearField(field); unbind(field); field.setParent(null); } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: unbindFields File: server/src/main/java/com/vaadin/ui/Grid.java Repository: vaadin/framework The code follows secure coding practices.
[ "CWE-79" ]
CVE-2019-25028
MEDIUM
4.3
vaadin/framework
unbindFields
server/src/main/java/com/vaadin/ui/Grid.java
b9ba10adaa06a0977c531f878c3f0046b67f9cc0
0
Analyze the following code function for security vulnerabilities
@Override public boolean isUserAMonkey() { synchronized (this) { // If there is a controller also implies the user is a monkey. return (mUserIsMonkey || (mController != null && mControllerIsAMonkey)); } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isUserAMonkey File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
isUserAMonkey
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
protected void sendReport( RequestContext requestContext, Hashtable<String, Integer> errorList ) throws IOException { HttpServletResponse resp = requestContext.getHttpServletResponse(); HttpServletRequest req = requestContext.getHttpServletRequest(); resp.setStatus(WebdavStatus.SC_MU...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: sendReport File: core/src/main/java/org/opencrx/application/uses/net/sf/webdav/methods/WebDavMethod.java Repository: opencrx The code follows secure coding practices.
[ "CWE-611" ]
CVE-2023-46502
CRITICAL
9.8
opencrx
sendReport
core/src/main/java/org/opencrx/application/uses/net/sf/webdav/methods/WebDavMethod.java
ce7a71db0bb34ecbcb0e822d40598e410a48b399
0
Analyze the following code function for security vulnerabilities
public List<FileAsset> findFileAssetsByFolder(Folder parentFolder, String sortBy, boolean live, User user, boolean respectFrontendRoles) throws DotDataException, DotSecurityException { List<FileAsset> assets = null; try{ assets = fromContentlets(perAPI.filterCollection(contAPI.search("+structureType:" + St...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: findFileAssetsByFolder File: dotCMS/src/main/java/com/dotmarketing/portlets/fileassets/business/FileAssetAPIImpl.java Repository: dotCMS/core The code follows secure coding practices.
[ "CWE-434" ]
CVE-2017-11466
HIGH
9
dotCMS/core
findFileAssetsByFolder
dotCMS/src/main/java/com/dotmarketing/portlets/fileassets/business/FileAssetAPIImpl.java
ab2bb2e00b841d131b8734227f9106e3ac31bb99
0
Analyze the following code function for security vulnerabilities
@GET @Path("slow-async-writer-on-worker-thread") public AsyncWriterData slowAsyncWriterOnWorkerThread() { return new AsyncWriterData(false, true); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: slowAsyncWriterOnWorkerThread File: server-adapters/resteasy-undertow/src/test/java/org/jboss/resteasy/test/undertow/AsyncIOResource.java Repository: resteasy The code follows secure coding practices.
[ "CWE-378" ]
CVE-2023-0482
MEDIUM
5.5
resteasy
slowAsyncWriterOnWorkerThread
server-adapters/resteasy-undertow/src/test/java/org/jboss/resteasy/test/undertow/AsyncIOResource.java
807d7456f2137cde8ef7c316707211bf4e542d56
0
Analyze the following code function for security vulnerabilities
public String getUserID() { return userID; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getUserID File: base/common/src/main/java/com/netscape/certsrv/cert/CertSearchRequest.java Repository: dogtagpki/pki The code follows secure coding practices.
[ "CWE-611" ]
CVE-2022-2414
HIGH
7.5
dogtagpki/pki
getUserID
base/common/src/main/java/com/netscape/certsrv/cert/CertSearchRequest.java
16deffdf7548e305507982e246eb9fd1eac414fd
0
Analyze the following code function for security vulnerabilities
boolean isKexDone() { return done.isSet(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isKexDone File: src/main/java/net/schmizz/sshj/transport/KeyExchanger.java Repository: hierynomus/sshj The code follows secure coding practices.
[ "CWE-354" ]
CVE-2023-48795
MEDIUM
5.9
hierynomus/sshj
isKexDone
src/main/java/net/schmizz/sshj/transport/KeyExchanger.java
94fcc960e0fb198ddec0f7efc53f95ac627fe083
0
Analyze the following code function for security vulnerabilities
public static RunUrl decompose(StaplerRequest req) { List<Ancestor> ancestors = req.getAncestors(); // find the first and last Run instances Ancestor f=null,l=null; for (Ancestor anc : ancestors) { if(anc.getObject() instanceof Run) { if(f==null) f=anc; ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: decompose File: core/src/main/java/hudson/Functions.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-310" ]
CVE-2014-2061
MEDIUM
5
jenkinsci/jenkins
decompose
core/src/main/java/hudson/Functions.java
bf539198564a1108b7b71a973bf7de963a6213ef
0
Analyze the following code function for security vulnerabilities
@Override public void copyAvatar(Project from, Project to) { Lock avatarLock = LockUtils.getLock("uploaded-project-avatar:" + from.getId()); avatarLock.lock(); try { File uploaded = getUploaded(from.getId()); if (uploaded.exists()) { FileUtils.copyFile(uploaded, getUploaded(to.getId())); } } catch...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: copyAvatar File: server-core/src/main/java/io/onedev/server/web/avatar/DefaultAvatarManager.java Repository: theonedev/onedev The code follows secure coding practices.
[ "CWE-552" ]
CVE-2022-39208
HIGH
7.5
theonedev/onedev
copyAvatar
server-core/src/main/java/io/onedev/server/web/avatar/DefaultAvatarManager.java
8aa94e0daf8447cdf76d4f27bfda0a85a7ea5822
0
Analyze the following code function for security vulnerabilities
public void cloneXObjects(XWikiDocument templatedoc) { cloneXObjects(templatedoc, true); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: cloneXObjects File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
cloneXObjects
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
private int runSetEnabledSetting(int state) { int userId = 0; String option = nextOption(); if (option != null && option.equals("--user")) { String optionData = nextOptionData(); if (optionData == null || !isNumber(optionData)) { System.err.println("Error:...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: runSetEnabledSetting File: cmds/pm/src/com/android/commands/pm/Pm.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3833
HIGH
9.3
android
runSetEnabledSetting
cmds/pm/src/com/android/commands/pm/Pm.java
4e4743a354e26467318b437892a9980eb9b8328a
0
Analyze the following code function for security vulnerabilities
public void setUseStreamManagement(boolean useSm) { this.useSm = useSm; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setUseStreamManagement File: smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java Repository: igniterealtime/Smack The code follows secure coding practices.
[ "CWE-362" ]
CVE-2016-10027
MEDIUM
4.3
igniterealtime/Smack
setUseStreamManagement
smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java
a9d5cd4a611f47123f9561bc5a81a4555fe7cb04
0
Analyze the following code function for security vulnerabilities
protected void _reportInvalidInitial(int mask) throws JsonParseException { _reportError("Invalid UTF-8 start byte 0x"+Integer.toHexString(mask)); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: _reportInvalidInitial File: cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor/CBORParser.java Repository: FasterXML/jackson-dataformats-binary The code follows secure coding practices.
[ "CWE-770" ]
CVE-2020-28491
MEDIUM
5
FasterXML/jackson-dataformats-binary
_reportInvalidInitial
cbor/src/main/java/com/fasterxml/jackson/dataformat/cbor/CBORParser.java
de072d314af8f5f269c8abec6930652af67bc8e6
0
Analyze the following code function for security vulnerabilities
@Override public String getGreaterThanConditionSQL(String column, Object param) { String paramStr = getParameterSQL(param); return column + " > " + paramStr; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getGreaterThanConditionSQL File: dashbuilder-backend/dashbuilder-dataset-sql/src/main/java/org/dashbuilder/dataprovider/sql/dialect/DefaultDialect.java Repository: dashbuilder The code follows secure coding practices.
[ "CWE-89" ]
CVE-2016-4999
HIGH
7.5
dashbuilder
getGreaterThanConditionSQL
dashbuilder-backend/dashbuilder-dataset-sql/src/main/java/org/dashbuilder/dataprovider/sql/dialect/DefaultDialect.java
8574899e3b6455547b534f570b2330ff772e524b
0
Analyze the following code function for security vulnerabilities
public static <T> XMLFilter getXMLFilterForClass(final Class<T> clazz, boolean disableDOCTYPE) throws SAXException { final String namespace = getNamespaceForClass(clazz); XMLFilter filter = namespace == null? new SimpleNamespaceFilter("", false) : new SimpleNamespaceFilter(namespace, true); LOG...
Vulnerability Classification: - CWE: CWE-611 - CVE: CVE-2023-0871 - Severity: MEDIUM - CVSS Score: 6.1 Description: NMS-15699: Prevent external xml entity loading Function: getXMLFilterForClass File: core/xml/src/main/java/org/opennms/core/xml/JaxbUtils.java Repository: OpenNMS/opennms Fixed Code: public static <T> ...
[ "CWE-611" ]
CVE-2023-0871
MEDIUM
6.1
OpenNMS/opennms
getXMLFilterForClass
core/xml/src/main/java/org/opennms/core/xml/JaxbUtils.java
3c17231714e3d55809efc580a05734ed530f9ad4
1
Analyze the following code function for security vulnerabilities
private @Nullable ActiveAdmin getDeviceOrProfileOwnerAdminLocked(int userHandle) { ActiveAdmin admin = getProfileOwnerAdminLocked(userHandle); if (admin == null && getDeviceOwnerUserIdUncheckedLocked() == userHandle) { admin = getDeviceOwnerAdminLocked(); } return admin; ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getDeviceOrProfileOwnerAdminLocked File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
getDeviceOrProfileOwnerAdminLocked
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
private boolean isPasswordSufficientForUserWithoutCheckpointLocked( @NonNull PasswordMetrics metrics, @UserIdInt int userId) { final int complexity = getAggregatedPasswordComplexityLocked(userId); PasswordMetrics minMetrics = getPasswordMinimumMetricsUnchecked(userId); final List<Pas...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isPasswordSufficientForUserWithoutCheckpointLocked File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
isPasswordSufficientForUserWithoutCheckpointLocked
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
@Override public void overridePendingAppTransition(String packageName, int enterAnim, int exitAnim, IRemoteCallback startedCallback) { synchronized(mWindowMap) { mAppTransition.overridePendingAppTransition(packageName, enterAnim, exitAnim, startedCallback); ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: overridePendingAppTransition File: services/core/java/com/android/server/wm/WindowManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3875
HIGH
7.2
android
overridePendingAppTransition
services/core/java/com/android/server/wm/WindowManagerService.java
69729fa8b13cadbf3173fe1f389fe4f3b7bd0f9c
0
Analyze the following code function for security vulnerabilities
@Override public boolean shouldShowRequestPermissionRationale(String packageName, String permissionName, int userId) { return mPermissionManagerServiceImpl.shouldShowRequestPermissionRationale(packageName, permissionName, userId); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: shouldShowRequestPermissionRationale File: services/core/java/com/android/server/pm/permission/PermissionManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-281" ]
CVE-2023-21249
MEDIUM
5.5
android
shouldShowRequestPermissionRationale
services/core/java/com/android/server/pm/permission/PermissionManagerService.java
c00b7e7dbc1fa30339adef693d02a51254755d7f
0
Analyze the following code function for security vulnerabilities
@Override public int readInt() throws JMSException { return (Integer)this.readPrimitiveType(Integer.class); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: readInt File: src/main/java/com/rabbitmq/jms/client/message/RMQStreamMessage.java Repository: rabbitmq/rabbitmq-jms-client The code follows secure coding practices.
[ "CWE-502" ]
CVE-2020-36282
HIGH
7.5
rabbitmq/rabbitmq-jms-client
readInt
src/main/java/com/rabbitmq/jms/client/message/RMQStreamMessage.java
f647e5dbfe055a2ca8cbb16dd70f9d50d888b638
0
Analyze the following code function for security vulnerabilities
@edu.umd.cs.findbugs.annotations.SuppressWarnings("ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD") public void cleanUp() { for (ItemListener l : ItemListener.all()) l.onBeforeShutdown(); Set<Future<?>> pending = new HashSet<Future<?>>(); terminating = true; for( Computer c : c...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: cleanUp File: core/src/main/java/jenkins/model/Jenkins.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-79" ]
CVE-2014-2065
MEDIUM
4.3
jenkinsci/jenkins
cleanUp
core/src/main/java/jenkins/model/Jenkins.java
a0b00508eeb74d7033dc4100eb382df4e8fa72e7
0
Analyze the following code function for security vulnerabilities
static public File uncompressFile( File rawDataDir, InputStream uncompressedIS, ObjectNode fileRecord, final Progress progress ) throws IOException { String fileName = JSONUtilities.getString(fileRecord, "location", "unknown"); for (String ext : new String[] {".gz","....
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: uncompressFile File: main/src/com/google/refine/importing/ImportingUtilities.java Repository: OpenRefine The code follows secure coding practices.
[ "CWE-22" ]
CVE-2018-19859
MEDIUM
4
OpenRefine
uncompressFile
main/src/com/google/refine/importing/ImportingUtilities.java
e243e73e4064de87a913946bd320fbbe246da656
0
Analyze the following code function for security vulnerabilities
public static long getMinProgressTime() { return minProgressTime; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getMinProgressTime File: library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java Repository: lingochamp/FileDownloader The code follows secure coding practices.
[ "CWE-22" ]
CVE-2018-11248
HIGH
7.5
lingochamp/FileDownloader
getMinProgressTime
library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java
b023cc081bbecdd2a9f3549a3ae5c12a9647ed7f
0
Analyze the following code function for security vulnerabilities
@Override public Set<String> getSystemApplications() { IdentityConfigParser configParser = IdentityConfigParser.getInstance(); OMElement systemApplicationsConfig = configParser.getConfigElement(SYSTEM_APPLICATIONS_CONFIG_ELEMENT); if (systemApplicationsConfig == null) { if (log....
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getSystemApplications File: components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java Repository: wso2/carbon-ident...
[ "CWE-611" ]
CVE-2021-42646
MEDIUM
6.4
wso2/carbon-identity-framework
getSystemApplications
components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java
e9119883ee02a884f3c76c7bbc4022a4f4c58fc0
0
Analyze the following code function for security vulnerabilities
@Override public void checkAccess(ThreadGroup g) { try { if (enterPublicInterface()) return; super.checkAccess(g); if (isMainThreadAndInactive()) return; if (!testThreadGroup.parentOf(g)) checkForNonWhitelistedStackFrames(() -> localized("security.error_threadgroup_access")); //$NON-NLS-1$ ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: checkAccess File: src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java Repository: ls1intum/Ares The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2024-23683
HIGH
8.2
ls1intum/Ares
checkAccess
src/main/java/de/tum/in/test/api/security/ArtemisSecurityManager.java
af4f28a56e2fe600d8750b3b415352a0a3217392
0
Analyze the following code function for security vulnerabilities
@Override public void init(FilterConfig filterConfig) throws ServletException { //nothing }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: init File: apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/filter/ClientAuthenticationFilter.java Repository: apolloconfig/apollo The code follows secure coding practices.
[ "CWE-20" ]
CVE-2020-15170
MEDIUM
6.8
apolloconfig/apollo
init
apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/filter/ClientAuthenticationFilter.java
ae9ba6cfd32ed80469f162e5e3583e2477862ddf
0
Analyze the following code function for security vulnerabilities
private Set<Integer> updatePasswordExpirationsLocked(int userHandle) { final ArraySet<Integer> affectedUserIds = new ArraySet<>(); List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked(userHandle); for (int i = 0; i < admins.size(); i++) { ActiveAdmin admin = admins.g...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: updatePasswordExpirationsLocked File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
updatePasswordExpirationsLocked
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
@CalledByNative public int getViewportSizeOffsetHeightPix() { return mViewportSizeOffsetHeightPix; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getViewportSizeOffsetHeightPix File: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java Repository: chromium The code follows secure coding practices.
[ "CWE-20" ]
CVE-2014-3159
MEDIUM
6.4
chromium
getViewportSizeOffsetHeightPix
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
98a50b76141f0b14f292f49ce376e6554142d5e2
0
Analyze the following code function for security vulnerabilities
public static void copyDb( String jdbcDriverSource, String usernameSource, String passwordSource, String jdbcUrlSource, String jdbcDriverTarget, String usernameTarget, String passwordTarget, String jdbcUrlTarget, List<String> includeDbObjects, List<String> excludeDbObje...
Vulnerability Classification: - CWE: CWE-79 - CVE: CVE-2021-25959 - Severity: MEDIUM - CVSS Score: 4.3 Description: Fixes #94 Function: copyDb File: core/src/main/java/org/opencrx/kernel/tools/CopyDb.java Repository: opencrx Fixed Code: public static void copyDb( String jdbcDriverSource, String usernameSou...
[ "CWE-79" ]
CVE-2021-25959
MEDIUM
4.3
opencrx
copyDb
core/src/main/java/org/opencrx/kernel/tools/CopyDb.java
14e75f95e5f56fbe7ee897bdf5d858788072e818
1
Analyze the following code function for security vulnerabilities
private boolean hasCallingPermission(String permission) { return mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: hasCallingPermission File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
hasCallingPermission
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
@Override public void onAnimationStarted() { // Notify recents to start the enter animation if (!mStartAnimationTriggered) { // There can be a race condition between the start animation callback and // the start of the new activity (where we register the receiver that listens...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: onAnimationStarted File: packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-0813
MEDIUM
6.6
android
onAnimationStarted
packages/SystemUI/src/com/android/systemui/recents/AlternateRecentsComponent.java
16a76dadcc23a13223e9c2216dad1fe5cad7d6e1
0