func_before
stringlengths
10
482k
func_after
stringlengths
14
484k
cve_id
stringlengths
13
28
cwe_id
stringclasses
776 values
cve_description
stringlengths
30
3.31k
commit_link
stringlengths
48
164
commit_message
stringlengths
1
30.3k
file_name
stringlengths
4
244
extension
stringclasses
20 values
datetime
stringdate
1999-11-10 02:42:49
2024-01-29 16:00:57
def add_month_data_row(self, inverter_serial, ts, etoday, etotal): y = datetime.fromtimestamp(ts) - timedelta(days=1) y_ts = int(datetime(y.year, y.month, y.day, 23, tzinfo=pytz.utc).timestamp()) query = ''' INSERT INTO MonthData ( TimeStamp, Serial,...
def add_month_data_row(self, inverter_serial, ts, etoday, etotal): y = datetime.fromtimestamp(ts) - timedelta(days=1) y_ts = int(datetime(y.year, y.month, y.day, 23, tzinfo=pytz.utc).timestamp()) query = ''' INSERT INTO MonthData ( TimeStamp, Serial,...
null
cwe-089
null
github.com/philipptrenz/s0-bridge/commit/269b48caa05377b7c58c3e6d1622a4429cb5ba65
null
util/database.py
py
2019-01-18T13:00:24Z
archive_wstring_append_from_mbs(struct archive_wstring *dest, const char *p, size_t len) { return archive_wstring_append_from_mbs_in_codepage(dest, p, len, NULL); }
archive_wstring_append_from_mbs(struct archive_wstring *dest, const char *p, size_t len) { size_t r; int ret_val = 0; /* * No single byte will be more than one wide character, * so this length estimate will always be big enough. */ // size_t wcs_length = len; size_t mbs_length = len; const char *mbs = p...
null
CWE-125
null
https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41
Bugfix and optimize archive_wstring_append_from_mbs() The cal to mbrtowc() or mbtowc() should read up to mbs_length bytes and not wcs_length. This avoids out-of-bounds reads. mbrtowc() and mbtowc() return (size_t)-1 wit errno EILSEQ when they encounter an invalid multibyte character and (size_t)-2 when they they enco...
null
null
2019-11-21T02:08:40Z
*/ PHPAPI void php_print_info(int flag TSRMLS_DC) { char **env, *tmp1, *tmp2; char *php_uname; if (!sapi_module.phpinfo_as_text) { php_print_info_htmlhead(TSRMLS_C); } else { php_info_print("phpinfo()\n"); } if (flag & PHP_INFO_GENERAL) { char *zend_version = get_zend_version(); char temp_api[10]; ph...
*/ PHPAPI void php_info_print_table_row_ex(int num_cols, const char *value_class, ...) { va_list row_elements; va_start(row_elements, value_class); php_info_print_table_row_internal(num_cols, value_class, row_elements); va_end(row_elements);
CVE-2014-4721
CWE-200
The phpinfo implementation in ext/standard/info.c in PHP before 5.4.30 and 5.5.x before 5.5.14 does not ensure use of the string data type for the PHP_AUTH_PW, PHP_AUTH_TYPE, PHP_AUTH_USER, and PHP_SELF variables, which might allow context-dependent attackers to obtain sensitive information from process memory by using...
http://git.php.net/?p=php-src.git;a=commitdiff;h=3804c0d00fa6e629173fb1c8c61f8f88d5fe39b9
Fix bug #67498 - phpinfo() Type Confusion Information Leak Vulnerability
null
null
null
public List<MyPackageOps> getOpsForPackage(String[] args) { if (haveWrongArgs(args, 3, false)) { return null; } return getMyPackageOpsList(Integer.parseInt(args[1]), args[2], args[3]); }
public List<MyPackageOps> getOpsForPackage(String[] args) { if (haveWrongArgs(args, 3, true)) { return null; } return getMyPackageOpsList(Integer.parseInt(args[1]), args[2], args[3]); }
null
null
null
https://github.com/mirfatif/PermissionManagerX/commit/a73b6999996e43e52238f5dc31c037bb97efd5fa
Bump library versions
priv_library/src/main/java/com/mirfatif/privtasks/PrivTasks.java
java
2021-02-15T23:50:27Z
def populate_obj(self, userobj): # Enable or disable MFA only when a code is provided. if self.enable_mfa.data: userobj.mfa = UserObject.ENABLED_MFA flash(_("Two-Factor authentication enabled successfully."), level='success') elif self.disable_mfa.data: userob...
def populate_obj(self, userobj): # Enable or disable MFA only when a code is provided. if self.enable_mfa.data: userobj.mfa = UserObject.ENABLED_MFA userobj.commit() flash(_("Two-Factor authentication enabled successfully."), level='success') elif self.disable...
null
null
null
https://github.com/ikus060/rdiffweb/commit/6efb995bc32c8a8e9ad755eb813dec991dffb2b8
Delete user's session on password change * Revisit add, delete commit function * Clean-up Access Token using a scheduled job
rdiffweb/controller/page_pref_mfa.py
py
2022-11-01T22:59:49Z
static noinline_for_stack int ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) { struct ccp_sha_engine *sha = &cmd->u.sha; struct ccp_dm_workarea ctx; struct ccp_data src; struct ccp_op op; unsigned int ioffset, ooffset; unsigned int digest_size; int sb_count; const void *init; u64 block_size;...
static noinline_for_stack int ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) { struct ccp_sha_engine *sha = &cmd->u.sha; struct ccp_dm_workarea ctx; struct ccp_data src; struct ccp_op op; unsigned int ioffset, ooffset; unsigned int digest_size; int sb_count; const void *init; u64 block_size;...
null
null
null
https://github.com/torvalds/linux/commit/128c66429247add5128c03dc1e144ca56f05a4e2
crypto: ccp - Release all allocated memory if sha type is invalid Release all allocated memory if sha type is invalid: In ccp_run_sha_cmd, if the type of sha is invalid, the allocated hmac_buf should be released. v2: fix the goto. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Acked-by: Gary R Hook <gary...
drivers/crypto/ccp/ccp-ops.c
c
2019-09-19T16:04:48Z
def self.normalize url url.sub!(/#(?!\!)[^#]*$/,'') url.sub!('|', '%7C') uri = URI.parse(url) @@normalizer_for[uri.host].new(uri).normalize end
def self.normalize url url.sub!(/#(?!\!)[^#]*$/,'') url.gsub!('|', '%7C') uri = URI.parse(url) @@normalizer_for[uri.host].new(uri).normalize end
null
cwe-116
null
github.com/Factlink/url_normalizer/commit/1aae2f1401804eeb040557f64cbd667073dbd6ea
gsub pipes instead of subs
url_normalizer.rb
rb
2012-05-09T13:41:04Z
build_version_comments(docinfo, out) { var me = this; docinfo.versions.forEach(function(version) { if(!version.data) return; var data = JSON.parse(version.data); // comment if(data.comment) { out.push(me.get_version_comment(version, data.comment, data.comment_type)); return; } // value c...
build_version_comments(docinfo, out) { var me = this; docinfo.versions.forEach(function(version) { if(!version.data) return; var data = JSON.parse(version.data); // comment if(data.comment) { out.push(me.get_version_comment(version, data.comment, data.comment_type)); return; } // value c...
CVE-2019-15700
CWE-79
public/js/frappe/form/footer/timeline.js in Frappe Framework 12 through 12.0.8 does not escape HTML in the timeline and thus is affected by crafted "changed value of" text.
https://github.com/frappe/frappe/commit/6aebe0f522e02186313ec6a8f6f265ec11122ce9
fix: Escape html in timeline
frappe/public/js/frappe/form/footer/timeline.js
js
2019-08-26T09:24:52Z
public void onBucketEvent(PlayerBucketEvent event) { Player player = event.getPlayer(); User user = IridiumSkyblock.getInstance().getUserManager().getUser(player); Optional<Island> island = IridiumSkyblock.getInstance().getIslandManager().getIslandViaLocation(event.getBlock().getLocation()); ...
public void onBucketEvent(PlayerBucketEvent event) { Player player = event.getPlayer(); User user = IridiumSkyblock.getInstance().getUserManager().getUser(player); Optional<Island> island = IridiumSkyblock.getInstance().getIslandManager().getIslandViaLocation(event.getBlock().getLocation()); ...
null
null
null
https://github.com/Iridium-Development/IridiumSkyblock/commit/43f9f0c2f99a59c6eaa5e790e72cf6df016ad23e
Prevent bypassing players being kicked by private command (#414) * Prevent bypassing players being kicked by private command * Rename bypass field to bypassing
src/main/java/com/iridium/iridiumskyblock/listeners/BucketListener.java
java
2021-10-02T10:24:36Z
private void removeShortcutAsync(@NonNull final Collection<String> ids) { if (!isAppSearchEnabled()) { return; } runAsSystem(() -> fromAppSearch().thenAccept(session -> session.remove( new RemoveByDocumentIdRequest.Builder(getPackageName()).add...
private void removeShortcutAsync(@NonNull final Collection<String> ids) { if (!isAppSearchEnabled()) { return; } runAsSystem(() -> fromAppSearch().thenAccept(session -> session.remove( new RemoveByDocumentIdRequest.Builder(getPackageName()).add...
null
null
null
https://github.com/LineageOS/android_frameworks_base/commit/05ec3573fce74ea7c6b752a6363bb687272840d6
Gracefully handle system error from AppSearch In rare scenario, if AppSearchSession was invoked after user is locked, the call will fail which currently resulted in a crash in system process. This CL includes the logic to prevent such scenario from crashing the system process. Bug: 221110670 Test: manual Change-Id: I...
services/core/java/com/android/server/pm/ShortcutPackage.java
java
2022-03-17T00:47:15Z
LogLuvDecode32(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) { static const char module[] = "LogLuvDecode32"; LogLuvState* sp; int shft; tmsize_t i; tmsize_t npixels; unsigned char* bp; uint32* tp; uint32 b; tmsize_t cc; int rc; assert(s == 0); sp = DecoderState(tif); assert(sp != NULL); npixels = occ /...
LogLuvDecode32(TIFF* tif, uint8* op, tmsize_t occ, uint16 s) { static const char module[] = "LogLuvDecode32"; LogLuvState* sp; int shft; tmsize_t i; tmsize_t npixels; unsigned char* bp; uint32* tp; uint32 b; tmsize_t cc; int rc; assert(s == 0); sp = DecoderState(tif); assert(sp != NULL); npixels = occ /...
CVE-2015-8781
CWE-787
tif_luv.c in libtiff allows attackers to cause a denial of service (out-of-bounds write) via an invalid number of samples per pixel in a LogL compressed TIFF image, a different vulnerability than CVE-2015-8782.
https://github.com/vadz/libtiff/commit/aaab5c3c9d2a2c6984f23ccbc79702610439bc65
* libtiff/tif_luv.c: fix potential out-of-bound writes in decode functions in non debug builds by replacing assert()s by regular if checks (bugzilla #2522). Fix potential out-of-bound reads in case of short input data.
null
null
2015-12-27T16:25:11Z
@SuppressWarnings("all") public static void renderBeam(PoseStack matrices, float tickDelta, float heightScale, long worldTime, int yOffset, int maxY, float[] color, float innerRadius, float outerRadius) { ResourceLocation textureId = new ResourceLocation("textures/entity/be...
@SuppressWarnings("all") public static void renderBeam(PoseStack matrices, float tickDelta, float heightScale, long worldTime, int yOffset, int maxY, float[] color, float innerRadius, float outerRadius) { ResourceLocation textureId = new ResourceLocation("textures/entity/be...
null
null
null
https://github.com/plusls/oh-my-minecraft-client/commit/a41ad3b0d600378be4775d0cb864990769078cc9
fix crash in java8
src/main/java/com/plusls/ommc/feature/highlithtWaypoint/HighlightWaypointUtil.java
java
2022-05-22T04:15:06Z
static int check_allowed_keys_line(const char *path, u_long linenum, char *line, const struct sshkey *sign_key, const char *principal, const char *sig_namespace) { struct sshkey *found_key = NULL; int r, found = 0; const char *reason = NULL; struct sshsigopt *sigopts = NULL; /* Parse the line */ if ((r =...
static int check_allowed_keys_line(const char *path, u_long linenum, char *line, const struct sshkey *sign_key, const char *principal, const char *sig_namespace, uint64_t verify_time) { struct sshkey *found_key = NULL; int r, success = 0; const char *reason = NULL; struct sshsigopt *sigopts = NULL; char tv...
null
null
null
https://github.com/openssh/openssh-portable/commit/dcdf9749f6682d6f980ea6c956817a9564daaed7
Merge branch 'openssh-master'
sshsig.c
c
2021-08-18T13:31:52Z
int ssl3_accept(SSL *s) { BUF_MEM *buf; unsigned long alg_k,Time=(unsigned long)time(NULL); void (*cb)(const SSL *ssl,int type,int val)=NULL; int ret= -1; int new_state,state,skip=0; RAND_add(&Time,sizeof(Time),0); ERR_clear_error(); clear_sys_error(); if (s->info_callback != NULL) cb=s->info_callback; e...
int ssl3_accept(SSL *s) { BUF_MEM *buf; unsigned long alg_k,Time=(unsigned long)time(NULL); void (*cb)(const SSL *ssl,int type,int val)=NULL; int ret= -1; int new_state,state,skip=0; RAND_add(&Time,sizeof(Time),0); ERR_clear_error(); clear_sys_error(); if (s->info_callback != NULL) cb=s->info_callback; e...
CVE-2014-0224
CWE-326, CWE-310
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCipherSpec messages, which allows man-in-the-middle attackers to trigger use of a zero-length master key in certain OpenSSL-to-OpenSSL communications, and consequently hijack sessions or obtain sensitive ...
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=bc8923b1ec9c467755cd86f7848c50ee8812e441
Fix for CVE-2014-0224 Only accept change cipher spec when it is expected instead of at any time. This prevents premature setting of session keys before the master secret is determined which an attacker could use as a MITM attack. Thanks to KIKUCHI Masashi (Lepidum Co. Ltd.) for reporting this issue and providing the ...
null
null
null
static int64_t archipelago_volume_info(BDRVArchipelagoState *s) { uint64_t size; int ret, targetlen; struct xseg_request *req; struct xseg_reply_info *xinfo; AIORequestData *reqdata = g_malloc(sizeof(AIORequestData)); const char *volname = s->volname; targetlen = strlen(volname); req = x...
static int64_t archipelago_volume_info(BDRVArchipelagoState *s) { uint64_t size; int ret, targetlen; struct xseg_request *req; struct xseg_reply_info *xinfo; AIORequestData *reqdata = g_new(AIORequestData, 1); const char *volname = s->volname; targetlen = strlen(volname); req = xseg_get_...
null
null
null
qemu/commit/5839e53bbc0fec56021d758aab7610df421ed8c8
block: Use g_new() & friends where that makes obvious sense g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, for two reasons. One, it catches multiplication overflowing size_t. Two, it returns T * rather than void *, which lets the compiler catch more type errors. Patch created with Coccinelle, ...
./qemu/block/archipelago.c
c
2014-08-19T08:31:08Z
def main(): parser = get_argparser() argv = sys.argv[1:] args = parser.parse_args(argv) if args.json_args is not None: args = _unpack_json_args(args) earlyinit.early_init(args) # We do this imports late as earlyinit needs to be run first (because of # version checking and other early...
def main(): _validate_untrusted_args(sys.argv) parser = get_argparser() argv = sys.argv[1:] args = parser.parse_args(argv) if args.json_args is not None: args = _unpack_json_args(args) earlyinit.early_init(args) # We do this imports late as earlyinit needs to be run first (because of...
null
null
null
https://github.com/qutebrowser/qutebrowser/commit/8f46ba3f6dc7b18375f7aa63c48a1fe461190430
CVE-2021-41146: Add --untrusted-args to avoid argument injection On Windows, if an application is registered as an URL handler like this: HKEY_CLASSES_ROOT https URL Protocol = "" [...] shell open command (Default)...
qutebrowser/qutebrowser.py
py
2021-10-16T20:14:20Z
BOOL region16_intersect_rect(REGION16* dst, const REGION16* src, const RECTANGLE_16* rect) { REGION16_DATA* newItems; const RECTANGLE_16* srcPtr, *endPtr, *srcExtents; RECTANGLE_16* dstPtr; UINT32 nbRects, usedRects; RECTANGLE_16 common, newExtents; assert(src); assert(src->data); srcPtr = region16_rects(src, &...
BOOL region16_intersect_rect(REGION16* dst, const REGION16* src, const RECTANGLE_16* rect) { REGION16_DATA* data; REGION16_DATA* newItems; const RECTANGLE_16* srcPtr, *endPtr, *srcExtents; RECTANGLE_16* dstPtr; UINT32 nbRects, usedRects; RECTANGLE_16 common, newExtents; assert(src); assert(src->data); srcPtr =...
null
null
null
https://github.com/FreeRDP/FreeRDP/commit/9fee4ae076b1ec97b97efb79ece08d1dab4df29a
Fixed #5645: realloc return handling
libfreerdp/codec/region.c
c
2019-10-04T12:49:30Z
static bool net_tx_pkt_do_sw_fragmentation(struct NetTxPkt *pkt, NetClientState *nc) { struct iovec fragment[NET_MAX_FRAG_SG_LIST]; size_t fragment_len = 0; bool more_frags = false; /* some pointers for shorter code */ void *l2_iov_base, *l3_iov_base; size_t l2_iov_len, l3_iov_len; int ...
static bool net_tx_pkt_do_sw_fragmentation(struct NetTxPkt *pkt, NetClientState *nc) { struct iovec fragment[NET_MAX_FRAG_SG_LIST]; size_t fragment_len = 0; bool more_frags = false; /* some pointers for shorter code */ void *l2_iov_base, *l3_iov_base; size_t l2_iov_len, l3_iov_len; int ...
CVE-2016-6834
CWE-120
The net_tx_pkt_do_sw_fragmentation function in hw/net/net_tx_pkt.c in QEMU (aka Quick Emulator) allows local guest OS administrators to cause a denial of service (infinite loop and QEMU process crash) via a zero length for the current fragment length.
https://git.qemu.org/?p=qemu.git;a=commit;h=ead315e43ea0c2ca3491209c6c8db8ce3f2bbe05
null
null
c
null
public EnhancedXStream(boolean export) { super(); if (export) { addDefaultImplementation(PersistentList.class, List.class); addDefaultImplementation(PersistentBag.class, List.class); addDefaultImplementation(PersistentMap.class, Map.class); addDefaultImplementation(PersistentSortedMap.class, Map.class)...
EnhancedXStream(boolean export) { super(); if (export) { addDefaultImplementation(PersistentList.class, List.class); addDefaultImplementation(PersistentBag.class, List.class); addDefaultImplementation(PersistentMap.class, Map.class); addDefaultImplementation(PersistentSortedMap.class, Map.class); ad...
CVE-2021-39181
CWE-91
OpenOlat is a web-based learning management system (LMS). Prior to version 15.3.18, 15.5.3, and 16.0.0, using a prepared import XML file (e.g. a course) any class on the Java classpath can be instantiated, including spring AOP bean factories. This can be used to execute code arbitrary code by the attacker. The attack r...
https://github.com/OpenOLAT/OpenOLAT/commit/3f219ac457afde82e3be57bc614352ab92c05684
OO-5548: setup security of XStream by default
UpgradeManager.java
java
2021-09-01T20:15:00Z
@Override public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { String value = p.getValueAsString(); // 没开启 Xss 则直接返回 if (!XssStateHolder.enabled()) { return value; } return value != null ? HtmlUtils.cleanUnSafe(value) : null; }
@Override public String deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { String value = p.getValueAsString(); // 没开启 Xss 则直接返回 if (!XssStateHolder.enabled()) { return value; } return value != null ? xssCleaner.clean(value) : null; }
null
null
null
https://github.com/ballcat-projects/ballcat/commit/2519b52a6e4a70b9d85ae2017e42b738ef5cce85
:zap: 抽象出 XssCleaner 角色,用于控制 Xss 文本的清除行为
ballcat-starters/ballcat-spring-boot-starter-xss/src/main/java/com/hccake/ballcat/common/xss/core/XssStringJsonDeserializer.java
java
2021-08-27T13:30:56Z
public static MathTransform create(final int dimension, final int wraparoundDimension, final double period, final double sourceMedian, final double targetMedian) { ArgumentChecks.ensureStrictlyPositive("dimension", dimension); ArgumentChecks.ensureBetween("wrap...
public static MathTransform create(final int dimension, final int wraparoundDimension, final double period, final double sourceMedian, final double targetMedian) { ArgumentChecks.ensureStrictlyPositive("dimension", dimension); ArgumentChecks.ensureBetween("wrap...
null
null
null
https://github.com/apache/sis/commit/021178f9d9b5f779aade1898bccb8f6edc3b39d4
Avoid a stack overflow when `getDomain(…)` is invoked on a chain of transforms which contains a `WrapAroundTransform`.
core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/transform/WraparoundTransform.java
java
2022-07-10T20:14:47Z
win_enter_ext( win_T *wp, int undo_sync, int curwin_invalid, int trigger_new_autocmds, int trigger_enter_autocmds, int trigger_leave_autocmds) { int other_buffer = FALSE; if (wp == curwin && !curwin_invalid) /* nothing to do */ return; #ifdef FEAT_JOB_CHANNEL if (!curwin_inv...
win_enter_ext( win_T *wp, int undo_sync, int curwin_invalid, int trigger_new_autocmds, int trigger_enter_autocmds, int trigger_leave_autocmds) { int other_buffer = FALSE; if (wp == curwin && !curwin_invalid) /* nothing to do */ return; #ifdef FEAT_JOB_CHANNEL if (!curwin_inv...
CVE-2019-20079
CWE-416
The autocmd feature in window.c in Vim before 8.1.2136 accesses freed memory.
https://github.com/vim/vim/commit/ec66c41d84e574baf8009dbc0bd088d2bc5b2421
patch 8.1.2136: using freed memory with autocmd from fuzzer Problem: using freed memory with autocmd from fuzzer. (Dhiraj Mishra, Dominique Pelle) Solution: Avoid using "wp" after autocommands. (closes #5041)
window.c
c
2019-10-11T19:19:13Z
internal static async Task<string?> OnBotCommand(Bot bot, ulong steamID, string message, string[] args) { ArgumentNullException.ThrowIfNull(bot); if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount) { throw new ArgumentOutOfRangeException(nameof(steamID)); } if (string.IsNullOrEmpty(message)) {...
internal static async Task<string?> OnBotCommand(Bot bot, EAccess access, string message, string[] args, ulong steamID = 0) { ArgumentNullException.ThrowIfNull(bot); if (!Enum.IsDefined(typeof(EAccess), access)) { throw new InvalidEnumArgumentException(nameof(access), (int) access, typeof(EAccess)); } if (...
null
null
null
https://github.com/JustArchiNET/ArchiSteamFarm/commit/b182d64cf5165bf6a857a9d78f239017e9ce4b65
Start work on #2500
ArchiSteamFarm/Plugins/PluginsCore.cs
cs
2022-01-22T02:36:46Z
public static void unpause() { Logger.infoEvery(ReindexThread.class, "--- ReindexThread Running", 60000); cache.get().remove(REINDEX_THREAD_PAUSED); getInstance().state(ThreadState.RUNNING); }
public static void unpause() { Logger.infoEvery(ReindexThread.class, "--- ReindexThread Running", 60000); cache.get().remove(REINDEX_THREAD_PAUSED); final Thread thread = new Thread(getInstance().ReindexThreadRunnable, "ReindexThreadRunnable"); final DotSubmitter submitter = Dot...
null
null
null
https://github.com/dotCMS/core/commit/51dbfe44d972fa218395e178ea7911ed92507fb9
Issue 21267 Make ReindexThread more Robust (#21268) * #21267 make ReindexThread more robust * #21267 make ReindexThread more robust * #21267 fixing logic error * #21267 Removing reference of deleted method * #21267 Troubleshooting * #21267 Decreasing initialDelay in the BackoffPolicy * #21267 Rolling back last c...
dotCMS/src/main/java/com/dotmarketing/common/reindex/ReindexThread.java
java
2021-11-30T21:25:01Z
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int fix_len, cmpl = inl; unsigned int b; /* Prevent accidental use of encryption context when decrypting */ if (ctx->encrypt) { EVPerr(EVP_F_EVP_DECRYPTUPDATE, EVP...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int fix_len, cmpl = inl; unsigned int b; /* Prevent accidental use of encryption context when decrypting */ if (ctx->encrypt) { EVPerr(EVP_F_EVP_DECRYPTUPDATE, EVP...
CVE-2021-23840
CWE-190
Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output ...
https://github.com/openssl/openssl/commit/6a51b9e1d0cf0bf8515f7201b68fb0a3482b3dc1
Don't overflow the output length in EVP_CipherUpdate calls CVE-2021-23840 Reviewed-by: Paul Dale <pauli@openssl.org>
null
null
2021-02-02T17:17:23Z
def requires_access_decorator(func: T): @wraps(func) def decorated(*args, **kwargs): __tracebackhide__ = True # Hide from pytest traceback. appbuilder = current_app.appbuilder dag_id = ( request.args.get("dag_id") or request.form.get...
def requires_access_decorator(func: T): @wraps(func) def decorated(*args, **kwargs): __tracebackhide__ = True # Hide from pytest traceback. appbuilder = current_app.appbuilder dag_id = ( kwargs.get("dag_id") or request.args.get("dag_...
null
null
null
https://github.com/apache/airflow/commit/b7b5c7e3341b2e46917cd717ced7f08cf634aa22
Check for DAG ID in query param from url as well as kwargs Previously the dag id was only being checked in request args and form but not kwargs, so it was possible for the id when passed as kwargs to be None. This can allow auth for a user who does not have the permissions to view a particular DAG.
airflow/www/auth.py
py
2023-06-20T03:50:24Z
gif_prepare_lzw (GifContext *context) { gint i; if (!gif_read (context, &(context->lzw_set_code_size), 1)) { /*g_message (_("GIF: EOF / read error on image data\n"));*/ return -1; } context->lzw_code_size = context->lzw_set_code_size + 1; context->lzw_clear_code = 1 << context->lzw_set_code_size; context->l...
gif_prepare_lzw (GifContext *context) { gint i; if (!gif_read (context, &(context->lzw_set_code_size), 1)) { /*g_message (_("GIF: EOF / read error on image data\n"));*/ return -1; } if (context->lzw_set_code_size > MAX_LZW_BITS) { g_set_error (context->error, ...
CVE-2011-2897
CWE-20
gdk-pixbuf through 2.31.1 has GIF loader buffer overflow when initializing decompression tables due to an input validation flaw
http://git.gnome.org/browse/gdk-pixbuf/commit/gdk-pixbuf/io-gif.c?id=3bac204e0d0241a0d68586ece7099e6acf0e9bea
Initial stab at getting the focus code to work. Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at getting the focus code to work. (gtk_tree_view_class_init): Add a bunch of keybindings. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_c...
null
null
null
static char* set_iovec_field_free(struct iovec *iovec, size_t *n_iovec, const char *field, char *value) { char *x; x = set_iovec_field(iovec, n_iovec, field, value); free(value); return x; }
static char* set_iovec_field_free(struct iovec *iovec, size_t *n_iovec, const char *field, char *value) { char *x; x = set_iovec_string_field(iovec, n_iovec, field, value); free(value); return x; }
CVE-2018-16864
CWE-770
An allocation of memory without limits, that could result in the stack clashing with another memory region, was discovered in systemd-journald when a program with long command line arguments calls syslog. A local attacker may use this flaw to crash systemd-journald or escalate his privileges. Versions through v240 are ...
https://github.com/systemd/systemd/commit/084eeb865ca63887098e0945fb4e93c852b91b0f
journald: do not store the iovec entry for process commandline on stack This fixes a crash where we would read the commandline, whose length is under control of the sending program, and then crash when trying to create a stack allocation for it. CVE-2018-16864 https://bugzilla.redhat.com/show_bug.cgi?id=1653855 The ...
null
null
2018-12-05T17:38:39Z
static int query_formats(AVFilterContext *ctx) { AVFilterFormats *formats = NULL; int fmt; for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt); if (!(desc->flags & PIX_FMT_PAL || fmt == AV_PIX_FMT_NV21 || fmt == AV_PIX...
static int query_formats(AVFilterContext *ctx) { AVFilterFormats *formats = NULL; int fmt; for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt); if (!(desc->flags & PIX_FMT_PAL)) ff_add_format(&formats, fmt); } ff_set_commo...
null
null
null
FFmpeg/commit/63a99622876ff79a07862167f243a7d3823b7315
lavfi/il: simplify/generalize linesize computation Rely on generic utilities for computing each plane linesize. In particular, add support to NV12/21 formats and avoid use of PIX_FMT_PLANAR pixdesc flag, whose semantics is questionable. It also fixes various crashes.
./ffmpeg/libavfilter/vf_il.c
c
2013-02-10T00:15:47Z
public static void unzipAsset(final AssetManager assetManager, final String zipName, final String targetDirectory) { ZipInputStream zis = null; try { final InputStream zipFile = assetManager.open(zipName); zis = new ZipInputStream(new BufferedInputStream(zipFile)); Zi...
public static void unzipAsset(final AssetManager assetManager, final String zipName, final String targetDirectory) { ZipInputStream zis = null; try { final InputStream zipFile = assetManager.open(zipName); zis = new ZipInputStream(new BufferedInputStream(zipFile)); Zi...
null
null
null
https://github.com/siyuan-note/siyuan-android/commit/328b0e940ec93b7b52c19cebdacbd71c495564d2
:art: Fixing a Zip Path Traversal Vulnerability https://support.google.com/faqs/answer/9294009
app/src/main/java/org/b3log/siyuan/Utils.java
java
2022-02-09T03:18:52Z
void ChildThread::Shutdown() { file_system_dispatcher_.reset(); quota_dispatcher_.reset(); }
void ChildThread::Shutdown() { file_system_dispatcher_.reset(); quota_dispatcher_.reset(); WebFileSystemImpl::DeleteThreadSpecificInstance(); }
CVE-2014-3154
NVD-CWE-Other
Use-after-free vulnerability in the ChildThread::Shutdown function in content/child/child_thread.cc in the filesystem API in Google Chrome before 35.0.1916.153 allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors related to a Blink shutdown.
https://github.com/chromium/chromium/commit/f14efc560a12a513696d6396413b138879dabd7a
[FileAPI] Clean up WebFileSystemImpl before Blink shutdown WebFileSystemImpl should not outlive V8 instance, since it may have references to V8. This CL ensures it deleted before Blink shutdown. BUG=369525 Review URL: https://codereview.chromium.org/270633009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2693...
content/child/child_thread.cc
cc
2014-05-09T17:04:09Z
NOEXPORT void transfer(CLI *c) { int timeout; /* s_poll_wait timeout in seconds */ int pending; /* either processed on unprocessed TLS data */ #if OPENSSL_VERSION_NUMBER >= 0x10100000L int has_pending=0, prev_has_pending; #endif int watchdog=0; /* a counter to detect an infinite loop */ ssize_t num;...
NOEXPORT void transfer(CLI *c) { int timeout; /* s_poll_wait timeout in seconds */ int pending; /* either processed on unprocessed TLS data */ #if OPENSSL_VERSION_NUMBER >= 0x10100000L int has_pending=0, prev_has_pending; #endif int watchdog=0; /* a counter to detect an infinite loop */ int err; ...
null
CWE-295
null
https://github.com/mtrojnar/stunnel/commit/ebad9ddc4efb2635f37174c9d800d06206f1edf9
stunnel-5.57
null
null
2020-10-11T18:02:12Z
): void => { const name = createElement('h2', CLASS_CATEGORY_NAME); name.innerHTML = this.i18n.categories[category] || defaultI18n.categories[category]; this.emojis.appendChild(name); this.headers.push(name); this.emojis.appendChild( new EmojiContainer( emojis, true, ...
): void => { const name = createElement('h2', CLASS_CATEGORY_NAME); name.innerHTML = escape( this.i18n.categories[category] || defaultI18n.categories[category] ); this.emojis.appendChild(name); this.headers.push(name); this.emojis.appendChild( new EmojiContainer( emojis, ...
CVE-2021-43785
CWE-79,CWE-79
@joeattardi/emoji-button is a Vanilla JavaScript emoji picker component. In affected versions there are two vectors for XSS attacks: a URL for a custom emoji, and an i18n string. In both of these cases, a value can be crafted such that it can insert a `script` tag into the page and execute malicious code.
https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e
Add more HTML escaping
emojiArea.ts
ts
2021-11-26T19:15:00Z
static void dump_json_image_info(ImageInfo *info) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &info, &local_err); obj = qmp_output_get_qobject(ov); str = qobject_to_json_pretty(...
static void dump_json_image_info(ImageInfo *info) { QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &info, &error_abort); obj = qmp_output_get_qobject(ov); str = qobject_to_json_pretty(ob...
null
null
null
qemu/commit/911ee36d411ee9b3540855642b53219b6a974992
qemu-img: Don't leak errors when outputting JSON If our JSON output ever encounters an error, we would just silently leak the error object. Instead, assert that our usage won't fail. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1465490926-28625-3-git-send-email-eblake@redhat.com> Reviewed-by: Markus Ar...
./qemu/qemu-img.c
c
2016-06-09T16:48:33Z
bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitSlice( const H264PPS* pps, const H264SliceHeader* slice_hdr, const H264Picture::Vector& ref_pic_list0, const H264Picture::Vector& ref_pic_list1, const scoped_refptr<H264Picture>& pic, const uint8_t* data, size_t size) { VASl...
bool VaapiVideoDecodeAccelerator::VaapiH264Accelerator::SubmitSlice( const H264PPS* pps, const H264SliceHeader* slice_hdr, const H264Picture::Vector& ref_pic_list0, const H264Picture::Vector& ref_pic_list1, const scoped_refptr<H264Picture>& pic, const uint8_t* data, size_t size) { DCHEC...
CVE-2018-6061
CWE-362
A race in the handling of SharedArrayBuffers in WebAssembly in Google Chrome prior to 65.0.3325.146 allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page.
https://github.com/chromium/chromium/commit/70340ce072cee8a0bdcddb5f312d32567b2269f6
vaapi vda: Delete owned objects on worker thread in Cleanup() This CL adds a SEQUENCE_CHECKER to Vaapi*Accelerator classes, and posts the destruction of those objects to the appropriate thread on Cleanup(). Also makes {H264,VP8,VP9}Picture RefCountedThreadSafe, see miu@ comment in https://chromium-review.googlesource...
media/gpu/vaapi/vaapi_video_decode_accelerator.cc
cc
2017-12-12T08:33:43Z
int qemu_fsdev_add(QemuOpts *opts) { int i; struct FsDriverListEntry *fsle; const char *fsdev_id = qemu_opts_id(opts); const char *fsdriver = qemu_opt_get(opts, "fsdriver"); const char *writeout = qemu_opt_get(opts, "writeout"); bool ro = qemu_opt_get_bool(opts, "readonly", 0); if (!fsdev_id...
int qemu_fsdev_add(QemuOpts *opts) { int i; struct FsDriverListEntry *fsle; const char *fsdev_id = qemu_opts_id(opts); const char *fsdriver = qemu_opt_get(opts, "fsdriver"); const char *writeout = qemu_opt_get(opts, "writeout"); bool ro = qemu_opt_get_bool(opts, "readonly", 0); if (!fsdev_id...
null
null
null
qemu/commit/b58c86e1e4cdf59373aad2ec25f99f772766374c
fsdev: Fix potential memory leak This leak was reported by cppcheck. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: M. Mohan Kumar <mohan@in.ibm.com> Message-id: 1371376960-18192-1-git-send-email-sw@weilnetz.de Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
./qemu/fsdev/qemu-fsdev.c
c
2013-06-16T10:02:40Z
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="18.0.3";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);E...
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="18.0.4";EditorUi.compactUi="atlas"!=uiTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);E...
CVE-2022-1727
CWE-20,CWE-20
Improper Input Validation in GitHub repository jgraph/drawio prior to 18.0.6.
https://github.com/jgraph/drawio/commit/4deecee18191f67e242422abf3ca304e19e49687
18.0.4 release
app.min.js
js
2022-05-18T14:15:00Z
private void updateSettingsInternalLI(AndroidPackage pkg, InstallArgs installArgs, int[] allUsers, PackageInstalledInfo res) { Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "updateSettings"); final String pkgName = pkg.getPackageName(); final int[] installedForUsers = res.origUsers; ...
private void updateSettingsInternalLI(AndroidPackage pkg, InstallArgs installArgs, int[] allUsers, PackageInstalledInfo res) { Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "updateSettings"); final String pkgName = pkg.getPackageName(); final int[] installedForUsers = res.origUsers; ...
null
null
null
https://github.com/omnirom/android_frameworks_base/commit/416a04e4c6e9fc876b0c35562967e933ac98046e
Fix permission state missing when backup is restored. The BackupAgent of an application may run before package post installation, so the permission state must be ready by then. So instead of calling onPackageInstalled() in post install, we can revert to calling it in updateSettingsInternalLI() as in R (before ag/13144...
services/core/java/com/android/server/pm/PackageManagerService.java
java
2021-02-26T18:28:34Z
void object_add(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; const QDictEntry *e; Error *local_err = NULL; if (!object_class_by_name(type)) { error_setg(errp, "invalid class name"); return; } obj = object_new(type)...
void object_add(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; ObjectClass *klass; const QDictEntry *e; Error *local_err = NULL; klass = object_class_by_name(type); if (!klass) { error_setg(errp, "invalid class name"); ...
null
null
null
qemu/commit/c3481247e58ff3f13337ce0a262b058799bd156c
qmp: object-add: Validate class before creating object Currently it is very easy to crash QEMU by issuing an object-add command using an abstract class or a class that doesn't support TYPE_USER_CREATABLE as parameter. Example: with the following QMP command: (QEMU) object-add qom-type=cpu id=foo QEMU aborts at:...
./qemu/qmp.c
c
2014-04-16T17:39:38Z
public <T extends AsyncTask> T getTaskAndCheckAuthentication( TaskManager taskManager, AsyncExecutionId asyncExecutionId, Class<T> tClass ) throws IOException { T asyncTask = getTask(taskManager, asyncExecutionId, tClass); if (asyncTask == null) { return null; ...
public <T extends AsyncTask> T getTaskAndCheckAuthentication( TaskManager taskManager, AsyncExecutionId asyncExecutionId, Class<T> tClass ) throws IOException { T asyncTask = getTask(taskManager, asyncExecutionId, tClass); if (asyncTask == null) { return null; ...
null
null
null
https://github.com/elastic/elasticsearch/commit/2f0733d1b5dc9458ec901efe2f7141742d9dfed8
Fix can access resource checks for API Keys with run as (#84277) This fixes two things for the "can access" authz check: * API Keys running as, have access to the resources created by the effective run as user * tokens created by API Keys (with the client credentials) have access to the API Key's resources In additio...
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/async/AsyncTaskIndexService.java
java
2022-02-28T14:00:54Z
int snd_timer_open(struct snd_timer_instance **ti, char *owner, struct snd_timer_id *tid, unsigned int slave_id) { struct snd_timer *timer; struct snd_timer_instance *timeri = NULL; struct device *card_dev_to_put = NULL; int err; mutex_lock(&register_mutex); if (tid->dev_class == SNDRV_TIMER_CLASS_SLAV...
int snd_timer_open(struct snd_timer_instance **ti, char *owner, struct snd_timer_id *tid, unsigned int slave_id) { struct snd_timer *timer; struct snd_timer_instance *timeri = NULL; struct device *card_dev_to_put = NULL; int err; mutex_lock(&register_mutex); if (tid->dev_class == SNDRV_TIMER_CLASS_SLAV...
CVE-2019-19807
CWE-703
In the Linux kernel before 5.3.11, sound/core/timer.c has a use-after-free caused by erroneous code refactoring, aka CID-e7af6307a8a5. This is related to snd_timer_open and snd_timer_close_locked. The timeri variable was originally intended to be for a newly created timer instance, but was used for a different purpose ...
https://github.com/torvalds/linux/commit/e7af6307a8a54f0b873960b32b6a644f2d0fbd97
ALSA: timer: Fix incorrectly assigned timer instance The clean up commit 41672c0c24a6 ("ALSA: timer: Simplify error path in snd_timer_open()") unified the error handling code paths with the standard goto, but it introduced a subtle bug: the timer instance is stored in snd_timer_open() incorrectly even if it returns an...
timer.c
c
2019-11-06T16:55:47Z
var updateSerpPreview = function () { var metaPanel = this.layout.getComponent("metaDataPanel"); var title = metaPanel.getComponent("title").getValue(); var description = metaPanel.getComponent("description").getValue(); var truncate = function( text, n ...
var updateSerpPreview = function () { var metaPanel = this.layout.getComponent("metaDataPanel"); var title = htmlspecialchars(metaPanel.getComponent("title").getValue()); var description = htmlspecialchars(metaPanel.getComponent("description").getValue()); ...
CVE-2022-0832
CWE-79,CWE-79
Cross-site Scripting (XSS) - Stored in GitHub repository pimcore/pimcore prior to 10.3.3.
https://github.com/pimcore/pimcore/commit/8ab06bfbb5a05a1b190731d9c7476ec45f5ee878
escaping fields in SERP preview
settings.js
js
2022-03-04T14:15:00Z
babel_packet_examin(const unsigned char *packet, int packetlen) { unsigned i = 0, bodylen; const unsigned char *message; unsigned char type, len; if(packetlen < 4 || packet[0] != 42 || packet[1] != 2) return 1; DO_NTOHS(bodylen, packet + 2); while (i < bodylen){ message = packet...
babel_packet_examin(const unsigned char *packet, int packetlen) { unsigned i = 0, bodylen; const unsigned char *message; unsigned char type, len; if(packetlen < 4 || packet[0] != 42 || packet[1] != 2) return 1; DO_NTOHS(bodylen, packet + 2); while (i < bodylen){ message = packet...
null
CWE-787
null
https://github.com/FRRouting/frr/commit/c3793352a8d76d2eee1edc38a9a16c1c8a6573f4
babeld: fix #10502 #10503 by repairing the checks on length This patch repairs the checking conditions on length in four functions: babel_packet_examin, parse_hello_subtlv, parse_ihu_subtlv, and parse_update_subtlv Signed-off-by: qingkaishi <qingkaishi@gmail.com>
null
null
2022-02-04T21:41:11Z
protected static SpellModule reportNullSpell() { if (!isReported) LogManager.getLogger().fatal(CrashReport.makeCrashReport(new NullSpellException(),"Null spell is present. Please report this issue to Arcana github page.").getCompleteReport()); isReported = true; return new StartCircle(); }
protected static SpellModule reportNullSpell() { if (!isReported) LogManager.getLogger().fatal("Null spell is present. Please report this issue to Arcana github page."); isReported = true; return new StartCircle(); }
null
null
null
https://github.com/ArcanaMod/Arcana/commit/52c72e289ee223ad5693959ff089450acc440536
Fixed mod startup crashes, tainted entities have now attributes again, try'catched displayGuiScreen(new SwapFocusScreen(hand)); in MinecraftClientMixin to prevent random crashes.
src/main/java/net/arcanamod/systems/spell/Spell.java
java
2021-05-10T13:34:48Z
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onInteract(PlayerInteractEvent event) { Action eventAction = event.getAction(); Player player = event.getPlayer(); Block clicked = event.getClickedBlock(); if (eventAction != Action.RIGHT_CLICK_BLOCK...
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onInteract(PlayerInteractEvent event) { Action eventAction = event.getAction(); Player player = event.getPlayer(); Block clicked = event.getClickedBlock(); if (eventAction != Action.RIGHT_CLICK_BLOCK...
null
null
null
https://github.com/FunnyGuilds/FunnyGuilds/commit/03bc21e5e934c9bd949eff432b4515b7e09b1f0d
GH-1943 Fix guild attack & info (#1943) * Fix * idiot * XD * better
plugin/src/main/java/net/dzikoysk/funnyguilds/listener/region/PlayerInteract.java
java
2022-04-25T19:49:24Z
public boolean isValid(String value, ConstraintValidatorContext context) { if (StringUtils.isEmpty(value)) { return true; } try { Pattern.compile(value); return true; } catch (Exception ex) { String errorMessage = String.format("URL parameter '%s' is not a valid ...
public boolean isValid(String value, ConstraintValidatorContext context) { if (StringUtils.isEmpty(value)) { return true; } try { Pattern.compile(value); return true; } catch (Exception ex) { String escapedValue = MessageSanitizer.escape(value); String er...
CVE-2020-26282
CWE-74
BrowserUp Proxy allows you to manipulate HTTP requests and responses, capture HTTP content, and export performance data as a HAR file. BrowserUp Proxy works well as a standalone proxy server, but it is especially useful when embedded in Selenium tests. A Server-Side Template Injection was identified in BrowserUp Proxy ...
https://github.com/browserup/browserup-proxy/commit/4b38e7a3e20917e5c3329d0d4e9590bed9d578ab
Fix Critical Java EL Injection RCE vulnerability from GHSL-2020-213
PortWithExistingProxyConstraint.java
java
2020-12-24T21:15:00Z
@Override public Socket createSocket(String host, int port) throws IOException { return new SSRFSocket(); }
@Override public Socket createSocket(String host, int port) throws IOException { return new SSRFSocket(host, port); }
null
null
null
https://github.com/qtc-de/remote-method-guesser/commit/77dd1878d528bedf21de60fd8d9766d4119bba5c
Start to add SSRF response support Using the --ssrf-response action, it is now possible to pass RMI server responses in hex format to rmg that are treated as regular responses to the specified rmg operation.
src/de/qtc/rmg/networking/SSRFSocketFactory.java
java
2021-07-13T05:37:41Z
static char* get_icu_value_internal( const char* loc_name , char* tag_name, int* result , int fromParseLocale) { char* tag_value = NULL; int32_t tag_value_len = 512; int singletonPos = 0; char* mod_loc_name = NULL; int grOffset = 0; int32_t buflen = 512; UErrorCode status ...
static char* get_icu_value_internal( const char* loc_name , char* tag_name, int* result , int fromParseLocale) { char* tag_value = NULL; int32_t tag_value_len = 512; int singletonPos = 0; char* mod_loc_name = NULL; int grOffset = 0; int32_t buflen = 512; UErrorCode status ...
CVE-2016-5093
CWE-125
The get_icu_value_internal function in ext/intl/locale/locale_methods.c in PHP before 5.5.36, 5.6.x before 5.6.22, and 7.x before 7.0.7 does not ensure the presence of a '\0' character, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a crafte...
https://github.com/php/php-src/commit/97eff7eb57fc2320c267a949cffd622c38712484
Fix bug #72241: get_icu_value_internal out-of-bounds read
locale_methods.c
c
2016-05-23T00:49:02Z
@Override public void doAction() { int entity; HashSet<Integer> entities = (HashSet<Integer>) sandbox.getSelector().getSelectedItems(); int item = entities.iterator().next(); if(entities.size() == 1 && EntityUtils.getType(item) == EntityFactory.COMPOSITE_TYPE) { entity ...
@Override public void doAction() { int entity; HashSet<Integer> entities = (HashSet<Integer>) sandbox.getSelector().getSelectedItems(); if (entities.size() == 0) { cancel(); return; } int item = entities.iterator().next(); if(entities.size()...
null
null
null
https://github.com/rednblackgames/HyperLap2D/commit/bfed41694e42c49781f87cda6a895add9fe015ad
[editor only] Fix crash in `ConvertToButtonCommand`
src/main/java/games/rednblack/editor/controller/commands/ConvertToButtonCommand.java
java
2022-03-04T08:18:13Z
horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc) { TIFFPredictorState* sp = PredictorState(tif); tmsize_t stride = sp->stride; uint16 *wp = (uint16*) cp0; tmsize_t wc = cc/2; assert((cc%(2*stride))==0); if (wc > stride) { wc -= stride; wp += wc - 1; do { REPEAT4(stride, wp[stride] = (uint16)(((unsigned in...
horDiff16(TIFF* tif, uint8* cp0, tmsize_t cc) { TIFFPredictorState* sp = PredictorState(tif); tmsize_t stride = sp->stride; uint16 *wp = (uint16*) cp0; tmsize_t wc = cc/2; if((cc%(2*stride))!=0) { TIFFErrorExt(tif->tif_clientdata, "horDiff8", "%s", "(cc%(2*stride))!=0"); ...
CVE-2016-9535
CWE-119
tif_predict.h and tif_predict.c in libtiff 4.0.6 have assertions that can lead to assertion failures in debug mode, or buffer overflows in release mode, when dealing with unusual tile size like YCbCr with subsampling. Reported as MSVR 35105, aka "Predictor heap-buffer-overflow."
https://github.com/vadz/libtiff/commit/3ca657a8793dd011bf869695d72ad31c779c3cc1
* libtiff/tif_predict.h, libtiff/tif_predict.c: Replace assertions by runtime checks to avoid assertions in debug mode, or buffer overflows in release mode. Can happen when dealing with unusual tile size like YCbCr with subsampling. Reported as MSVR 35105 by Axel Souchet & Vishal Chauhan from the MSRC Vulnerabilities &...
tif_predict.c
c
2016-10-31T17:24:26Z
static void BenchmarkOpenCLDevices(MagickCLEnv clEnv) { MagickCLDevice device; MagickCLEnv testEnv; size_t i, j; testEnv=AcquireMagickCLEnv(); testEnv->library=openCL_library; testEnv->devices=(MagickCLDevice *) AcquireMagickMemory( sizeof(MagickCLDevice)); testEnv->number_devices=1...
static void BenchmarkOpenCLDevices(MagickCLEnv clEnv) { MagickCLDevice device; MagickCLEnv testEnv; size_t i, j; testEnv=AcquireMagickCLEnv(); testEnv->library=openCL_library; testEnv->devices=(MagickCLDevice *) AcquireCriticalMemory( sizeof(MagickCLDevice)); testEnv->number_devices...
CVE-2017-18210
CWE-476
In ImageMagick 7.0.7, a NULL pointer dereference vulnerability was found in the function BenchmarkOpenCLDevices in MagickCore/opencl.c because a memory allocation result is not checked.
https://github.com/ImageMagick/ImageMagick/commit/d2b87b403059af21db3002db95f4603f32b492ef
https://github.com/ImageMagick/ImageMagick/issues/792
null
null
2017-09-30T13:42:04Z
def configure_flask(self): """All flask config settings should go here.""" # let us handle exceptions self.app.config['PROPAGATE_EXCEPTIONS'] = True # patch where to obtain token self.app.config['JWT_AUTH_URL_RULE'] = '/api/token' # False means refresh tokens never exp...
def configure_flask(self): """All flask config settings should go here.""" # let us handle exceptions self.app.config['PROPAGATE_EXCEPTIONS'] = True # patch where to obtain token self.app.config['JWT_AUTH_URL_RULE'] = '/api/token' # If no secret is set in the config fi...
null
null
null
https://github.com/vantage6/vantage6/commit/48ebfca42359e9a6743e9598684585e2522cdce8
Merge pull request from GHSA-4w59-c3gc-rrhp Introduce maximum length of refresh tokens
vantage6-server/vantage6/server/__init__.py
py
2023-02-28T11:04:24Z
void ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts) { if (ctb_addr_ts == s->ps.pps->ctb_addr_rs_to_ts[s->sh.slice_ctb_addr_rs]) { cabac_init_decoder(s); if (s->sh.dependent_slice_segment_flag == 0 || (s->ps.pps->tiles_enabled_flag && s->ps.pps->tile_id[ctb_addr_ts] != s...
int ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts) { if (ctb_addr_ts == s->ps.pps->ctb_addr_rs_to_ts[s->sh.slice_ctb_addr_rs]) { int ret = cabac_init_decoder(s); if (ret < 0) return ret; if (s->sh.dependent_slice_segment_flag == 0 || (s->ps.pps->tiles_enabled_fla...
null
null
null
FFmpeg/commit/933aa91e31d5cbf9dbc0cf416a988e6011bc4a40
avcodec/hevcdec: check ff_init_cabac_decoder() for failure Fixes: runtime error: left shift of 1965559808 by 4 places cannot be represented in type 'int' Fixes: 2333/clusterfuzz-testcase-minimized-5223935677300736 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Revi...
./ffmpeg/libavcodec/hevc_cabac.c
c
2017-06-24T12:46:17Z
public static void light(float x, float y, float radius, Color color, float opacity){ renderer.lights.add(x, y, radius, color, opacity); }
public static void light(float x, float y, float radius, Color color, float opacity){ if(renderer == null) return; renderer.lights.add(x, y, radius, color, opacity); }
null
null
null
https://github.com/Anuken/Mindustry/commit/debf940973b7d37acbd71ebd05cfddb3b36f6b3b
Fixed preview render crash
core/src/mindustry/graphics/Drawf.java
java
2022-05-11T13:39:43Z
vhost_user_send_rarp(struct virtio_net **pdev, struct VhostUserMsg *msg, int main_fd __rte_unused) { struct virtio_net *dev = *pdev; uint8_t *mac = (uint8_t *)&msg->payload.u64; struct rte_vdpa_device *vdpa_dev; int did = -1; RTE_LOG(DEBUG, VHOST_CONFIG, ":: mac: %02x:%02x:%02x:%02x:%02x:%02x\n", mac[0], m...
vhost_user_send_rarp(struct virtio_net **pdev, struct VhostUserMsg *msg, int main_fd __rte_unused) { struct virtio_net *dev = *pdev; uint8_t *mac = (uint8_t *)&msg->payload.u64; struct rte_vdpa_device *vdpa_dev; int did = -1; if (validate_msg_fds(msg, 0) != 0) return RTE_VHOST_MSG_RESULT_ERR; RTE_LOG(DEBUG...
null
null
null
null
vhost: fix possible denial of service by leaking FDs A malicious Vhost-user master could send in loop hand-crafted vhost-user messages containing more file descriptors the vhost-user slave expects. Doing so causes the application using the vhost-user library to run out of FDs. This issue has been assigned CVE-2019-14...
null
null
null
static MemoryRegion *pc_dimm_get_memory_region(PCDIMMDevice *dimm) { return host_memory_backend_get_memory(dimm->hostmem, &error_abort); }
static MemoryRegion *pc_dimm_get_memory_region(PCDIMMDevice *dimm, Error **errp) { if (!dimm->hostmem) { error_setg(errp, "'" PC_DIMM_MEMDEV_PROP "' property must be set"); return NULL; } return host_memory_backend_get_memory(dimm->hostmem, errp); }
null
null
null
qemu/commit/0479097859372a760843ad1b9c6ed3705c6423ca
hw/ppc/spapr: Fix segfault when instantiating a 'pc-dimm' without 'memdev' QEMU currently crashes when trying to use a 'pc-dimm' on the pseries machine without specifying its 'memdev' property. This happens because pc_dimm_get_memory_region() does not check whether the 'memdev' property has properly been set by the us...
./qemu/hw/mem/pc-dimm.c
c
2017-08-21T06:30:29Z
BYTE *DecompressRTF(variableLength *p, int *size) { BYTE *dst; // destination for uncompressed bytes BYTE *src; unsigned int in; unsigned int out; variableLength comp_Prebuf; ULONG compressedSize, uncompressedSize, magic; comp_Prebuf.size = strlen(RTF_PREBUF); comp_Prebuf.data = calloc(comp_Prebuf.size...
BYTE *DecompressRTF(variableLength *p, int *size) { BYTE *dst; // destination for uncompressed bytes BYTE *src; unsigned int in; unsigned int out; variableLength comp_Prebuf; ULONG compressedSize, uncompressedSize, magic; comp_Prebuf.size = strlen(RTF_PREBUF); comp_Prebuf.data = calloc(comp_Prebuf.size...
CVE-2017-6802
CWE-22
An issue was discovered in ytnef before 1.9.2. There is a potential heap-based buffer over-read on incoming Compressed RTF Streams, related to DecompressRTF() in libytnef.
https://github.com/Yeraze/ytnef/commit/22f8346c8d4f0020a40d9f258fdb3bfc097359cc
Added safety check for Compressed RTF Streams You could potentially overflow the input pointer. in response to #34
ytnef.c
c
2017-02-25T12:41:45Z
static void mntput_no_expire(struct mount *mnt) { rcu_read_lock(); mnt_add_count(mnt, -1); if (likely(mnt->mnt_ns)) { /* shouldn't be the last one */ rcu_read_unlock(); return; } lock_mount_hash(); if (mnt_get_count(mnt)) { rcu_read_unlock(); unlock_mount_hash(); return; } if (unlikely(mnt->mnt.mnt_fl...
static void mntput_no_expire(struct mount *mnt) { rcu_read_lock(); mnt_add_count(mnt, -1); if (likely(mnt->mnt_ns)) { /* shouldn't be the last one */ rcu_read_unlock(); return; } lock_mount_hash(); if (mnt_get_count(mnt)) { rcu_read_unlock(); unlock_mount_hash(); return; } if (unlikely(mnt->mnt.mnt_fl...
CVE-2014-9717
CWE-284
fs/namespace.c in the Linux kernel before 4.0.2 processes MNT_DETACH umount2 system calls without verifying that the MNT_LOCKED flag is unset, which allows local users to bypass intended access restrictions and navigate to filesystem locations beneath a mount by calling umount2 within a user namespace.
https://github.com/torvalds/linux/commit/ce07d891a0891d3c0d0c2d73d577490486b809e1
mnt: Honor MNT_LOCKED when detaching mounts Modify umount(MNT_DETACH) to keep mounts in the hash table that are locked to their parent mounts, when the parent is lazily unmounted. In mntput_no_expire detach the children from the hash table, depending on mnt_pin_kill in cleanup_mnt to decrement the mnt_count of the ch...
fs/namespace.c
c
2014-12-24T03:37:03Z
static void FillRectangle(rfbClient* client, int x, int y, int w, int h, uint32_t colour) { int i,j; if (client->frameBuffer == NULL) { return; } #define FILL_RECT(BPP) \ for(j=y*client->width;j<(y+h)*client->width;j+=client->width) \ for(i=x;i<x+w;i++) \ ((uint##BPP##_t*)client->frameBuffer)[j...
static void FillRectangle(rfbClient* client, int x, int y, int w, int h, uint32_t colour) { int i,j; if (client->frameBuffer == NULL) { return; } if (!CheckRect(client, x, y, w, h)) { rfbClientLog("Rect out of bounds: %dx%d at (%d, %d)\n", x, y, w, h); return; } #define FILL_RECT(BPP) \ f...
CVE-2016-9941
CWE-119
Heap-based buffer overflow in rfbproto.c in LibVNCClient in LibVNCServer before 0.9.11 allows remote servers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted FramebufferUpdate message containing a subrectangle outside of the client drawing area.
https://github.com/LibVNC/libvncserver/commit/5418e8007c248bf9668d22a8c1fa9528149b69f2
Fix heap overflows in the various rectangle fill functions Altough rfbproto.c does check whether the overall FramebufferUpdate rectangle is too large, some of the individual encoding decoders do not, which allows a malicious server to overwrite parts of the heap.
null
null
2016-11-14T10:39:01Z
def safe_paths dir = params[:order] # GOOD: barrier guard prevents taint flow dir = "DESC" unless dir == "ASC" User.order("name #{dir}") name = params[:user_name] # GOOD: barrier guard prevents taint flow if %w(alice bob charlie).include? name User.find_by("username = #{name}") en...
def safe_paths dir = params[:order] # GOOD: barrier guard prevents taint flow if dir == "ASC" User.order("name #{dir}") else dir = "DESC" User.order("name #{dir}") end # TODO: a more idiomatic form of this guard is the following: # dir = "DESC" unless dir == "ASC" #...
null
cwe-089
null
github.com/github/codeql/commit/8f36b0d7fecdd9fd6a9f030ddb33e1981ad947f1
Simplify guard in SQL injection tests We don't (yet) properly sanitize taint in cases like this foo = "A" unless foo == "B" So for now, use a simpler guard in the SQL injection test. We can resurrect the old, more idiomatic guard when we can support it.
ActiveRecordInjection.rb
rb
2021-09-10T15:27:57Z
static void slavio_timer_init_all(target_phys_addr_t addr, qemu_irq master_irq, qemu_irq *cpu_irqs, unsigned int num_cpus) { DeviceState *dev; SysBusDevice *s; unsigned int i; dev = qdev_create(NULL, "slavio_timer"); qdev_prop_set_uint32(dev, "num_cpus", num_cpus); ...
static void slavio_timer_init_all(target_phys_addr_t addr, qemu_irq master_irq, qemu_irq *cpu_irqs, unsigned int num_cpus) { DeviceState *dev; SysBusDevice *s; unsigned int i; dev = qdev_create(NULL, "slavio_timer"); qdev_prop_set_uint32(dev, "num_cpus", num_cpus); ...
null
null
null
qemu/commit/e23a1b33b53d25510320b26d9f154e19c6c99725
New qdev_init_nofail() Like qdev_init(), but terminate program via hw_error() instead of returning an error value. Use it instead of qdev_init() where terminating the program on failure is okay, either because it's during machine construction, or because we know that failure can't happen. Because relying in the latt...
./qemu/hw/sun4m.c
c
2009-10-06T23:15:58Z
int X509_verify_cert(X509_STORE_CTX *ctx) { X509 *x, *xtmp, *xtmp2, *chain_ss = NULL; int bad_chain = 0; X509_VERIFY_PARAM *param = ctx->param; int depth, i, ok = 0; int num, j, retry; int (*cb) (int xok, X509_STORE_CTX *xctx); STACK_OF(X509) *sktmp = NULL; if (ctx->cert == NULL) { ...
int X509_verify_cert(X509_STORE_CTX *ctx) { X509 *x, *xtmp, *xtmp2, *chain_ss = NULL; int bad_chain = 0; X509_VERIFY_PARAM *param = ctx->param; int depth, i, ok = 0; int num, j, retry; int (*cb) (int xok, X509_STORE_CTX *xctx); STACK_OF(X509) *sktmp = NULL; int trust = X509_TRUST_UNTRUST...
null
null
null
https://github.com/openssl/openssl/commit/a3baa171053547488475709c7197592c66e427cf
Fix missing ok=0 with locally blacklisted CAs Also in X509_verify_cert() avoid using "i" not only as a loop counter, but also as a trust outcome and as an error ordinal. Finally, make sure that all "goto end" jumps return an error, with "end" renamed to "err" accordingly. [ The 1.1.0 version of X509_verify_cert() is...
null
null
2016-02-02T09:35:27Z
var set = function set(obj, path, val) { var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; var internalPath = path, objPart; options = _objectSpread({ "transformRead": returnWhatWasGiven, "transformKey": returnWhatWasGiven, "transformWrite": returnWhatWasGiven...
var set = function set(obj, path, val) { var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; var internalPath = path, objPart; options = _objectSpread({ "transformRead": returnWhatWasGiven, "transformKey": returnWhatWasGiven, "transformWrite": returnWhatWasGiven...
CVE-2020-7708
CWE-1321
The package irrelon-path before 4.7.0; the package @irrelon/path before 4.7.0 are vulnerable to Prototype Pollution via the set, unSet, pushVal and pullVal functions.
https://github.com/Irrelon/irrelon-path/commit/8a126b160c1a854ae511659c111413ad9910ebe3
Fixed functions with prototype pollution vulnerability
Path.js
js
2020-08-18T15:15:00Z
private List<MatchingDocument> pairwiseRanking(String atitle, String firstAuthor, String jtitle, String btitle, String year, ...
private List<MatchingDocument> pairwiseRanking(String atitle, String firstAuthor, String jtitle, String btitle, String year, ...
null
null
null
https://github.com/kermitt2/biblio-glutton/commit/985e075e411b3394d59e742dff839c496d3d1b3e
remove post validation; exploit more metadata; refine pairwise matching; various fixes
lookup/src/main/java/com/scienceminer/lookup/storage/LookupEngine.java
java
2021-09-12T14:33:51Z
def _convert_states_v46_dict_to_v47_dict(cls, states_dict): """Converts from version 46 to 47. Version 52 deprecates oppia-noninteractive-svgdiagram tag and converts existing occurences of it to oppia-noninteractive-image tag. Args: states_dict: dict. A dict where each key-v...
def _convert_states_v46_dict_to_v47_dict(cls, states_dict): """Converts from version 46 to 47. Version 52 deprecates oppia-noninteractive-svgdiagram tag and converts existing occurences of it to oppia-noninteractive-image tag. Args: states_dict: dict. A dict where each key-v...
null
null
null
https://github.com/oppia/oppia/commit/11a7838e2269729b17513eca910b04951daa83ee
Merge remote-tracking branch 'upstream/develop' into secure-redirection
core/domain/exp_domain.py
py
2021-09-25T13:52:17Z
static void setupAuthHandlers(final Server server, final Router router, final boolean isInternalListener) { final Optional<BasicAuthHandler> jaas = getJaasAuthHandler(server); final KsqlSecurityExtension securityExtension = server.getSecurityExtension(); final Optional<AuthenticationPlugin> authentica...
static void setupAuthHandlers(final Server server, final Router router, final boolean isInternalListener) { final Optional<BasicAuthHandler> jaas = getJaasAuthHandler(server); final KsqlSecurityExtension securityExtension = server.getSecurityExtension(); final Optional<AuthenticationPlugin> authentica...
null
null
null
https://github.com/confluentinc/ksql/commit/a1e25d706182f50b7a922230ef992e87c956f2a9
fix: also skip basic authentication for authentication.skip.paths
ksqldb-rest-app/src/main/java/io/confluent/ksql/api/server/AuthHandlers.java
java
2022-10-26T10:23:11Z
static int Mat_VarWriteStruct73(hid_t id,matvar_t *matvar,const char *name,hid_t *refs_id,hsize_t *dims,hsize_t* max_dims) { int err = 0, k; hsize_t nelems; { size_t tmp = 1; err = SafeMulDims(matvar, &tmp); nelems = (hsize_t)tmp; } if ( err || 0 == nelems || NULL == ma...
static int Mat_VarWriteStruct73(hid_t id,matvar_t *matvar,const char *name,hid_t *refs_id,hsize_t *dims,hsize_t* max_dims) { int err; hsize_t nelems; { size_t tmp = 1; err = SafeMulDims(matvar, &tmp); nelems = (hsize_t)tmp; } if ( err || 0 == nelems || NULL == matvar->d...
null
null
null
https://github.com/tbeu/matio/commit/bdf62ab08ee27e6c474a6383f267634984aaa3d7
Fix issues reported by cppcheck
src/mat73.c
c
2019-06-21T09:45:07Z
private void onDvbtStandard(int dvbtStandard) { if (mScanCallbackExecutor != null && mScanCallback != null) { mScanCallbackExecutor.execute(() -> mScanCallback.onDvbtStandardReported(dvbtStandard)); } }
private void onDvbtStandard(int dvbtStandard) { synchronized (mScanCallbackLock) { if (mScanCallbackExecutor != null && mScanCallback != null) { mScanCallbackExecutor.execute( () -> mScanCallback.onDvbtStandardReported(dvbtStandard)); } } ...
null
null
null
https://github.com/PixelExperience/frameworks_base/commit/5558cb1cc931e0022b3583a7c0e12e25d573547d
Tuner APIs: add locks to avoid crashes caused by NPE Bug: 193604292 Test: atest android.media.tv.tuner.cts.TunerTest Change-Id: I08aaf38489ab7ea29f99e416b0e1082a3d0ee249
media/java/android/media/tv/tuner/Tuner.java
java
2021-07-15T01:43:32Z
@Inject(method = "clickSlot", at = @At("HEAD"), cancellable = true) private void onClickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player, CallbackInfo ci) { if (MinecraftScriptEvents.ON_CLICK_SLOT.run(NumberValue.of(slotId))) { ci.cancel(); } }
@Inject(method = "clickSlot", at = @At("HEAD"), cancellable = true) private void onClickSlot(int syncId, int slotId, int button, SlotActionType actionType, PlayerEntity player, CallbackInfo ci) { if (MinecraftScriptEvents.ON_CLICK_SLOT.run(NumberValue.of(slotId), StringValue.of(actionType.name()))) { ci.cancel();...
null
null
null
https://github.com/senseiwells/EssentialClient/commit/2e30c5f61c4f48ae02b417ced324d6422610f2b6
Fixes and Functions - Fixed onPickUpItem not passing correct ItemStack - Fixed crash and bug with unlockAllRecipes - Added actionType to onClickSlot - Added onAnvil event - Added hand parameter in interactBlock - Fixed crash with clientNick
src/main/java/me/senseiwells/essentialclient/mixins/clientScript/ClientPlayerInteractionManagerMixin.java
java
2022-06-20T22:16:46Z
static struct dst_entry *geneve_get_v6_dst(struct sk_buff *skb, struct net_device *dev, struct geneve_sock *gs6, struct flowi6 *fl6, const struct ip_tunnel_info *info) { bool use_cache = ip_tunnel_dst_cache_usable(skb, info); struct geneve_dev *geneve = netdev_priv(dev); struct dst_en...
static struct dst_entry *geneve_get_v6_dst(struct sk_buff *skb, struct net_device *dev, struct geneve_sock *gs6, struct flowi6 *fl6, const struct ip_tunnel_info *info, __be16 dport, __be16 sport) { bool use_cache = ip_tunnel_dst_cache_usable(skb, info); struct geneve_dev *genev...
CVE-2020-25645
CWE-319
A flaw was found in the Linux kernel in versions before 5.9-rc7. Traffic between two Geneve endpoints may be unencrypted when IPsec is configured to encrypt traffic for the specific UDP port used by the GENEVE tunnel allowing anyone between the two endpoints to read the traffic unencrypted. The main threat from this vu...
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=34beb21594519ce64a55a498c2fe7d567bc1ca20
geneve: add transport ports in route lookup for geneve This patch adds transport ports information for route lookup so that IPsec can select Geneve tunnel traffic to do encryption. This is needed for OVS/OVN IPsec with encrypted Geneve tunnels. This can be tested by configuring a host-host VPN using an IKE daemon and...
null
null
null
call_qftf_func(qf_list_T *qfl, int qf_winid, long start_idx, long end_idx) { callback_T *cb = &qftf_cb; list_T *qftf_list = NULL; // If 'quickfixtextfunc' is set, then use the user-supplied function to get // the text to display. Use the local value of 'quickfixtextfunc' if it is // set. if (qf...
call_qftf_func(qf_list_T *qfl, int qf_winid, long start_idx, long end_idx) { callback_T *cb = &qftf_cb; list_T *qftf_list = NULL; static int recursive = FALSE; if (recursive) return NULL; // this doesn't work properly recursively recursive = TRUE; // If 'quickfixtextfunc' is set, then use th...
CVE-2022-2982
CWE-703
Use After Free in GitHub repository vim/vim prior to 9.0.0260.
https://github.com/vim/vim/commit/d6c67629ed05aae436164eec474832daf8ba7420
patch 9.0.0260: using freed memory when using 'quickfixtextfunc' recursively Problem: Using freed memory when using 'quickfixtextfunc' recursively. Solution: Do not allow for recursion.
quickfix.c
c
2022-08-24T19:07:22Z
def check_ratelimit(delay=60, anonymous_limit=0, registered_limit=0, rate_exceed_status=429, debug=False, **conf): """ Verify the ratelimit. By default return a 429 HTTP error code (Too Many Request). Usage: @cherrypy.tools.ratelimit(on=True, anonymous_limit=5, registered_limit=50, storage_class=FileR...
def check_ratelimit( delay=3600, limit=25, return_status=429, logout=False, scope=None, methods=None, debug=False, hit=1, **conf ): """ Verify the ratelimit. By default return a 429 HTTP error code (Too Many Request). After 25 request within the same hour. Arguments: delay: Time window ...
null
null
null
https://github.com/ikus060/rdiffweb/commit/b78ec09f4582e363f6f449df6f987127e126c311
Improve ratelimit implementation
rdiffweb/tools/ratelimit.py
py
2022-10-11T18:46:08Z
static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bytes, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; bool need_flush = false; int head = 0; int tail = 0; int max_write_zeroes = ...
static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bytes, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; bool need_flush = false; int head = 0; int tail = 0; int max_write_zeroes = ...
null
null
null
qemu/commit/d470ad42acfc73c45d3e8ed5311a491160b4c100
block: Guard against NULL bs->drv We currently do not guard everywhere against a NULL bs->drv where we should be doing so. Most of the places fixed here just do not care about that case at all. Some care implicitly, e.g. through a prior function call to bdrv_getlength() which would always fail for an ejected BDS. A...
./qemu/block/io.c
c
2017-11-10T20:31:09Z
def __init__( self, web_path: str, filter_urls: Optional[List[str]] = None, parsing_function: Optional[Callable] = None, blocksize: Optional[int] = None, blocknum: int = 0, meta_function: Optional[Callable] = None, is_local: bool = False, continue_...
def __init__( self, web_path: str, filter_urls: Optional[List[str]] = None, parsing_function: Optional[Callable] = None, blocksize: Optional[int] = None, blocknum: int = 0, meta_function: Optional[Callable] = None, is_local: bool = False, continue_...
null
null
null
https://github.com/langchain-ai/langchain/commit/c1a42da6e5871bd217f7d99388e29919bd504e17
x
libs/langchain/langchain/document_loaders/sitemap.py
py
2023-10-17T15:43:09Z
header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path) { struct ImapMbox mx; struct Url url; char cachepath[PATH_MAX]; char mbox[PATH_MAX]; if (path) imap_cachepath(idata, path, mbox, sizeof(mbox)); else { if (!idata->ctx || imap_parse_path(idata->ctx->path, &mx) < 0) re...
header_cache_t *imap_hcache_open(struct ImapData *idata, const char *path) { struct ImapMbox mx; struct Url url; char cachepath[PATH_MAX]; char mbox[PATH_MAX]; if (path) imap_cachepath(idata, path, mbox, sizeof(mbox)); else { if (!idata->ctx || imap_parse_path(idata->ctx->path, &mx) < 0) re...
CVE-2018-14355
CWE-22
An issue was discovered in Mutt before 1.10.1 and NeoMutt before 2018-07-16. imap/util.c mishandles ".." directory traversal in a mailbox name.
https://github.com/neomutt/neomutt/commit/57971dba06346b2d7179294f4528b8d4427a7c5d
Selectively cache headers Co-authored-by: JerikoOne <jeriko.one@gmx.us>
util.c
c
2018-07-09T14:26:26Z
function escape_command($command) { return preg_replace("/(\\\$|`)/", "", $command); }
function escape_command($command) { return preg_replace("/(\\\$|;`)/", "", $command); }
CVE-2014-3828
CWE-89
Multiple SQL injection vulnerabilities in Centreon 2.5.1 and Centreon Enterprise Server 2.2 (fixed in Centreon web 2.5.3) allow remote attackers to execute arbitrary SQL commands via (1) the index_id parameter to views/graphs/common/makeXML_ListMetrics.php, (2) the sid parameter to views/graphs/GetXmlTree.php, (3) the ...
https://github.com/centreon/centreon/commit/cc2109804dd69057cb209037113796ec5ffdce90
fix #5895 : security issues
DB-Func.php
php
2014-10-23T01:55:00Z
private int string_modifier_check(struct magic_set *ms, struct magic *m) { if ((ms->flags & MAGIC_CHECK) == 0) return 0; if (m->type != FILE_PSTRING && (m->str_flags & PSTRING_LEN) != 0) { file_magwarn(ms, "'/BHhLl' modifiers are only allowed for pascal strings\n"); return -1; } switch (m->type) { cas...
private int string_modifier_check(struct magic_set *ms, struct magic *m) { if ((ms->flags & MAGIC_CHECK) == 0) return 0; if ((m->type != FILE_REGEX || (m->str_flags & REGEX_LINE_COUNT) == 0) && (m->type != FILE_PSTRING && (m->str_flags & PSTRING_LEN) != 0)) { file_magwarn(ms, "'/BHhLl' modifiers are o...
null
null
null
https://github.com/file/file/commit/4a284c89d6ef11aca34da65da7d673050a5ea320
* Enforce limit of 8K on regex searches that have no limits * Allow the l modifier for regex to mean line count. Default to byte count. If line count is specified, assume a max of 80 characters per line to limit the byte count. * Don't allow conversions to be used for dates, allowing the mask field to be used as ...
src/apprentice.c
c
2014-06-03T19:01:34Z
protected function GetRefs($refList, $type) { if (!$refList) return; if (empty($type)) return; $args = array(); $args[] = '--' . $type; $args[] = '--dereference'; $ret = $this->exe->Execute($refList->GetProject()->GetPath(), GIT_SHOW_REF, $args); $lines = explode("\n", $ret); $refs = array();...
protected function GetRefs($refList, $type) { if (!$refList) return; if (empty($type)) return; $args = array(); $args[] = '--' . escapeshellarg($type); $args[] = '--dereference'; $ret = $this->exe->Execute($refList->GetProject()->GetPath(), GIT_SHOW_REF, $args); $lines = explode("\n", $ret); ...
CVE-2017-1000214
CWE-78
GitPHP by xiphux is vulnerable to OS Command Injections
https://github.com/Enalean/gitphp/commit/160621785ee812d6d90e20878bd6175e42c13c94
Fix shell injections No dynamic parameters should be passed shell_exec() without being properly escaped
BlobLoad_Base.class.php
php
2017-11-27T14:29:00Z
static MagickBooleanType WritePCXImage(const ImageInfo *image_info,Image *image, ExceptionInfo *exception) { MagickBooleanType status; MagickOffsetType offset, *page_table, scene; MemoryInfo *pixel_info; PCXInfo pcx_info; register const Quantum *p; register ssize_t i, ...
static MagickBooleanType WritePCXImage(const ImageInfo *image_info,Image *image, ExceptionInfo *exception) { MagickBooleanType status; MagickOffsetType offset, *page_table, scene; MemoryInfo *pixel_info; PCXInfo pcx_info; register const Quantum *p; register ssize_t i, ...
CVE-2017-12668
CWE-703
ImageMagick 7.0.6-2 has a memory leak vulnerability in WritePCXImage in coders/pcx.c.
https://github.com/ImageMagick/ImageMagick/commit/2ba8f335fa06daf1165e0878462686028e633a74
https://github.com/ImageMagick/ImageMagick/issues/575
pcx.c
c
2017-07-17T23:09:14Z
void qed_commit_l2_cache_entry(L2TableCache *l2_cache, CachedL2Table *l2_table) { CachedL2Table *entry; entry = qed_find_l2_cache_entry(l2_cache, l2_table->offset); if (entry) { qed_unref_l2_cache_entry(entry); qed_unref_l2_cache_entry(l2_table); return; } if (l2_cache->n_ent...
void qed_commit_l2_cache_entry(L2TableCache *l2_cache, CachedL2Table *l2_table) { CachedL2Table *entry; entry = qed_find_l2_cache_entry(l2_cache, l2_table->offset); if (entry) { qed_unref_l2_cache_entry(entry); qed_unref_l2_cache_entry(l2_table); return; } if (l2_cache->...
null
null
null
qemu/commit/14fe292d86da90b79e2fb56a4986d27346339a00
qed: do not evict in-use L2 table cache entries The L2 table cache reduces QED metadata reads that would be required when translating LBAs to offsets into the image file. Since requests execute in parallel it is possible to share an L2 table between multiple requests. There is a potential data corruption issue when ...
./qemu/block/qed-l2-cache.c
c
2012-02-27T13:16:01Z
static void pc_dimm_get_size(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { uint64_t value; MemoryRegion *mr; PCDIMMDevice *dimm = PC_DIMM(obj); PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(obj); mr = ddc->get_memory_region(dimm); value = memo...
static void pc_dimm_get_size(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { uint64_t value; MemoryRegion *mr; PCDIMMDevice *dimm = PC_DIMM(obj); PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(obj); mr = ddc->get_memory_region(dimm, errp); if (!m...
null
null
null
qemu/commit/0479097859372a760843ad1b9c6ed3705c6423ca
hw/ppc/spapr: Fix segfault when instantiating a 'pc-dimm' without 'memdev' QEMU currently crashes when trying to use a 'pc-dimm' on the pseries machine without specifying its 'memdev' property. This happens because pc_dimm_get_memory_region() does not check whether the 'memdev' property has properly been set by the us...
./qemu/hw/mem/pc-dimm.c
c
2017-08-21T06:30:29Z
success: function(_result, _request){ var nodeData = Ext.util.JSON.decode(_result.responseText); node.setText(_text); this.scope.fireEvent('containerrename', node...
success: function(_result, _request){ var nodeData = Ext.util.JSON.decode(_result.responseText); node.setText(Ext.util.Format.htmlEncode(_text)); this.scope.fireE...
CVE-2017-14921
CWE-79
Stored XSS vulnerability via IMG element at "Filename" of Filemanager in Tine 2.0 Community Edition before 2017.08.4 allows an authenticated user to inject JavaScript, which is mishandled during rendering by the application administrator and other users.
https://github.com/tine20/Tine-2.0-Open-Source-Groupware-and-CRM/commit/bc8a6fbd3128cf5ef27d808f6c6ba869fdc2262b
name might not be displayed correctly Change-Id: I949c7a80b5356f393d269d3004bd6800772ac63b Reviewed-on: http://gerrit.tine20.com/customers/5618 Reviewed-by: Cornelius Weiss <c.weiss@metaways.de> Tested-by: Cornelius Weiss <c.weiss@metaways.de>
GridRenderer.js
js
2017-09-30T01:29:00Z
def get_task_instance(dag_id: str, task_id: str, execution_date: datetime) -> TaskInstance: """Return the task instance identified by the given dag_id, task_id and execution_date.""" dag = check_and_get_dag(dag_id, task_id) dagrun = check_and_get_dagrun(dag=dag, execution_date=execution_date) # Get tas...
def get_task_instance(dag_id: str, task_id: str, execution_date: datetime) -> TaskInstance: """Return the task instance identified by the given dag_id, task_id and execution_date.""" dag = check_and_get_dag(dag_id, task_id) dagrun = check_and_get_dagrun(dag=dag, execution_date=execution_date) # Get tas...
null
null
null
https://github.com/apache/airflow/commit/dd9a0c65af24d25f91c0dd5e6dd2f75d83efb1f6
Merge remote-tracking branch 'origin/main' into feature/make-raw-html-description-in-params-configurable
airflow/api/common/experimental/get_task_instance.py
py
2023-11-08T22:49:41Z
static void vmxnet3_process_tx_queue(VMXNET3State *s, int qidx) { struct Vmxnet3_TxDesc txd; uint32_t txd_idx; uint32_t data_len; hwaddr data_pa; for (;;) { if (!vmxnet3_pop_next_tx_descr(s, qidx, &txd, &txd_idx)) { break; } vmxnet3_dump_tx_descr(&txd); ...
static void vmxnet3_process_tx_queue(VMXNET3State *s, int qidx) { struct Vmxnet3_TxDesc txd; uint32_t txd_idx; uint32_t data_len; hwaddr data_pa; for (;;) { if (!vmxnet3_pop_next_tx_descr(s, qidx, &txd, &txd_idx)) { break; } vmxnet3_dump_tx_descr(&txd); ...
CVE-2015-8744
CWE-20
QEMU (aka Quick Emulator) built with a VMWARE VMXNET3 paravirtual NIC emulator support is vulnerable to crash issue. It occurs when a guest sends a Layer-2 packet smaller than 22 bytes. A privileged (CAP_SYS_RAWIO) guest user could use this flaw to crash the QEMU process instance resulting in DoS.
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=a7278b36fcab9af469563bd7b
null
null
c
null
public void Update() { Client.Instance.PerformRequest(Client.HttpRequestMethod.Put, UrlPrefix + Uri.EscapeUriString(CouponCode), WriteXmlUpdate); }
public void Update() { Client.Instance.PerformRequest(Client.HttpRequestMethod.Put, UrlPrefix + Uri.EscapeDataString(CouponCode), WriteXmlUpdate); }
CVE-2017-0907
CWE-918,CWE-918
The Recurly Client .NET Library before 1.0.1, 1.1.10, 1.2.8, 1.3.2, 1.4.14, 1.5.3, 1.6.2, 1.7.1, 1.8.1 is vulnerable to a Server-Side Request Forgery vulnerability due to incorrect use of "Uri.EscapeUriString" that could result in compromise of API keys or other critical resources.
https://github.com/recurly/recurly-client-net/commit/9eef460c0084afd5c24d66220c8b7a381cf9a1f1
SSRF fix: replace EscapeUriString with EscapeDataString
GiftCard.cs
cs
2017-11-13T17:29:00Z
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { const AVFrame *pic = data; int aligned_width = ((avctx->width + 47) / 48) * 48; int stride = aligned_width * 8 / 3; int h, w; const uint16_t *y = (const uint16_t*)pic->data[0]; ...
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) { const AVFrame *pic = data; int aligned_width = ((avctx->width + 47) / 48) * 48; int stride = aligned_width * 8 / 3; int h, w; const uint16_t *y = (const uint16_t*)pic->data[0]; ...
null
null
null
FFmpeg/commit/c9dc66375b18590462f829a652d210c2e094693c
v210enc: Fix warning: ‘val’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
./ffmpeg/libavcodec/v210enc.c
c
2011-12-17T23:55:21Z
static void mark_op_resolved (FlatpakTransactionOperation *op, const char *commit, GFile *sideload_path, GBytes *metadata, GBytes *old_metadata) { g_debug ("marking ...
static gboolean mark_op_resolved (FlatpakTransactionOperation *op, const char *commit, GFile *sideload_path, GBytes *metadata, GBytes *old_metadata, ...
null
null
null
https://github.com/flatpak/flatpak/commit/d9a8f9d8ccc0b7c1135d0ecde006a75d25f66aee
Transaction: Fail the resolve if xa.metadata invalid or missing If we fail to parse xa.metadata from the summary cache or the commit xa.metadata we fail the resolve. If xa.metadata is missing in the commit we fail the resolve (it is always set in the summary cache, because summary update converts missing xa.metadata ...
common/flatpak-transaction.c
c
2022-01-10T15:43:08Z
static int do_timer_create(clockid_t which_clock, struct sigevent *event, timer_t __user *created_timer_id) { const struct k_clock *kc = clockid_to_kclock(which_clock); struct k_itimer *new_timer; int error, new_timer_id; int it_id_set = IT_ID_NOT_SET; if (!kc) return -EINVAL; if (!kc->timer_create) re...
static int do_timer_create(clockid_t which_clock, struct sigevent *event, timer_t __user *created_timer_id) { const struct k_clock *kc = clockid_to_kclock(which_clock); struct k_itimer *new_timer; int error, new_timer_id; int it_id_set = IT_ID_NOT_SET; if (!kc) return -EINVAL; if (!kc->timer_create) re...
null
CWE-190
null
https://github.com/torvalds/linux/commit/78c9c4dfbf8c04883941445a195276bb4bb92c76
posix-timers: Sanitize overrun handling The posix timer overrun handling is broken because the forwarding functions can return a huge number of overruns which does not fit in an int. As a consequence timer_getoverrun(2) and siginfo::si_overrun can turn into random number generators. The k_clock::timer_forward() callb...
null
null
2018-06-26T13:21:32Z
static int bochs_open(BlockDriverState *bs, int flags) { BDRVBochsState *s = bs->opaque; int i; struct bochs_header bochs; struct bochs_header_v1 header_v1; bs->read_only = 1; if (bdrv_pread(bs->file, 0, &bochs, sizeof(bochs)) != sizeof(bochs)) { goto fail; } if (strcmp(bochs.ma...
static int bochs_open(BlockDriverState *bs, int flags) { BDRVBochsState *s = bs->opaque; int i; struct bochs_header bochs; struct bochs_header_v1 header_v1; int ret; bs->read_only = 1; ret = bdrv_pread(bs->file, 0, &bochs, sizeof(bochs)); if (ret < 0) { return ret; } if ...
null
null
null
qemu/commit/5b7d7dfd198f06ec5edd0c857291c5035c5c060f
bochs: Fix bdrv_open() error handling Return -errno instead of -1 on errors. While touching the code, fix a memory leak. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
./qemu/block/bochs.c
c
2013-01-25T16:07:27Z
Status ValidateInputs(const Tensor *a_indices, const Tensor *a_values, const Tensor *a_shape, const Tensor *b) { if (!TensorShapeUtils::IsMatrix(a_indices->shape())) { return errors::InvalidArgument( "Input a_indices should be a matrix but received shape: ", a_indices->shape(...
Status ValidateInputs(const Tensor *a_indices, const Tensor *a_values, const Tensor *a_shape, const Tensor *b) { if (!TensorShapeUtils::IsMatrix(a_indices->shape())) { return errors::InvalidArgument( "Input a_indices should be a matrix but received shape: ", a_indices->shape(...
CVE-2022-29206
CWE-20
TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of `tf.raw_ops.SparseTensorDenseAdd` does not fully validate the input arguments. In this case, a reference gets bound to a `nullptr` during kernel execution. This is undefined behavior. Vers...
https://github.com/tensorflow/tensorflow/commit/11ced8467eccad9c7cb94867708be8fa5c66c730
Fix UB in SparseTensorDenseAdd Added more input validation to avoid nullptr dereferencing and array index out of bounds issues. PiperOrigin-RevId: 446192704
sparse_tensor_dense_add_op.cc
cc
2022-05-03T14:51:51Z
static void scsi_do_read(void *opaque, int ret) { SCSIDiskReq *r = opaque; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint32_t n; if (r->req.aiocb != NULL) { r->req.aiocb = NULL; bdrv_acct_done(s->qdev.conf.bs, &r->acct); if (ret < 0) { if (scsi_handle_rw_...
static void scsi_do_read(void *opaque, int ret) { SCSIDiskReq *r = opaque; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); uint32_t n; if (r->req.aiocb != NULL) { r->req.aiocb = NULL; bdrv_acct_done(s->qdev.conf.bs, &r->acct); } if (ret < 0) { if (scsi_hand...
null
null
null
qemu/commit/31e8fd86f24b4eec8a1708d712bf0532460bb0a5
scsi: fix refcounting for reads Recently introduced FUA support also gave us a use-after-free of the BlockAcctCookie within a SCSIDiskReq, due to unbalanced reference counting. The patch fixes this by making scsi_do_read look like a combination of scsi_*_complete + scsi_*_data. It does both a ref (like scsi_read_dat...
./qemu/hw/scsi-disk.c
c
2012-04-24T06:41:04Z
@Override public HistoricTaskInstanceQuery processVariableExists(String name) { if (inOrStatement) { currentOrQueryObject.variableExists(name, ScopeTypes.BPMN); return this; } else { return variableExists(name, ScopeTypes.BPMN); } }
@Override public HistoricTaskInstanceQuery processVariableExists(String name) { if (inOrStatement) { currentOrQueryObject.scopedVariableExists(name, ScopeTypes.BPMN); return this; } else { return scopedVariableExists(name, ScopeTypes.BPMN); } }
null
null
null
https://github.com/flowable/flowable-engine/commit/978708494fb7ea7297ca6eddc7da36bfc4b8ae4e
Rename protected scope related methods to avoid clashing with Groovy method detection
modules/flowable-task-service/src/main/java/org/flowable/task/service/impl/HistoricTaskInstanceQueryImpl.java
java
2022-04-13T06:45:43Z
@Override public void onUpdate() { voidHoles.clear(); if (mc.player.dimension == 1) { return; } if (mc.player.getPosition().getY() > yLevel.getValue()) { return; } List<BlockPos> blockPosList = BlockUtil.getCircle(PlayerUtil.getPlayerPos(), 0...
@Override public void onUpdate() { if(nullCheck())return; voidHoles.clear(); if (mc.player.dimension == 1) { return; } if (mc.player.getPosition().getY() > yLevel.getValue()) { return; } List<BlockPos> blockPosList = BlockUtil.getCirc...
null
null
null
https://github.com/WurstPlus/wurst-plus-three/commit/c95fab9cb5f668bea85c8147a75fe5954d62a849
[addition] dynamic place to ca and some other shit to stop it from crashing when u get kicked
src/main/java/me/travis/wurstplusthree/hack/hacks/render/VoidESP.java
java
2021-07-02T14:49:26Z
PHP_FUNCTION(radius_get_vendor_attr) { int res; const void *data; int len; u_int32_t vendor; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &len) == FAILURE) { return; } res = rad_get_vendor_attr(&vendor, &data, (size_t *) &len); if (res == -1) { RETURN_FALSE; } else { array_init(ret...
PHP_FUNCTION(radius_get_vendor_attr) { const void *data, *raw; int len; u_int32_t vendor; unsigned char type; size_t data_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &raw, &len) == FAILURE) { return; } if (rad_get_vendor_attr(&vendor, &type, &data, &data_len, raw, len) == -1) { RETURN_F...
CVE-2013-2220
CWE-119
Buffer overflow in the radius_get_vendor_attr function in the Radius extension before 1.2.7 for PHP allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a large Vendor Specific Attributes (VSA) length value.
https://github.com/LawnGnome/php-radius/commit/13c149b051f82b709e8d7cc32111e84b49d57234
Fix a security issue in radius_get_vendor_attr(). The underlying rad_get_vendor_attr() function assumed that it would always be given valid VSA data. Indeed, the buffer length wasn't even passed in; the assumption was that the length field within the VSA structure would be valid. This could result in denial of servic...
radlib.c
c
2013-06-27T20:42:37Z
public function get_messages($search_criteria="UNSEEN", $date_format="Y-m-d H:i:s") { global $htmlmsg,$plainmsg,$attachments; // If our imap connection failed earlier, return no messages if($this->imap_stream == false) { return array(); } // Use imap_search() to find the 'UNSEEN' messages....
public function get_messages($search_criteria="UNSEEN", $date_format="Y-m-d H:i:s") { global $htmlmsg,$plainmsg,$attachments; // If our imap connection failed earlier, return no messages if($this->imap_stream == false) { return array(); } // Use imap_search() to find the 'UNSEEN' messages....
CVE-2013-2025
CWE-79
Cross-site scripting (XSS) vulnerability in Ushahidi Platform 2.5.x through 2.6.1 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.
https://github.com/rjmackay/Ushahidi_Web/commit/593719ff805a302e3ab2f2e535c875f90a04ea56
Better XSS protection * Add HTMLPurifier library (LGPL) * Add helper functions to html helper * Set default encoding header to UTF-8 * Make sure the doctype is the same everywhere (admin/members/frontend) * Remove use of strip_tags() and htmlspecialchars() * Replace vanilla htmlentities with html::escape() - make sure...
actions.php
php
2014-04-25T17:12:00Z
TfLiteStatus NonMaxSuppressionSingleClassHelper( TfLiteContext* context, TfLiteNode* node, OpData* op_data, const std::vector<float>& scores, std::vector<int>* selected, int max_detections) { const TfLiteTensor* input_box_encodings = GetInput(context, node, kInputTensorBoxEncodings); const TfLiteT...
TfLiteStatus NonMaxSuppressionSingleClassHelper( TfLiteContext* context, TfLiteNode* node, OpData* op_data, const std::vector<float>& scores, std::vector<int>* selected, int max_detections) { const TfLiteTensor* input_box_encodings; TF_LITE_ENSURE_OK(context, GetInputSafe(context, no...
CVE-2020-15211
CWE-125,CWE-787
In TensorFlow Lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, saved models in the flatbuffer format use a double indexing scheme: a model has a set of subgraphs, each subgraph has a set of operators and each operator has a set of input/output tensors. The flatbuffer format uses indices for the tensors, inde...
https://github.com/tensorflow/tensorflow/commit/1970c2158b1ffa416d159d03c3370b9a462aee35
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
add_n.cc
cc
2020-09-18T20:56:43Z
function _getHtmlHeaderColumn($title, $name, $pageName, $entityIds, $listorder, $orderdirection, $showColumn = true) { $str = ''; $entity = _getEntityString($entityIds); if ($listorder == $name) { if (($orderdirection == '') || ($orderdirection == 'down')) { $str = "<a href='$pageName?{$...
function _getHtmlHeaderColumn($title, $name, $pageName, $entityIds, $listorder, $orderdirection, $showColumn = true) { $str = ''; $entity = htmlspecialchars(_getEntityString($entityIds), ENT_QUOTES); $pageName = htmlspecialchars($pageName, ENT_QUOTES); if ($listorder == $name) { if (($orderdirec...
CVE-2016-9457
CWE-79,CWE-79
Revive Adserver before 3.2.3 suffers from Reflected XSS. `www/admin/stats.php` is vulnerable to reflected XSS attacks via multiple parameters that are not properly sanitised or escaped when displayed, such as setPerPage, pageId, bannerid, period_start, period_end, and possibly others.
https://github.com/revive-adserver/revive-adserver/commit/ecbe822b48ef4ff61c2c6357c0c94199a81946f4
Fix h1 report 107879 Reflected XSS ------------- Johan Caluwe has reported via HackerOne that www/admin/stats.php was vulnerable to reflected XSS attacks via multiple parameters that were not properly sanitised or escaped when displayed, such as "setPerPage", "pageId", "bannerid", "pereiod_start", "period_end" and po...
html.php
php
2017-03-28T02:59:00Z
static void ifb_setup(struct net_device *dev) { /* Initialize the device structure. */ dev->destructor = free_netdev; dev->netdev_ops = &ifb_netdev_ops; /* Fill in device structure with ethernet-generic values. */ ether_setup(dev); dev->tx_queue_len = TX_Q_LIMIT; dev->features |= IFB_FEATURES; dev->vlan_featu...
static void ifb_setup(struct net_device *dev) { /* Initialize the device structure. */ dev->destructor = free_netdev; dev->netdev_ops = &ifb_netdev_ops; /* Fill in device structure with ethernet-generic values. */ ether_setup(dev); dev->tx_queue_len = TX_Q_LIMIT; dev->features |= IFB_FEATURES; dev->vlan_featu...
null
CWE-703, CWE-264
null
https://github.com/torvalds/linux/commit/550fd08c2cebad61c548def135f67aba284c6162
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
null
null
2011-07-26T06:05:38Z
static int oss_open (int in, struct oss_params *req, struct oss_params *obt, int *pfd) { int fd; int mmmmssss; audio_buf_info abinfo; int fmt, freq, nchannels; const char *dspname = in ? conf.devpath_in : conf.devpath_out; const char *typ = in ? "ADC" : "DAC"; fd = open ...
static int oss_open (int in, struct oss_params *req, struct oss_params *obt, int *pfd) { int fd; int mmmmssss; audio_buf_info abinfo; int fmt, freq, nchannels; const char *dspname = in ? conf.devpath_in : conf.devpath_out; const char *typ = in ? "ADC" : "DAC"; fd = open ...
null
null
null
qemu/commit/29ddf27b72960d6e6b115cd69812c9c57b2a7b13
Check the returned audio_buf_info fields At least on one system zero is returned in either fragsize or fragstotal (reported by Dave Scott), this results in an audio_calloc failing the audio_bug check and another ominous error message. Fail early and blame the system. git-svn-id: svn://svn.savannah.nongnu.org/qemu/tr...
./qemu/audio/ossaudio.c
c
2008-06-08T04:27:56Z
def _call(env) unless ALLOWED_VERBS.include? env["REQUEST_METHOD"] return fail(405, "Method Not Allowed") end path_info = Utils.unescape(env["PATH_INFO"]) parts = path_info.split SEPS parts.inject(0) do |depth, part| case part when '', '.' depth ...
def _call(env) unless ALLOWED_VERBS.include? env["REQUEST_METHOD"] return fail(405, "Method Not Allowed") end path_info = Utils.unescape(env["PATH_INFO"]) parts = path_info.split SEPS clean = [] parts.each do |part| next if part.empty? || part == '.' part =...
CVE-2013-0262
CWE-22
rack/file.rb (Rack::File) in Rack 1.5.x before 1.5.2 and 1.4.x before 1.4.5 allows attackers to access arbitrary files outside the intended root directory via a crafted PATH_INFO environment variable, probably a directory traversal vulnerability that is remotely exploitable, aka "symlink path traversals."
https://github.com/rack/rack/commit/6f237e4c9fab649d3750482514f0fde76c56ab30
Prevent symlink path traversals * Closes CVE-2013-0262
file.rb
rb
2013-02-08T20:55:00Z