Exploit database

GH-db984ad2f3fbc8e39f8dce7979a818cb

yifanzhg/cve-2023-45158

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-45158

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files17

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

web2py/gluon/packages/dal/pydal/adapters/teradata.py

Python · 799 bytes
from . import adapters
from .base import SQLAdapter


@adapters.register_for("teradata")
class Teradata(SQLAdapter):
    dbengine = ""
    drivers = ("pyodbc",)

    def _initialize_(self):
        super(Teradata, self)._initialize_()
        self.ruri = self.uri.split("://", 1)[1]

    def connector(self):
        return self.driver.connect(self.ruri, **self.driver_args)

    def close(self):
        # Teradata does not implicitly close off the cursor
        # leading to SQL_ACTIVE_STATEMENTS limit errors
        self.cursor.close()
        super(Teradata, self).close()

    def lastrowid(self, table):
        # Teradata cannot retrieve the lastrowid for an IDENTITY Column
        # and they are not sequential anyway.
        # Similar to the NullCursor class, return 1
        return 1