Dataset Viewer
Auto-converted to Parquet Duplicate
cwe_id
stringclasses
51 values
cwe_description
stringclasses
51 values
language
stringclasses
10 values
vulnerable_code
stringlengths
54
436k
fixed_code
stringlengths
54
436k
file_pair_id
stringlengths
3
7
source
stringclasses
1 value
language_dir
stringclasses
13 values
cwe_number
int64
20
1.02k
CWE-1021
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.
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 ...
4282_0
crossvul
go
1,021
CWE-1021
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.
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...
4282_1
crossvul
go
1,021
CWE-1021
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.
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...
1075_0
crossvul
php
1,021
CWE-113
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.
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...
5103_0
crossvul
js
113
CWE-116
"Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to chan(...TRUNCATED)
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)
4295_1
crossvul
py
116
CWE-116
"Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to chan(...TRUNCATED)
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)
4295_2
crossvul
py
116
CWE-116
"Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to chan(...TRUNCATED)
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)
4295_3
crossvul
py
116
CWE-116
"Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to chan(...TRUNCATED)
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)
4295_4
crossvul
py
116
CWE-116
"Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to chan(...TRUNCATED)
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)
4295_5
crossvul
py
116
CWE-116
"Improper Encoding or Escaping of Output - Improper encoding or escaping can allow attackers to chan(...TRUNCATED)
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)
4295_6
crossvul
py
116
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
-