Exploit databaseDownload repository ZIP
GH-9a017fa45abc7e1f8f6ba6e1285cae54
iplayforsg/cve-2023-51444
Sources for CVE-2023-51444
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files20
iplayforsg/cve-2023-51444Revision 5cd0aeccb789
- ↑..Parent directory
- ConfigDatabase.java
- DbMappings.java
- DbUtils.java
- Dialect.java
- FilterToCatalogSQL.java
- InfoIdentities.java
- InfoIdentity.java
- InfoRowMapper.java
- JDBCCacheProvider.java
- JDBCConfigProperties.java
- JDBCConfigPropertiesFactoryBean.java
- JDBCConfigXStreamPersisterInitializer.java
- JDBCLifecycleHandler.java
- OracleDialect.java
- Property.java
- PropertyType.java
- QueryBuilder.java
- ResultSetIteratorAdapter.java
- Util.java
- XStreamInfoSerialBinding.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
community/jdbcconfig/src/main/java/org/geoserver/jdbcconfig/internal/OracleDialect.java
Java · 1,287 bytes/* (c) 2014 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2014 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.jdbcconfig.internal;
import javax.annotation.Nullable;
public class OracleDialect extends Dialect {
@Override
public void applyOffsetLimit(
StringBuilder sql, @Nullable Integer offset, @Nullable Integer limit) {
// some db's require limit to be present of offset is
if (offset != null && limit == null) {
limit = Integer.MAX_VALUE; // ensure we don't wrap around
}
if (limit != null && offset == null) {
offset = 0;
limit += 1; // not zero-based
}
if (offset != null && limit != null) {
sql.insert(0, "select * from ( select query.*, rownum rnum from (\n");
sql.append(") query\n");
if (limit != Integer.MAX_VALUE) {
limit = offset + limit;
}
sql.append("where rownum <= ").append(limit).append(")\n");
sql.append("where rnum > ").append(offset);
}
}
@Override
public String nextVal(String sequence) {
return sequence + ".nextval";
}
}