text stringlengths 79 3.72M |
|---|
<vulnerable_code> " from multiple files/directories.\n"
" -s <stats_file> If specified, write statistics related to falco's reading/processing of events\n"
" to this file. (Only useful in live mode).\n"
" -S <len>, --snaplen... |
<vulnerable_code> m_output.close();
}
bool StatsFileWriter::init(sinsp *inspector, string &filename, uint32_t interval_sec, string &errstr)
{
struct itimerval timer;
struct sigaction handler;
return false;
}
timer.it_value.tv_sec = interval_sec;
timer.it_value.tv_usec = 0;
timer.it_interval = timer.it_value;
... |
<vulnerable_code>
if(!mWrittenFont)
mWrittenFont = mFaceWrapper.CreateWrittenFontObject(mObjectsContext,mEmbedFont);
mWrittenFont->AppendGlyphs(inText,outCharactersToUse,outTreatCharactersAsCID,outFontObjectToUse);
return PDFHummus::eSuccess;
if(!mWrittenFont)
mWrittenFont = mFaceWrapper.CreateWrittenFontObj... |
<vulnerable_code><commit_title>[PATCH] security: fix oobe-flow reuse when akadmin is deleted (#7361)<commit_description>Signed-off-by: Jens Langhammer <jens@goauthentik.io>
# Conflicts:
# website/docs/releases/2023/v2023.10.md<fixed_code>
# Generated by Django 4.2.6 on 2023-10-10 17:18
from django.db import migrations... |
<vulnerable_code><commit_title>[PATCH] security: fix oobe-flow reuse when akadmin is deleted (#7361)<commit_description>Signed-off-by: Jens Langhammer <jens@goauthentik.io>
# Conflicts:
# website/docs/releases/2023/v2023.10.md<fixed_code>
# Generated by Django 4.2.6 on 2023-10-28 14:24
from django.apps.registry import... |
<vulnerable_code> },
items: [
"security/policy",
"security/CVE-2023-39522",
"security/CVE-2023-36456",
"security/2023-06-cure53",<commit_title>[PATCH] security: fix oobe-flow reuse when akadmin is deleted (#7361)<commit_description>S... |
<vulnerable_code> }
ret = rhashtable_init(tmp_sdma_rht, &sdma_rht_params);
if (ret < 0)
goto bail;
dd->sdma_rht = tmp_sdma_rht;
dd_dev_info(dd, "SDMA num_sdma: %u\n", dd->num_sdma);<commit_title>[PATCH] RDMA/hfi1: Prevent memory leak in sdma_init<commit_description>In sdma_init if rhashtable_init fails the allo... |
<vulnerable_code>/******************************************************************************/
/* returns error */
int
auth_start_session(struct auth_info *auth_info, int display_num)
{
int error;
char display[256];
return 0;
}
/**************************************************************************... |
<vulnerable_code> int window_manager_pid;
enum scp_screate_status status = E_SCP_SCREATE_GENERAL_ERROR;
auth_start_session(login_info->auth_info, s->display);
#ifdef USE_BSD_SETLOGIN
/**
* Create a new session and process group since the 4.4BSD<commit_title>[PATCH] Check auth_start_session() result... |
<vulnerable_code>
static GF_Err BM_ParseMultipleReplace(GF_BifsDecoder *codec, GF_BitStream *bs, GF_List *com_list)
{
u32 i, numFields, index, flag, nbBits, field_ref, fieldind;
GF_Err e;
GF_FieldInfo field;
u32 NodeID;
} else {
flag = gf_bs_read_int(bs, 1);
nbBits = gf_get_bit_size(gf_node_get_num_fields_in_m... |
<vulnerable_code>
import org.jd.gui.util.exception.ExceptionUtil;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.function.Consumer;
public class InterProcessCommunicati... |
<vulnerable_code>
module.exports = function newline(state, silent) {
var pmax, max, pos = state.pos;
if (state.src.charCodeAt(pos) !== 0x0A/* \n */) { return false; }
if (!silent) {
if (pmax >= 0 && state.pending.charCodeAt(pmax) === 0x20) {
if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 0x2... |
<vulnerable_code> it('autolinks <<<<...<<> pattern', async () => {
await test_pattern('<'.repeat(400000) + '>');
});
});
});<commit_title>[PATCH] Fix possible ReDOS in newline rule.<commit_description>Co-authored-by: MakeNowJust <make.just.on@gmail.com><fixed_code>
it('autolinks <<<<...<<> pattern', ... |
<vulnerable_code> feature: {
allow_user_hotlink_template: envs.ALLOW_USER_HOTLINK_TEMPLATE === 'true',
filter_regex_engine: envs.FILTER_REGEX_ENGINE || 're2',
},
suffix: envs.SUFFIX,
titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 150,<commit_title>[PATCH] f... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const lang = ctx.params.lang || 'en';
const id = ctx.params.id || 'bandizip';
const rootUrl = `https://${lang}.bandisoft.com`;
const currentUrl = `${rootUrl}/${id}/history/`;<comm... |
<vulnerable_code>const cheerio = require('cheerio');
const got = require('@/utils/got');
module.exports = async (ctx) => {
const url = `http://${ctx.params.column}.bio1000.com/${ctx.params.id}`;
const res = await got.get(url);
const $ = cheerio.load(res.data);<commit_title>[PATCH] feat(config)!: unsafe dom... |
<vulnerable_code> html: true,
});
const dayjs = require('dayjs');
module.exports = async (ctx) => {
const type = ctx.params.type;
const url = `https://${type}.hedwig.pub`;
const res = await got({<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixed_code>
html:... |
<vulnerable_code>const parser = require('@/utils/rss-parser');
const config = require('@/config').value;
module.exports = async (ctx) => {
const scheme = ctx.params.https || 'https';
const cdn = config.wordpress.cdnUrl;
<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixe... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const maxPages = 5;
module.exports = async (ctx) => {
const { subdomain } = ctx.params;
const shopUrl = `https://${subdomain}.booth.pm`;
let shopName;<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)... |
<vulnerable_code>const got = require('@/utils/got');
const parser = require('@/utils/rss-parser');
const cheerio = require('cheerio');
async function load(link, need_feed_description) {
const response = await got.get(link);
module.exports = async (ctx) => {
const { column } = ctx.params;
const link = `htt... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const category = ctx.params.category;
const column = ctx.params.column;
const url = `http://${column}.caixin.com/${category}`;
const response = await got({
method: 'get',<... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const queryParams = ctx.request.querystring;
const queryUrl = `https://${ctx.params.location}.craigslist.org/search/${ctx.params.type}?${queryParams}`;
const { data } = await got.get(q... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const parser = require('@/utils/rss-parser');
module.exports = async (ctx) => {
const lang = ctx.params.lang === 'us' ? 'www' : ctx.params.lang || 'cn';
const rssUrl = `https://${lang}.engadget.com/rss.xml`;
const feed... |
<vulnerable_code>// user?: fanbox domain name
const got = require('@/utils/got');
const conv_item = require('./conv');
const get_header = require('./header');
module.exports = async (ctx) => {
const user = ctx.params.user || 'official'; // if no user specified, just go to official page
const box_url = `https... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const country = ctx.params.country || 'ww';
const rootUrl = `https://${country}.fashionnetwork.com`;
const response = await got({<commit_title>[PATCH] feat(config)!: unsafe domain tog... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const country = ctx.params.country || 'ww';
const sectorsUrl = sectors ? 'sectors%5B%5D=' + sectors.split(',').join('§ors%5B%5D=') : '';
const categoriesUrl = categories ? 'categs%... |
<vulnerable_code><commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixed_code>
const allowHost = ['gitlab.com'];
module.exports = {
allowHost,
}; |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
let { type, host } = ctx.params;
starred: 'Most stars',
all: 'All',
};
const res = await got({
method: 'get',<commit_title>[PATCH] feat(config)!: unsafe domain... |
<vulnerable_code>const got = require('@/utils/got');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const { namespace, project, host } = ctx.params;
const host_ = host ? host : 'gitlab.com';
const namespace_ = encodeURIComponent(namespace);<commit_title>[PATCH] feat... |
<vulnerable_code>const cheerio = require('cheerio');
const got = require('@/utils/got');
module.exports = async (ctx) => {
const url = `http://${ctx.params.url}`;
const res = await got.get(`${url}/archives/`);
const $ = cheerio.load(res.data);<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#1158... |
<vulnerable_code>const utils = require('./utils');
module.exports = async (ctx) => {
const site = ctx.params.site;
const account_id = ctx.params.account_id;
const only_media = ctx.params.only_media ? 'true' : 'false';
const { account_data, data } = await utils.getAccountStatuses(site, account_id, only... |
<vulnerable_code>const got = require('@/utils/got');
const utils = require('./utils');
module.exports = async (ctx) => {
const site = ctx.params.site;
const only_media = ctx.params.only_media ? 'true' : 'false';
const url = `http://${site}/api/v1/timelines/public?local=true&only_media=${only_media}`;
<com... |
<vulnerable_code>const got = require('@/utils/got');
const { parseDate } = require('@/utils/parse-date');
const parseStatuses = (data) =>
data.map((item) => {
// docs on: https://docs.joinmastodon.org/entities/status/
parseStatuses,
getAccountStatuses,
getAccountIdByAcct,
};<commit_title>[PATCH... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const language = ctx.params.language || 'www';
const url = ctx.params.url || 'video';
const link = `https://${language}.pornhub.com/${url}`;
const response = await got.get(link);
... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const language = ctx.params.language || 'www';
const username = ctx.params.username;
const sort = ctx.params.sort || 'mr';
const link = `https://${language}.pornhub.com/model/${use... |
<vulnerable_code>
module.exports = async (ctx) => {
const { language, type } = ctx.params;
const baseUrl = getBaseUrl(language);
<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixed_code>
module.exports = async (ctx) => {
const { language, type } = ctx.params;
i... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
ctx.params.lang = ctx.params.lang || 'www';
ctx.params.platform = ctx.params.platform || '';
ctx.params.year = ctx.params.year || '';
const rootUrl = `https://${ctx.params.lang ==... |
<vulnerable_code>const got = require('@/utils/got');
const parser = require('@/utils/rss-parser');
const cheerio = require('cheerio');
module.exports = async (ctx) => {
const region = ctx.params.region === 'en' ? '' : ctx.params.region.toLowerCase() + '.';
const category = ctx.params.category ? ctx.params.cate... |
<vulnerable_code>const got = require('@/utils/got');
module.exports = async (ctx) => {
const city = ctx.params.city || 'sh';
const room = ctx.params.room || '1';
const domain = `${city === 'bj' ? '' : city + '.'}m.ziroom.com`;
const response = await got({
method: 'post',
url: `http://$... |
<vulnerable_code><commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixed_code>
/**
* Check if a sub-domain is valid
* @param {String} hostname sub-domain
* @returns {Boolean} true if valid
*/
const isValidHost = (hostname) => {
if (typeof hostname !== 'string') {
ret... |
<vulnerable_code>const timezone = require('@/utils/timezone');
const { parseDate } = require('@/utils/parse-date');
const iconv = require('iconv-lite');
const setCookie = function (cookieName, cookieValue, seconds, path, domain, secure) {
let expires = null;
module.exports = async (ctx) => {
const city = ctx.... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const { domain = '91porn.com' } = ctx.query;
const { uid, lang = 'en_US' } = ctx.params;
const siteUrl = `https://${domain}/uvideo... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const { domain = '91porn.com' } = ctx.query;
const siteUrl = `https://${domain}/index.php`;
const { lang = 'en_US' } = ctx.params;... |
<vulnerable_code><commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixed_code>
const config = require('@/config').value;
const allowDomain = ['91porn.com', 'www.91porn.com', '0122.91p30.com', 'www.91zuixindizhi.com', 'w1218.91p46.com'];
const domainValidation = (domain, ctx) => {
... |
<vulnerable_code>const cheerio = require('cheerio');
const timezone = require('@/utils/timezone');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const city = ctx.params.city;
const rootUrl = `http://${city}.bendibao.com`;
<commit_title>[PATCH] feat(config)!: unsafe dom... |
<vulnerable_code>const iconv = require('iconv-lite');
const timezone = require('@/utils/timezone');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const rootUrl = ctx.path.split('/').slice(1, 4).join('/');
const currentUrl = ctx.path.slice(1);
const response = await... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
let category = ctx.params.category ?? '';
let domain = ctx.query.domain ?? 'btbtt20.com';
if (category === 'base') {
cate... |
<vulnerable_code>module.exports = async (ctx) => {
const category = ctx.params.category ?? 'jxrb';
const id = ctx.params.id;
const rootUrl = `https://${category}.cnjxol.com`;
const currentUrl = `${rootUrl}/${category}Paper/pc/layout`;<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<co... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const defaults = require('./defaults');
const shortcuts = require('./shortcuts');
module.exports = async (ctx) => {
const site = ctx.params[0] ?? 'news';
let items;
let category = ctx.params[1] ?? (defaults.hasOwnProperty(site) ? defaul... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
const cateList = ['all', 'design-resources', 'learn-design', 'inside-eagle'];
module.exports = async (ctx) => {
let cate = ctx.params.cate ?? 'all';
let language = ctx.... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const region = ctx.params.region ?? 'tw';
const feed = await parser.parseURL(`https://www.eprice.com.${region}/news/rss.xml`);
<commi... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const lang = ctx.params.lang;
const type = ctx.params.type ?? 'all';
const response = await got({
method: 'get',
... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const parser = require('@/utils/rss-parser');
module.exports = async (ctx) => {
const { domain = 'news', category } = ctx.params;
const baseUrl = `https://${domain}.gamme.com.tw`;
const feed = await parser.parseURL(`${... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const { domain = 'news', tag } = ctx.params;
const baseUrl = `https://${domain}.gamme.com.tw`;
const pageUrl = `${baseUrl}/tag/${ta... |
<vulnerable_code>const cheerio = require('cheerio');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const username = ctx.params.username;
const products = ctx.params.products;
const url = `https://${username}.gumroad.com/l/${products}`;
const... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
function getKeysRecursive(dic, key, attr, array) {
Object.values(dic).forEach((v) => {
module.exports = async (ctx) => {
const category = ctx.params.category ?? 'china'... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const user = ctx.params.user ?? '';
const id = ctx.params.id ?? '';
const rootUrl = `https://${user}.itch.io/${id}/devlog`;
<comm... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
const toSize = (raw) => {
const matches = raw.match(/(\d+(\.\d+)?)(\w+)/);
return matches[3] === 'GB' ? matches[1] * 1024 : matches[1];
};
module.exports = async (ctx)... |
<vulnerable_code>const got = require('@/utils/got');
const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
module.exports = {
ProcessItems: async (ctx, currentUrl, title) => {
const domain = ctx.query.domain ?? 'javdb.com';
const rootUrl = `https://${domain}`;
... |
<vulnerable_code>const got = require('@/utils/got');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const name = ctx.params.name ?? 'i';
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : '50';
const rootUrl = `${name}.lofter.com`;
<commit_title>[PATCH] fea... |
<vulnerable_code> html: true,
linkify: true,
});
module.exports = async (ctx) => {
const id = ctx.params.id;
const rootUrl = 'https://mirror.xyz';
const currentUrl = id.endsWith('.eth') ? `${rootUrl}/${id}` : `https://${id}.mirror.xyz`;
<commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11... |
<vulnerable_code>const { parseDate } = require('@/utils/parse-date');
const { art } = require('@/utils/render');
const path = require('path');
module.exports = async (ctx) => {
const category = ctx.params.category ?? '-1';
const latestAlerts = ctx.params.latestAlerts ?? '1';
const latestPictures = ctx.para... |
<vulnerable_code>const cheerio = require('cheerio');
const { art } = require('@/utils/render');
const path = require('path');
const shortcuts = {
potd: 'picture/browse/potd/',
module.exports = async (ctx) => {
const language = ctx.params.language ?? '';
const category = ctx.params.category ?? 'figure';
... |
<vulnerable_code>const cheerio = require('cheerio');
const timezone = require('@/utils/timezone');
const { parseDate } = require('@/utils/parse-date');
const cleanContent = (language, content) => {
switch (language) {
const language = ctx.params.language ?? 'cn';
const category = ctx.params.category ?? '';... |
<vulnerable_code>const iconv = require('iconv-lite');
const timezone = require('@/utils/timezone');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const site = ctx.params[0] ?? 'www';
let category = ctx.params[1] ?? (site === 'www' ? '59476' : '');
category = site ==... |
<vulnerable_code>const cheerio = require('cheerio');
const { puppeteerGet, renderDesc } = require('./utils');
const config = require('@/config').value;
module.exports = async (ctx) => {
const pub = ctx.params.pub;
const jrn = ctx.params.jrn;
const host = `https://${pub}.scitation.org`;
const jrnlUrl = ... |
<vulnerable_code>const cheerio = require('cheerio');
const { puppeteerGet, renderDesc } = require('./utils');
const config = require('@/config').value;
module.exports = async (ctx) => {
const pub = ctx.params.pub;
const sec = ctx.params.sec.split('+').join(' ');
const host = `https://${pub}.scitation.org`;... |
<vulnerable_code>const got = require('@/utils/got'); // get web content
const cheerio = require('cheerio'); // html parser
const get_article = require('./_article');
module.exports = async (ctx) => {
const type = ctx.params.type ?? 'www';
const base_url = `https://${type}.solidot.org`;
const response = awa... |
<vulnerable_code>const cheerio = require('cheerio');
const { parseDate } = require('@/utils/parse-date');
const { extractArticle, extractWork } = require('./utils');
module.exports = async (ctx) => {
const { uid } = ctx.params;
let pageUrl = `https://www.zcool.com.cn/u/${uid}`;
if (isNaN(uid)) {
pa... |
<vulnerable_code>const got = require('@/utils/got');
const { parseDate } = require('@/utils/parse-date');
module.exports = async (ctx) => {
const { id } = ctx.params;
const limit = ctx.query.limit ? parseInt(ctx.query.limit) : 20;
const response = await got({
method: 'get',<commit_title>[PATCH] fe... |
<vulnerable_code><commit_title>[PATCH] feat(config)!: unsafe domain toggle (#11588)<commit_description><fixed_code>
const { isValidHost } = require('../../lib/utils/valid-host');
describe('valid-host', () => {
it('validate hostname', () => {
expect(isValidHost()).toBe(false);
expect(isValidHost(123... |
<vulnerable_code> itc_ha_feed_ret_t ihfr;
if (DVC_MATCH == itc_ha_feed (&ihfr, ins->_.agg.distinct, inst, 0, NULL))
continue;
}
op = ins->_.agg.op;
qi->qi_set = set_no;<commit_title>[PATCH] Fixed get argument before place gets mangled when serializing<commit_description><fixed_code>
itc_ha_fee... |
<vulnerable_code>import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import com.vaadin.data.BeanPropertySet;
*/
public Column<T, V> setCaption(String caption) {
Objects.req... |
<vulnerable_code>/* selects the fdc and drive, and enables the fdc's input/dma. */
static void set_fdc(int drive)
{
if (drive >= 0 && drive < N_DRIVE) {
fdc = FDC(drive);
current_drive = drive;
}
if (fdc != 1 && fdc != 0) {
pr_info("bad fdc value\n");
return;
}
set_dor(fdc, ~0, 8);
#if N_FDC > 1
set_dor(1... |
<vulnerable_code> ZeroMemory(&credssp->negoToken, sizeof(SecBuffer));
ZeroMemory(&credssp->pubKeyAuth, sizeof(SecBuffer));
ZeroMemory(&credssp->authInfo, sizeof(SecBuffer));
if (credssp->server)
{<commit_title>[PATCH] nla: invalidate sec handle after creation<commit_description>If sec pointer isn't invalidate... |
<vulnerable_code> sspi_CopyAuthIdentity(&client->identity, &(rdp->nego->transport->credssp->identity));
IFCALLRET(client->Logon, client->authenticated, client, &client->identity, TRUE);
credssp_free(rdp->nego->transport->credssp);
}
else
{<commit_title>[PATCH] nla: invalidate sec handle after creati... |
<vulnerable_code> "If credentials are valid, the NTLMSSP implementation may be to blame.\n");
credssp_free(transport->credssp);
return FALSE;
}
{
fprintf(stderr, "client authentication failure\n");
credssp_free(transport->credssp);
return FALSE;
}
<commit_title>[PATCH] nla: invalidate sec handle after ... |
<vulnerable_code>{
void* pointer;
if (!handle)
return NULL;
pointer = (void*) ~((size_t) handle->dwLower);
{
void* pointer;
if (!handle)
return NULL;
pointer = (void*) ~((size_t) handle->dwUpper);
SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(PCtxtHandle phContext)
{
char* Name;
SECURITY_STATUS statu... |
<vulnerable_code> }
fetch(piranha.baseUrl + "manager/api/alias/save", {
method: "post",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
id: pir... |
<vulnerable_code>piranha.alias=new Vue({el:"#alias",data:{loading:!0,siteId:null,siteTitle:null,sites:[],items:[],model:{id:null,aliasUrl:null,redirectUrl:null,isPermanent:!0}},methods:{load:function(a){var e=this;a||(a=""),fetch(piranha.baseUrl+"manager/api/alias/list/"+a).then(function(a){return a.json()}).then(funct... |
<vulnerable_code> approve: function (id) {
var self = this;
fetch(piranha.baseUrl + "manager/api/comment/approve/" + id + (self.contentId != null ? "/" + self.contentId : ""))
.then(function (response) { return response.json(); })
.then(function (result) {... |
<vulnerable_code>piranha.comment=new Vue({el:"#comments",data:{loading:!0,contentId:null,items:[],state:"all"},computed:{filteredItems:function(){var n=this;return this.items.filter(function(t){return"all"===n.state||("pending"===n.state?!t.isApproved:t.isApproved)})}},methods:{load:function(n){var t=this;n||(n=""),fet... |
<vulnerable_code> confirmIcon: "fas fa-trash",
confirmText: piranha.resources.texts.delete,
onConfirm: function () {
fetch(piranha.baseUrl + "manager/api/post/delete/" + postId).then(function (response) {
return response.json();
}).then(function (result) {
... |
<vulnerable_code>Vue.component("region",{props:["model","content","type"],data:function(){return{itemAdded:!1}},methods:{moveItem:function(e,t){this.model.items.splice(t,0,this.model.items.splice(e,1)[0])},addItem:function(){var e=this;fetch(piranha.baseUrl+"manager/api/content/region/"+this.content+"/"+this.type+"/"+t... |
<vulnerable_code>
fetch(piranha.baseUrl + "manager/api/config/save", {
method: "post",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
hierarchicalPageSlug... |
<vulnerable_code>piranha.config=new Vue({el:"#config",data:{loading:!0,model:{hierarchicalPageSlugs:null,expandedSitemapLevels:null,managerPageSize:null,archivePageSize:null,commentsApprove:null,commentsCloseAfterDays:null,commentsEnabledForPages:null,commentsEnabledForPosts:null,commentsPageSize:null,pagesExpires:null... |
<vulnerable_code>
fetch(route, {
method: "post",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(model)
})
.then(function (response) { return response.json(); })
... |
<vulnerable_code>piranha.contentedit=new Vue({el:"#contentedit",data:{loading:!0,id:null,languageId:null,typeId:null,typeTitle:null,groupId:null,groupTitle:null,title:null,excerpt:null,state:"new",blocks:[],regions:[],editors:[],categories:[],tags:[],useBlocks:!1,useCategory:!1,useTags:!1,usePrimaryImage:!0,useExcerpt:... |
<vulnerable_code> confirmIcon: "fas fa-trash",
confirmText: piranha.resources.texts.delete,
onConfirm: function () {
fetch(piranha.baseUrl + "manager/api/content/delete/" + id)
.then(function (response) { return response.json(); })
... |
<vulnerable_code>piranha.contentlist=new Vue({el:"#contentlist",data:{loading:!0,group:null,items:[],types:[]},methods:{bind:function(n){this.group=n.group,this.types=n.types,this.items=n.items.map(function(t){var e=n.types.find(function(n){return n.id===t.typeId});return t.type=e.title||t.typeId,t})},load:function(n){... |
<vulnerable_code> var defaultOptions = {
paramName: 'Uploads',
url: piranha.baseUrl + "manager/api/media/upload",
thumbnailWidth: 70,
thumbnailHeight: 70,
previewsContainer: selector + " .media-list",
},
strLength: function (str) {
retur... |
<vulnerable_code>
fetch(piranha.baseUrl + "manager/api/media/move/" + (folderId || ""), {
method: "POST",
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(selections)
})
.then(fun... |
<vulnerable_code>Vue.component("folder-item",{props:["item","selected"],template:'\n<li class="dd-item expanded" :class="{ active: item.id === selected, expanded: item.isExpanded || item.items.length === 0 }" :data-id="item.id">\n <a v-if="!item.edit" class="droppable" v-on:click.prevent="piranha.media.load(item.id)... |
<vulnerable_code>Vue.prototype.eventBus=new Vue,piranha.accessibility=new function(){"use strict";var e=this;e.focus=null,e.removeBlock=function(e){var t=$(":focus").parents(".block");if(1===t.length){if(tinymce){var i=tinymce.activeEditor;i&&i.inline&&i.destroy()}t.find(".block-remove").click()}},$(document).on("show.... |
<vulnerable_code>
fetch(route, {
method: "post",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(model)
})
.then(function (response) { return response.json(); })
revert:... |
<vulnerable_code>piranha.pageedit=new Vue({el:"#pageedit",data:{loading:!0,id:null,siteId:null,parentId:null,originalId:null,sortOrder:0,typeId:null,title:null,navigationTitle:null,slug:null,metaTitle:null,metaKeywords:null,metaDescription:null,metaIndex:null,metaFollow:null,metaPriority:null,ogTitle:null,ogDescription... |
<vulnerable_code> confirmIcon: "fas fa-trash",
confirmText: piranha.resources.texts.delete,
onConfirm: function () {
fetch(piranha.baseUrl + "manager/api/page/delete/" + id)
.then(function (response) { return response.json(); })
... |
<vulnerable_code>Vue.component("pagecopy-item",{props:["item"],methods:{toggleItem:function(e){e.isExpanded=!e.isExpanded}},template:'\n<li class="dd-item" :class="{ expanded: item.isExpanded || item.items.length === 0 }">\n <div class="sitemap-item expanded">\n <div class="link" :class="{ readonly: item.isCo... |
<vulnerable_code>
fetch(route, {
method: "post",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(model)
})
.then(function (response) { return response.json(); })
revert:... |
<vulnerable_code>piranha.postedit=new Vue({el:"#postedit",data:{loading:!0,id:null,blogId:null,typeId:null,title:null,slug:null,metaTitle:null,metaKeywords:null,metaDescription:null,metaIndex:null,metaFollow:null,metaPriority:null,ogTitle:null,ogDescription:null,ogImage:{id:null,media:null},excerpt:null,published:null,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.