cwe_id stringclasses 6
values | cwe_description stringclasses 6
values | language stringclasses 8
values | vulnerable_code stringlengths 57 436k | fixed_code stringlengths 57 436k | file_pair_id stringlengths 3 7 | source stringclasses 1
value | language_dir stringclasses 9
values |
|---|---|---|---|---|---|---|---|
CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operations are intended to take place within a restricted directory. | python | #!/usr/bin/python -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | #!/usr/bin/python -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | 115_1 | crossvul | py |
CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operations are intended to take place within a restricted directory. | python | #!/usr/bin/python -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | #!/usr/bin/python -tt
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | 116_0 | crossvul | py |
CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operations are intended to take place within a restricted directory. | python | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# CherryMusic - a standalone music server
# Copyright (c) 2012 - 2015 Tom Wallroth & Tilman Boerner
#
# Project page:
# http://fomori.org/cherrymusic/
# Sources on github:
# http://github.com/devsnd/cherrymusic/
#
# CherryMusic is based on
# jPlayer (GPL/MIT licens... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# CherryMusic - a standalone music server
# Copyright (c) 2012 - 2015 Tom Wallroth & Tilman Boerner
#
# Project page:
# http://fomori.org/cherrymusic/
# Sources on github:
# http://github.com/devsnd/cherrymusic/
#
# CherryMusic is based on
# jPlayer (GPL/MIT licens... | 1777_0 | crossvul | py |
CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operations are intended to take place within a restricted directory. | python | # -*- coding: utf-8 -*-
'''
A few checks to make sure the environment is sane
'''
from __future__ import absolute_import
# Original Author: Jeff Schroeder <jeffschroeder@computer.org>
# Import python libs
import os
import re
import sys
import stat
import errno
import socket
import logging
# Import third party libs
t... | # -*- coding: utf-8 -*-
'''
A few checks to make sure the environment is sane
'''
from __future__ import absolute_import
# Original Author: Jeff Schroeder <jeffschroeder@computer.org>
# Import python libs
import os
import re
import sys
import stat
import errno
import socket
import logging
# Import third party libs
t... | 2815_0 | crossvul | py |
CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operations are intended to take place within a restricted directory. | python | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | 3538_1 | crossvul | py |
CWE-22 | "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operatio(...TRUNCATED) | python | "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represe(...TRUNCATED) | "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represe(...TRUNCATED) | 3539_1 | crossvul | py |
CWE-22 | "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operatio(...TRUNCATED) | python | "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represe(...TRUNCATED) | "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represe(...TRUNCATED) | 3679_1 | crossvul | py |
CWE-22 | "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operatio(...TRUNCATED) | python | "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represe(...TRUNCATED) | "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2010 United States Government as represe(...TRUNCATED) | 3680_1 | crossvul | py |
CWE-22 | "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operatio(...TRUNCATED) | python | "\"\"\" Regenerate golden-master \"\"\"\nimport shutil\nfrom pathlib import Path\n\nfrom typer.testi(...TRUNCATED) | "\"\"\" Regenerate golden-master \"\"\"\nimport shutil\nfrom pathlib import Path\n\nfrom typer.testi(...TRUNCATED) | 4110_0 | crossvul | py |
CWE-22 | "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - Many file operatio(...TRUNCATED) | python | "\"\"\" Generate modern Python clients from OpenAPI \"\"\"\nfrom __future__ import annotations\n\nim(...TRUNCATED) | "\"\"\" Generate modern Python clients from OpenAPI \"\"\"\nfrom __future__ import annotations\n\nim(...TRUNCATED) | 4110_1 | crossvul | py |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 11