feature: Add SAP HANA Support#6074
Open
zakaria-zoulati wants to merge 3 commits into
Open
Conversation
7e917ee to
9e92d3c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add SAP HANA database support
Adds SAP HANA as a supported target DBMS, including detection, fingerprinting, and full data enumeration.
Changes
enums,settings,dicts,handler,agent,common,dump)queries.xml:||concatenation,LIMIT/OFFSET,DUMMYtable,SYS.*system views for enumeration (tables, columns, schemas, users, privileges, roles)plugins/dbms/hana/package: fingerprinting (viaMAP()andCURRENT_SCHEMA), enumeration, connector (hdbcli), syntax handling (Oracle-style uppercase identifiers)getColumns()UnboundLocalErrorfor uppercase-identifier DBMSes (Oracle-style branch was missing HANA)Testing
Validated end-to-end against a real SAP HANA Express 2.00.088 instance (Docker) using a small vulnerable Flask test app:
--banner,--current-user,--current-db,--is-dba,--dbs,--tables,--columns,--dumpKnown limitations
SLEEP())--is-dbamay under-report for users granted admin via roles rather than direct privilegesProof of concept