id stringlengths 10 13 | source_dataset stringclasses 1
value | cwe stringclasses 158
values | language stringclasses 10
values | vulnerable_code stringlengths 53 508k | secure_code stringlengths 53 508k | url stringclasses 1
value | repository stringclasses 1
value | commit_hash stringclasses 1
value | timestamp stringclasses 1
value | cvss_score stringclasses 1
value | severity stringclasses 1
value | metadata dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
crossvul_0 | CrossVul | CWE-1021 | go | package controllers
import (
"compress/gzip"
"context"
"crypto/tls"
"html/template"
"net/http"
"net/url"
"time"
"github.com/NYTimes/gziphandler"
"github.com/gophish/gophish/auth"
"github.com/gophish/gophish/config"
ctx "github.com/gophish/gophish/context"
"github.com/gophish/gophish/controllers/api"
log ... | package controllers
import (
"compress/gzip"
"context"
"crypto/tls"
"html/template"
"net/http"
"net/url"
"time"
"github.com/NYTimes/gziphandler"
"github.com/gophish/gophish/auth"
"github.com/gophish/gophish/config"
ctx "github.com/gophish/gophish/context"
"github.com/gophish/gophish/controllers/api"
log ... | crossvul | medium | {
"cwe_description": "Improper Restriction of Rendered UI Layers or Frames - A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements.",
"dataset_source": "CrossVul",
"file_pair_id": "4282_0",
"language_dir": "go"
} | ||||
crossvul_1 | CrossVul | CWE-1021 | go | package middleware
import (
"encoding/json"
"fmt"
"net/http"
"strings"
ctx "github.com/gophish/gophish/context"
"github.com/gophish/gophish/models"
"github.com/gorilla/csrf"
)
// CSRFExemptPrefixes are a list of routes that are exempt from CSRF protection
var CSRFExemptPrefixes = []string{
"/api",
}
// CSRF... | package middleware
import (
"encoding/json"
"fmt"
"net/http"
"strings"
ctx "github.com/gophish/gophish/context"
"github.com/gophish/gophish/models"
"github.com/gorilla/csrf"
)
// CSRFExemptPrefixes are a list of routes that are exempt from CSRF protection
var CSRFExemptPrefixes = []string{
"/api",
}
// CSRF... | crossvul | medium | {
"cwe_description": "Improper Restriction of Rendered UI Layers or Frames - A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements.",
"dataset_source": "CrossVul",
"file_pair_id": "4282_1",
"language_dir": "go"
} | ||||
crossvul_2 | CrossVul | CWE-1021 | php | <?php
/*
* LimeSurvey
* Copyright (C) 2007-2016 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v3 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includ... | <?php
/*
* LimeSurvey
* Copyright (C) 2007-2016 The LimeSurvey Project Team / Carsten Schmitz
* All rights reserved.
* License: GNU/GPL License v3 or later, see LICENSE.php
* LimeSurvey is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includ... | crossvul | medium | {
"cwe_description": "Improper Restriction of Rendered UI Layers or Frames - A web application is expected to place restrictions on whether it is allowed to be rendered within frames, iframes, objects, embed or applet elements.",
"dataset_source": "CrossVul",
"file_pair_id": "1075_0",
"language_dir": "php"
} | ||||
crossvul_3 | CrossVul | CWE-113 | javascript | 'use strict';
const util = require('util');
const net = require('net');
const HTTPParser = process.binding('http_parser').HTTPParser;
const assert = require('assert').ok;
const common = require('_http_common');
const parsers = common.parsers;
const freeParser = common.freeParser;
const debug = common.debug;
const CRLF... | 'use strict';
const util = require('util');
const net = require('net');
const HTTPParser = process.binding('http_parser').HTTPParser;
const assert = require('assert').ok;
const common = require('_http_common');
const parsers = common.parsers;
const freeParser = common.freeParser;
const debug = common.debug;
const CRLF... | crossvul | medium | {
"cwe_description": "Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') - HTTP agents or components may include a web server, load balancer, reverse proxy, web caching proxy, application firewall, web browser, etc.",
"dataset_source": "CrossVul",
"file_pair_id": "5103_0... | ||||
crossvul_4 | CrossVul | CWE-116 | python | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyrigt: (c) 2017, Yanis Guenane <yanis+ansible@gu(...TRUNCATED) | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyrigt: (c) 2017, Yanis Guenane <yanis+ansible@gu(...TRUNCATED) | crossvul | medium | {"cwe_description":"Improper Encoding or Escaping of Output - Improper encoding or escaping can allo(...TRUNCATED) | ||||
crossvul_5 | CrossVul | CWE-116 | python | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Yanis Guenane <yanis+ansible@g(...TRUNCATED) | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Yanis Guenane <yanis+ansible@g(...TRUNCATED) | crossvul | medium | {"cwe_description":"Improper Encoding or Escaping of Output - Improper encoding or escaping can allo(...TRUNCATED) | ||||
crossvul_6 | CrossVul | CWE-116 | python | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansi(...TRUNCATED) | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansi(...TRUNCATED) | crossvul | medium | {"cwe_description":"Improper Encoding or Escaping of Output - Improper encoding or escaping can allo(...TRUNCATED) | ||||
crossvul_7 | CrossVul | CWE-116 | python | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Yanis Guenane <yanis+ansible@g(...TRUNCATED) | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016, Yanis Guenane <yanis+ansible@g(...TRUNCATED) | crossvul | medium | {"cwe_description":"Improper Encoding or Escaping of Output - Improper encoding or escaping can allo(...TRUNCATED) | ||||
crossvul_8 | CrossVul | CWE-116 | python | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2019, Patrick Pichler <ppichler+ansi(...TRUNCATED) | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2019, Patrick Pichler <ppichler+ansi(...TRUNCATED) | crossvul | medium | {"cwe_description":"Improper Encoding or Escaping of Output - Improper encoding or escaping can allo(...TRUNCATED) | ||||
crossvul_9 | CrossVul | CWE-116 | python | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansi(...TRUNCATED) | "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Copyright: (c) 2016-2017, Yanis Guenane <yanis+ansi(...TRUNCATED) | crossvul | medium | {"cwe_description":"Improper Encoding or Escaping of Output - Improper encoding or escaping can allo(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 33