Instruction stringclasses 1
value | Input stringlengths 79 33k | Response stringlengths 106 9.29k | __index_level_0__ int64 0 2.83k |
|---|---|---|---|
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_msag IMPLEMENTATION.
METHOD delete_documentation.
DATA: lv_key_s TYPE dokhl-object.
CLEAR lv_key_s.
CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE'
EXPORTING
docu_id = 'NA'
element = iv_message_id
addition = ' '
IMPORTING... | I found vulnerabilities in the line:
```abap
MODIFY t100a FROM ls_t100a.
```
Explanation: Modify only own DB tables.
```abap
MODIFY t100t FROM ls_t100t.
```
Explanation: Modify only own DB tables. | 951 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD delete_report.
DELETE REPORT iv_program ##SUBRC_OK.
ENDMET... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 959 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE sap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any> TYPE any.
CALL FUNCTION 'RS_CORR_... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
```
Explanation: Potential dangerous statement INSERT REPORT.
```abap
ELSE.
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
```
Explanation: Potential dangerous stat... | 970 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE abap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any> TYPE any.
CALL FUNCTION 'RS_CORR... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
```
Explanation: Potential dangerous statement INSERT REPORT.
```abap
ELSE.
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
```
Explanation: Potential dangerous sta... | 975 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_DOCT IMPLEMENTATION.
METHOD read.
DATA: lv_object TYPE dokhl-object.
lv_object = ms_item-obj_name.
CALL FUNCTION 'DOCU_READ'
EXPORTING
id = c_id
langu = mv_language
object = lv_object
typ = c_typ
... | I found vulnerabilities in the line:
```abap
MODIFY dokentry FROM ls_dokentry.
```
Explanation: Modify only own DB tables. | 980 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_object_oriented_base IMPLEMENTATION.
METHOD lif_object_oriented_object~create.
"Subclass responsibility
ASSERT 0 = 1.
ENDMETHOD.
METHOD lif_object_oriented_object~deserialize_source.
TRY.
deserialize_abap_source_new(
is_clskey = is_key
it_sour... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 981 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_object_oriented_class IMPLEMENTATION.
METHOD lif_object_oriented_object~create.
CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
EXPORTING
devclass = iv_package
overwrite = iv_overwrite
CHANGING
class = is_properties
EXCEPTIONS
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 982 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE sap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any> TYPE any.
CALL FUNCTION 'RS_CORR_... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name
```
Explanation: Potential dangerous statement INSERT REPORT. | 984 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_textpool.
READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS.
IF ( sy-subrc = 0 AND lines( it_tpool ) = 1 ) OR lines( it_tpool ) = 0.
RETURN. " no action for includes
ENDIF.
INSERT TEXTPOOL iv_program
FROM it_tpool
LANGUAGE mv_language
STATE 'I'.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL iv_program
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 987 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_MSAG IMPLEMENTATION.
METHOD delete_documentation.
DATA: lv_key_s TYPE dokhl-object.
CLEAR lv_key_s.
CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE'
EXPORTING
docu_id = 'NA'
element = iv_message_id
addition = ' '
IMPORTING... | I found vulnerabilities in the line:
```abap
MODIFY t100a FROM ls_t100a.
```
Explanation: Modify only own DB tables.
```abap
MODIFY t100t FROM ls_t100t.
```
Explanation: Modify only own DB tables. | 1,000 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_texts.
DATA: lv_msg_id TYPE rglif-message_id,
ls_t100 TYPE t100,
lt_t100t TYPE TABLE OF t100t,
lt_t100_texts TYPE tt_t100_texts,
lt_t100u TYPE TABLE OF t100u.
FIELD-SYMBOLS: <ls_t100_text> TYPE ty_t100_texts.
lv_msg_id =... | I found vulnerabilities in the line:
```abap
MODIFY t100t FROM TABLE lt_t100t.
```
Explanation: Modify only own DB tables. | 1,006 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_msag IMPLEMENTATION.
METHOD delete_documentation.
DATA: lv_key_s TYPE dokhl-object.
CLEAR lv_key_s.
CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE'
EXPORTING
docu_id = 'NA'
element = iv_message_id
addition = ' '
IMPORTING... | I found vulnerabilities in the line:
```abap
MODIFY t100a FROM ls_t100a.
```
Explanation: Modify only own DB tables.
```abap
MODIFY t100t FROM ls_t100t.
```
Explanation: Modify only own DB tables. | 1,009 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_SHI5 IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_extension = ms_item-obj_name.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
E... | I found vulnerabilities in the line:
```abap
INSERT ttree_ext FROM ls_extension-header.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM ttrees WHERE extension = ls_extension-header-extension.
```
Explanation: Modify only own DB tables.
```abap
MODIFY ttrees FROM TABLE ls_extension-sequences.
```
Explan... | 1,011 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT lt_udmo_texts INTO ls_udmo_text.
" Does the text already exist? This is the same logic as used
" in the FM SDU_MODEL_PUT
SELECT SINGLE *
FROM dm40t
INTO ls_dm40t
WHERE sprache = ls_udmo_text-sprache
AND dmoid = ls_udmo_text-dmoid
AND as4local = me->mv_activati... | I found vulnerabilities in the line:
```abap
INSERT dm40t FROM ls_dm40t.
```
Explanation: Modify only own DB tables. | 1,020 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD distribute_settings_to_users.
TYPES: ty_char12 TYPE c LENGTH 12.
DATA: lt_abapgit_users TYPE STANDARD TABLE OF ty_char12
WITH NON-UNIQUE DEFAULT KEY,
ls_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings,
li_user_persistence ... | I found vulnerabilities in the line:
```abap
SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname)
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,021 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_TYPE IMPLEMENTATION.
METHOD create.
DATA: lv_progname TYPE reposrc-progname,
lv_typegroup TYPE rsedd0-typegroup.
lv_typegroup = ms_item-obj_name.
CALL FUNCTION 'RS_DD_TYGR_INSERT_SOURCES'
EXPORTING
typegroupname = lv_typeg... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_progname FROM lt_source STATE 'I'.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,029 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_oo_base IMPLEMENTATION.
METHOD lif_oo_object_fnc~create.
ASSERT 0 = 1. "Subclass responsibility
ENDMETHOD.
METHOD lif_oo_object_fnc~deserialize_source.
TRY.
deserialize_abap_source_new(
is_clskey = is_key
it_source = it_source ).
CATCH cx_sy... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,030 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,057 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_textpool.
DATA: lv_cp TYPE program,
lv_clsname TYPE seoclsname,
lt_tpool_ext TYPE ty_tpool_tt,
lt_tpool TYPE textpool_table.
io_xml->read( EXPORTING iv_name = 'TPOOL'
CHANGING cg_data = lt_tpool_ext ).
lt_tpool = read_tpo... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,063 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT it_functions ASSIGNING <ls_func>.
lt_source = mo_files->read_abap( iv_extra = <ls_func>-funcname ).
lv_area = ms_item-obj_name.
CALL FUNCTION 'FUNCTION_EXISTS'
EXPORTING
funcname = <ls_func>-funcname
IMPORTING
include = lv_include
EXCEPTIO... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_include FROM lt_source.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,064 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_textpool.
READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS.
IF ( sy-subrc = 0 AND lines( it_tpool ) = 1 ) OR lines( it_tpool ) = 0.
RETURN. " no action for includes
ENDIF.
INSERT TEXTPOOL ms_item-obj_name
FROM it_tpool
LANGUAGE mv_language
STATE... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL ms_item-obj_name
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,065 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE sap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
CALL FUNCTION 'RS_CORR_INSERT'
EXPORTING
object ... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,066 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF NOT it_tpool[] IS INITIAL.
INSERT TEXTPOOL is_progdir-name
FROM it_tpool
LANGUAGE mv_language
STATE 'I'.
IF sy-subrc <> 0.
_raise 'error from INSERT TEXTPOOL'.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL is_progdir-name
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,067 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_BASE IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,073 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,077 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_TYPE IMPLEMENTATION.
METHOD create.
DATA: lv_progname TYPE reposrc-progname,
lv_typegroup TYPE rsedd0-typegroup.
lv_typegroup = ms_item-obj_name.
CALL FUNCTION 'RS_DD_TYGR_INSERT_SOURCES'
EXPORTING
typegroupname = lv_typeg... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_progname FROM lt_source STATE 'I'.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,096 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,097 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD delete_report.
DELETE REPORT iv_program ##SUBRC_OK.
ENDMET... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,102 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,106 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,151 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,153 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_BASE IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,154 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF it_tpool IS INITIAL.
IF iv_is_include = abap_false OR lv_state = 'A'.
DELETE TEXTPOOL iv_program "Remove initial description from textpool if
LANGUAGE lv_language "original program does not have a textpool
STATE lv_state.
lv_delete = abap_true.
ELSE.
INSERT TEXTPOOL i... | I found vulnerabilities in the line:
```abap
lv_delete = abap_true.
ELSE.
INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in * <-- There is a problem here
FROM it_tpool
LANGUAGE lv_language
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,156 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_textpool.
DATA lv_language TYPE sy-langu.
DATA lv_state TYPE c.
DATA lv_delete TYPE abap_bool.
IF iv_language IS INITIAL.
lv_language = mv_language.
ELSE.
lv_language = iv_language.
ENDIF.
IF lv_language = mv_language.
lv_state = 'I'. "Textpool i... | I found vulnerabilities in the line:
```abap
ENDIF.
ELSE.
INSERT TEXTPOOL iv_program * <-- There is a problem here
FROM it_tpool
LANGUAGE lv_language
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,157 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,167 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_DOCT IMPLEMENTATION.
METHOD constructor.
super->constructor(
is_item = is_item
iv_language = iv_language ).
mi_longtexts = zcl_abapgit_factory=>get_longtexts( ).
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = mi_l... | I found vulnerabilities in the line:
```abap
MODIFY dokentry FROM ls_dokentry.
```
Explanation: Modify only own DB tables. | 1,173 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_tobj IMPLEMENTATION.
METHOD read_extra.
SELECT SINGLE * FROM tddat INTO rs_tobj-tddat WHERE tabname = iv_tabname.
SELECT SINGLE * FROM tvdir INTO rs_tobj-tvdir WHERE tabname = iv_tabname.
CLEAR: rs_tobj-tvdir-gendate, rs_tobj-tvdir-gentime.
SELECT * FROM t... | I found vulnerabilities in the line:
```abap
UPDATE objh SET objtransp = ls_objh-objtransp
```
Explanation: Modify only own DB tables. | 1,192 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE abap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any> TYPE any.
CALL FUNCTION 'RS_CORR... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
```
Explanation: Potential dangerous statement INSERT REPORT.
```abap
ELSE.
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
```
Explanation: Potential dangerous sta... | 1,213 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD zif_abapgit_oo_object_fnc~create.
DATA: lt_vseoattrib TYPE seoo_attributes_r.
FIELD-SYMBOLS: <lv_clsname> TYPE seoclsname.
ASSIGN COMPONENT 'CLSNAME' OF STRUCTURE cg_properties TO <lv_clsname>.
ASSERT sy-subrc = 0.
lt_vseoattrib =... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,221 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_BASE IMPLEMENTATION.
METHOD deserialize_abap_source_new.
DATA: lo_factory TYPE REF TO object,
lo_source TYPE REF TO object,
lo_settings TYPE REF TO object,
lr_settings TYPE REF TO data.
FIELD-SYMBOLS <lg_settings> TYPE any.
"Bu... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,231 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD zif_abapgit_oo_object_fnc~create.
CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
EXPORTING
devclass = iv_package
overwrite = iv_overwrite
CHANGING
class = cg_properties
EXCEPTIONS
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,235 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,236 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_auth IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_fieldname = ms_item-obj_name.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
* looks like "changed by user" is no... | I found vulnerabilities in the line:
```abap
DELETE FROM authx WHERE fieldname = mv_fieldname.
```
Explanation: Modify only own DB tables.
```abap
MODIFY authx FROM ls_authx.
```
Explanation: Modify only own DB tables. | 1,238 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD insert_assignments.
DATA: lt_assignment TYPE STANDARD TABLE OF cls_assignment,
ls_assignment LIKE LINE OF lt_assignment,
ls_value LIKE LINE OF is_avas-values.
LOOP AT is_avas-values INTO ls_value.
CLEAR ls_assignment.
ls_assignment-guid = is_avas-header... | I found vulnerabilities in the line:
```abap
DELETE FROM cls_assignment WHERE guid = is_avas-header-guid.
```
Explanation: Modify only own DB tables.
```abap
INSERT cls_assignment FROM TABLE lt_assignment.
```
Explanation: Modify only own DB tables. | 1,239 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_DIAL IMPLEMENTATION.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null.
ENDMETHOD.
METHOD zif_ab... | I found vulnerabilities in the line:
```abap
INSERT diapar FROM TABLE ls_dialog_module-dia_pars.
```
Explanation: Modify only own DB tables. | 1,240 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_doct IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ).
ENDMETHOD.
METHOD read.
DATA: lv_object TYPE dokhl-object.
lv_object... | I found vulnerabilities in the line:
```abap
MODIFY dokentry FROM ls_dokentry.
```
Explanation: Modify only own DB tables. | 1,241 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_MSAG IMPLEMENTATION.
METHOD delete_documentation.
DATA: lv_key_s TYPE dokhl-object.
CLEAR lv_key_s.
CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE'
EXPORTING
docu_id = 'NA'
element = iv_message_id
addition = ' '
IMPORTING... | I found vulnerabilities in the line:
```abap
MODIFY t100a FROM ls_t100a.
```
Explanation: Modify only own DB tables.
```abap
MODIFY t100t FROM ls_t100t.
```
Explanation: Modify only own DB tables. | 1,248 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_para IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
* looks like "changed by user" is not stored in the database
rv_user = c_user_unknown.
ENDMETHOD.
METHOD zif_abapgit... | I found vulnerabilities in the line:
```abap
MODIFY tpara FROM ls_tpara.
```
Explanation: Modify only own DB tables.
```abap
MODIFY tparat FROM ls_tparat.
```
Explanation: Modify only own DB tables. | 1,250 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_shi5 IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_extension = ms_item-obj_name.
ENDMETHOD.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
... | I found vulnerabilities in the line:
```abap
INSERT ttree_ext FROM ls_extension-header.
```
Explanation: Modify only own DB tables.
```abap
MODIFY ttree_extt FROM TABLE ls_extension-texts.
```
Explanation: Modify only own DB tables. | 1,252 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_SICF IMPLEMENTATION.
METHOD change_sicf.
DATA: lt_icfhndlist TYPE icfhndlist,
lt_existing TYPE TABLE OF icfhandler,
ls_icfserdesc TYPE icfserdesc.
FIELD-SYMBOLS: <ls_existing> LIKE LINE OF lt_existing.
lt_icfhndlist = to_icfhndlist( ... | I found vulnerabilities in the line:
```abap
DELETE FROM icfapplcust
```
Explanation: Modify only own DB tables. | 1,254 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_splo IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE chgname1 FROM tsp1d INTO rv_user
WHERE papart = ms_item-obj_name.
IF sy-subrc <> 0 OR rv_user IS ... | I found vulnerabilities in the line:
```abap
MODIFY tsp1t FROM ls_tsp1t.
```
Explanation: Modify only own DB tables.
```abap
MODIFY tsp1d FROM ls_tsp1d.
```
Explanation: Modify only own DB tables.
```abap
MODIFY tsp0p FROM ls_tsp0p.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tsp1t WHERE papart = ms... | 1,255 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_susc IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ... | I found vulnerabilities in the line:
```abap
INSERT tobc FROM ls_tobc.
```
Explanation: Modify only own DB tables.
```abap
MODIFY tobct FROM ls_tobct.
```
Explanation: Modify only own DB tables. | 1,256 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_suso IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_objectname = ms_item-obj_name.
ENDMETHOD.
METHOD delete_documentation.
DATA:
lv_docu_obj TYPE dokhl-... | I found vulnerabilities in the line:
```abap
DELETE FROM tobj WHERE objct = mv_objectname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tobjt WHERE object = mv_objectname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tactz WHERE brobj = mv_objectname.
```
Explanation: Modify onl... | 1,257 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_tobj IMPLEMENTATION.
METHOD read_extra.
SELECT SINGLE * FROM tddat INTO rs_tobj-tddat WHERE tabname = iv_tabname.
SELECT SINGLE * FROM tvdir INTO rs_tobj-tvdir WHERE tabname = iv_tabname.
CLEAR: rs_tobj-tvdir-gendate, rs_tobj-tvdir-gentime.
SELECT * FROM t... | I found vulnerabilities in the line:
```abap
UPDATE objh SET objtransp = ls_objh-objtransp
```
Explanation: Modify only own DB tables. | 1,261 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_type IMPLEMENTATION.
METHOD zif_abapgit_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD zif_abapgit_object~get_metadata.
rs_metadata = get_metadata( ... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_progname FROM lt_source STATE 'I'.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,264 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_VCLS IMPLEMENTATION.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD zif_abapgit_object~compare_to_remote_version.
CREATE OBJECT ro_comparison_result TYPE zcl_abapgit_comparison_null.
ENDMETHOD.
METHOD zif_aba... | I found vulnerabilities in the line:
```abap
DELETE FROM vcldir WHERE vclname = lv_vclname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM vcldirt WHERE vclname = lv_vclname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM vclstruc WHERE vclname = lv_vclname.
```
Explanation: Modify onl... | 1,268 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,277 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT it_functions ASSIGNING <ls_func>.
lt_source = mo_files->read_abap( iv_extra = <ls_func>-funcname ).
lv_area = ms_item-obj_name.
CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT'
EXPORTING
complete_area = lv_area
IMPORTING
namespace = lv_namespace
group = lv... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_include FROM lt_source.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,283 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_VCLS IMPLEMENTATION.
METHOD check_lock.
DATA:
ls_rstable_key TYPE rstable, " Lock argument for table RSTABLE
lv_argument TYPE eqegraarg.
" Set Values for generic table lock
ls_rstable_key-tabname = iv_tabname.
ls_rstable_key-varkey = iv_a... | I found vulnerabilities in the line:
```abap
DELETE FROM vcldir WHERE vclname = lv_vclname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM vcldirt WHERE vclname = lv_vclname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM vclstruc WHERE vclname = lv_vclname.
```
Explanation: Modify onl... | 1,288 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_splo IMPLEMENTATION.
METHOD zif_abapgit_object~changed_by.
SELECT SINGLE chgname1 FROM tsp1d INTO rv_user
WHERE papart = ms_item-obj_name.
IF sy-subrc <> 0 OR rv_user IS INITIAL.
rv_user = c_user_unknown.
ENDIF.
ENDMETHOD.
METHOD zif_aba... | I found vulnerabilities in the line:
```abap
DELETE FROM tsp1t WHERE papart = ms_item-obj_name.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tsp1d WHERE papart = ms_item-obj_name.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tsp0p WHERE pdpaper = ms_item-obj_name.
```
Explanation: ... | 1,295 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,296 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD distribute_settings_to_users.
DATA: lt_abapgit_users TYPE STANDARD TABLE OF char12
WITH NON-UNIQUE DEFAULT KEY,
ls_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings,
li_user_persistence TYPE REF TO zif_abapgit_persist_user.
... | I found vulnerabilities in the line:
```abap
SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname)
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,305 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_oo_class IMPLEMENTATION.
METHOD lif_oo_object_fnc~create.
CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
EXPORTING
devclass = iv_package
overwrite = iv_overwrite
CHANGING
class = is_properties
EXCEPTIONS
existing ... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,320 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT it_functions ASSIGNING <ls_func>.
lt_source = mo_files->read_abap( iv_extra = <ls_func>-funcname ).
lv_area = ms_item-obj_name.
CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT'
EXPORTING
complete_area = lv_area
IMPORTING
namespace = lv_names... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_include FROM lt_source.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,321 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_oo_base IMPLEMENTATION.
METHOD lif_oo_object_fnc~create.
ASSERT 0 = 1. "Subclass responsibility
ENDMETHOD.
METHOD lif_oo_object_fnc~deserialize_source.
TRY.
deserialize_abap_source_new(
is_clskey = is_key
it_source = it_source ).
CATCH cx_sy... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,322 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_object_type IMPLEMENTATION.
METHOD lif_object~has_changed_since.
rv_changed = abap_true.
ENDMETHOD. "lif_object~has_changed_since
METHOD lif_object~changed_by.
rv_user = c_user_unknown. " todo
ENDMETHOD.
METHOD lif_object~get_metadata.
rs_metadata = get_metadata( )... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_progname FROM lt_source STATE 'I'.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,324 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD distribute_settings_to_users.
DATA: lt_abapgit_users TYPE STANDARD TABLE OF char12
WITH NON-UNIQUE DEFAULT KEY,
ls_user_settings TYPE zif_abapgit_definitions=>ty_s_user_settings,
li_user_persistence TYPE REF TO zif_abapgit_persist_user.
... | I found vulnerabilities in the line:
```abap
SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname)
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,338 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_shi5 IMPLEMENTATION.
METHOD constructor.
super->constructor( is_item = is_item
iv_language = iv_language ).
mv_extension = ms_item-obj_name.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = c_user_unknown.
E... | I found vulnerabilities in the line:
```abap
INSERT ttree_ext FROM ls_extension-header.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM ttrees WHERE extension = ls_extension-header-extension.
```
Explanation: Modify only own DB tables.
```abap
MODIFY ttrees FROM TABLE ls_extension-sequences.
```
Explan... | 1,339 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF lines( <lg_del> ) > 0.
DELETE (iv_name) FROM TABLE <lg_del>.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error deleting { lines( <lg_del> ) } records from table { iv_name }| ).
ENDIF.
``` | I found vulnerabilities in the line:
```abap
DELETE (iv_name) FROM TABLE <lg_del>.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,342 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF lines( <lg_ins> ) > 0.
INSERT (iv_name) FROM TABLE <lg_ins>.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error inserting { lines( <lg_ins> ) } records into table { iv_name }| ).
ENDIF.
``` | I found vulnerabilities in the line:
```abap
INSERT (iv_name) FROM TABLE <lg_ins>.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,343 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE sap_bool,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any> TYPE any.
CALL FUNCTION 'RS_CORR_... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,347 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF is_progdir-varcl = space AND ls_progdir_new = abap_true.
* function module UPDATE_PROGDIR does not update VARCL
UPDATE progdir SET varcl = is_progdir-varcl
WHERE name = ls_progdir_new-name
AND state = ls_progdir_new-state.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
UPDATE progdir SET varcl = is_progdir-varcl
```
Explanation: Modify only own DB tables. | 1,349 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_oo_base IMPLEMENTATION.
METHOD lif_oo_object_fnc~create.
ASSERT 0 = 1. "Subclass responsibility
ENDMETHOD.
METHOD lif_oo_object_fnc~deserialize_source.
TRY.
deserialize_abap_source_new(
is_clskey = is_key
it_source = it_source ).
CATCH cx_sy... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,357 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_doct IMPLEMENTATION.
METHOD constructor.
super->constructor(
is_item = is_item
iv_language = iv_language ).
mi_longtexts = zcl_abapgit_factory=>get_longtexts( ).
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
rv_user = mi_l... | I found vulnerabilities in the line:
```abap
MODIFY dokentry FROM ls_dokentry.
```
Explanation: Modify only own DB tables. | 1,365 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT lt_t100 ASSIGNING <ls_t100>.
DELETE lt_before WHERE msgnr = <ls_t100>-msgnr.
MODIFY t100 FROM <ls_t100>.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ).
ENDIF.
CLEAR ls_t100u.
MOVE-CORRESPONDING <ls_t100> TO ls_t100u ##ENH_OK.
ls_t100u-name ... | I found vulnerabilities in the line:
```abap
MODIFY t100 FROM <ls_t100>.
```
Explanation: Modify only own DB tables.
```abap
MODIFY t100u FROM ls_t100u.
```
Explanation: Modify only own DB tables. | 1,370 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_msag IMPLEMENTATION.
METHOD delete_documentation.
DATA: lv_key_s TYPE dokhl-object.
CLEAR lv_key_s.
CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE'
EXPORTING
docu_id = 'NA'
element = iv_message_id
addition = ' '
IMPORTING... | I found vulnerabilities in the line:
```abap
MODIFY t100a FROM ls_t100a.
```
Explanation: Modify only own DB tables.
```abap
MODIFY t100t FROM ls_t100t.
```
Explanation: Modify only own DB tables. | 1,371 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT it_keys ASSIGNING <ls_key>.
SELECT * FROM (c_tabname)
APPENDING TABLE rt_contents
WHERE value = <ls_key> AND
type = iv_type.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
LOOP AT it_keys ASSIGNING <ls_key>.
SELECT * FROM (c_tabname) * <-- There is a problem here
APPENDING TABLE rt_contents
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,387 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS lcl_oo_base IMPLEMENTATION.
METHOD lif_oo_object_fnc~create.
ASSERT 0 = 1. "Subclass responsibility
ENDMETHOD.
METHOD lif_oo_object_fnc~deserialize_source.
TRY.
deserialize_abap_source_new(
is_clskey = is_key
it_source = it_source ).
CATCH cx_sy... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE it_descriptions.
```
Explanation: Modify only own DB tables. | 1,392 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_program.
DATA: lv_exists TYPE abap_bool,
lt_empty_src LIKE it_source,
lv_progname TYPE reposrc-progname,
ls_tpool LIKE LINE OF it_tpool,
lv_title TYPE rglif-title,
ls_progdir_new TYPE progdir.
FIELD-SYMBOLS: <lg_any>... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,399 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,412 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OO_CLASS IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD determine_method_include.
DATA: ls_mtdkey TYPE seocpdkey.
... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,470 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _confirm_messages.
" Temporarily suppress certain messages that are not relevant for installation
CONSTANTS c_toolflag_set TYPE funcname VALUE 'SCWG_TOOLFLAG_SET'.
" Set tool flag to avoid messages
TRY.
CALL FUNCTION c_toolflag_set.
CATCH cx_root ##NO_HANDLER.
ENDTRY.
... | I found vulnerabilities in the line:
```abap
obj_type = 'CLAS' ).
INSERT clmcus FROM customizing ##SUBRC_OK. * <-- There is a problem here
```
Explanation: Modify only own DB tables.
```abap
customizing-obj_type = 'INTF'.
INSERT clmcus FROM customizing ##SUBRC_OK. * <-- There is a problem here
```
Explanation: Modify o... | 1,471 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _restore_messages.
DELETE FROM clmcus WHERE username = sy-uname ##SUBRC_OK.
INSERT clmcus FROM TABLE clmcus_backup ##SUBRC_OK.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM clmcus WHERE username = sy-uname ##SUBRC_OK.
```
Explanation: Modify only own DB tables.
```abap
INSERT clmcus FROM TABLE clmcus_backup ##SUBRC_OK.
```
Explanation: Modify only own DB tables. | 1,472 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT sotr_head ASSIGNING FIELD-SYMBOL(<sotr_head>).
DELETE FROM sotr_use WHERE concept = <sotr_head>-concept.
CALL FUNCTION 'BTFR_DELETE_SINGLE_TEXT'
EXPORTING
concept = <sotr_head>-concept
corr_num = install_data-transport
use_korrnum_immedi... | I found vulnerabilities in the line:
```abap
DELETE FROM sotr_use WHERE concept = <sotr_head>-concept.
```
Explanation: Modify only own DB tables. | 1,473 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT sotr_head ASSIGNING FIELD-SYMBOL(<sotr_head>).
DELETE FROM sotr_useu WHERE concept = <sotr_head>-concept.
CALL FUNCTION 'BTFR_DELETE_SINGLE_TEXT'
EXPORTING
concept = <sotr_head>-concept
corr_num = install_data-transport
use_korrnum_immed... | I found vulnerabilities in the line:
```abap
DELETE FROM sotr_useu WHERE concept = <sotr_head>-concept.
```
Explanation: Modify only own DB tables. | 1,474 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abappm_persist_apm IMPLEMENTATION.
METHOD explain_key.
SPLIT key AT ':' INTO DATA(key_type) DATA(name) DATA(extra).
CASE key_type.
WHEN zif_abappm_persist_apm=>c_key_type-package.
result-key_type = 'Package'.
result-description = lcl_persist_utils=>get_... | I found vulnerabilities in the line:
```abap
DELETE FROM (zif_abappm_persist_apm=>c_tabname) WHERE keys = @key.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
```abap
ELSE.
SELECT * FROM (zif_abappm_persist_apm=>c_tabname) INTO TABLE @db_entries * <-- There is a problem here
... | 1,475 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF filter IS INITIAL.
SELECT * FROM (zif_abappm_persist_apm=>c_tabname) INTO TABLE @db_entries
WHERE timestamp BETWEEN @from AND @to
ORDER BY PRIMARY KEY ##SUBRC_OK.
ELSE.
``` | I found vulnerabilities in the line:
```abap
IF filter IS INITIAL.
SELECT * FROM (zif_abappm_persist_apm=>c_tabname) INTO TABLE @db_entries * <-- There is a problem here
WHERE timestamp BETWEEN @from AND @to
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,476 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF sy-subrc <> 0.
INSERT (zif_abappm_persist_apm=>c_tabname) FROM @db_entry.
IF sy-subrc <> 0.
zcx_abappm_error=>raise( |Error saving { key }| ).
ENDIF.
``` | I found vulnerabilities in the line:
```abap
INSERT (zif_abappm_persist_apm=>c_tabname) FROM @db_entry.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,477 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_table_comparison IMPLEMENTATION.
METHOD zif_table_comparison~compare.
TYPES: BEGIN OF ty_change_indicator,
chind TYPE bu_chind, " change indicator
END OF ty_change_indicator.
DATA:
change_indicator TYPE ty_change_indicator,
structure_name_... | I found vulnerabilities in the line:
```abap
SELECT * FROM (table_name) INTO TABLE @<internal_table_db>. ##TODO
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,478 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_table_comparison IMPLEMENTATION.
METHOD zif_table_comparison~compare.
TYPES: BEGIN OF ty_change_indicator,
chind TYPE bu_chind, " change indicator
END OF ty_change_indicator.
DATA:
change_indicator TYPE ty_change_indicator,
stru... | I found vulnerabilities in the line:
```abap
SELECT * FROM (table_name) INTO TABLE @<internal_table_db>. ##TODO
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,479 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_table_comparison IMPLEMENTATION.
METHOD zif_table_comparison~compare.
TYPES: BEGIN OF ty_change_indicator,
chind TYPE bu_chind, " change indicator
END OF ty_change_indicator.
DATA:
change_indicator TYPE ty_change_indicator,
stru... | I found vulnerabilities in the line:
```abap
SELECT * FROM (table_name) INTO TABLE @<internal_table_db>.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,480 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_table_comparison IMPLEMENTATION.
METHOD zif_table_comparison~compare.
TYPES: BEGIN OF ty_change_indicator,
chind TYPE bu_chind, " change indicator
END OF ty_change_indicator.
DATA:
change_indicator TYPE ty_change_indicator,
stru... | I found vulnerabilities in the line:
```abap
SELECT * FROM (table_name) INTO TABLE @<internal_table_db>. ##TODO
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,481 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_table_comparison IMPLEMENTATION.
METHOD zif_table_comparison~compare.
TYPES: BEGIN OF ty_change_indicator,
chind TYPE bu_chind, " change indicator
END OF ty_change_indicator.
DATA:
change_indicator TYPE ty_change_indicator,
structure_name_... | I found vulnerabilities in the line:
```abap
SELECT * FROM (table_name) INTO TABLE @<internal_table_db>. ##TODO
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,482 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CASE e_salv_function.
WHEN 'TOC_C'.
LOOP AT alv_table->get_selections( )->get_selected_rows( ) REFERENCE INTO selected_row.
on_link_click( row = selected_row->* column = CONV #( c_toc_columns-create_toc ) ).
ENDLOOP.
WHEN 'TOC_CR'.
LOOP AT alv_table->get_selections( )->get_selected... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'STMS'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 1,483 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD show_transport_details.
DATA batch_input TYPE TABLE OF bdcdata.
APPEND VALUE #( program = 'RDDM0001' dynpro = '0200' dynbegin = 'X' ) TO batch_input.
APPEND VALUE #( fnam = 'BDC_OKCODE' fval = '=TSSN' ) TO batch_input.
APPEND VALUE #( program = 'RDDM0001' dynpro = '0200' dynbegin = 'X' ) ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'SE01' USING batch_input OPTIONS FROM call_options.
```
Explanation: Add an authority check to CALL TRANSACTION. | 1,484 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD show_transport_details.
DATA batch_input TYPE TABLE OF bdcdata.
APPEND VALUE #( program = 'RDDM0001' dynpro = '0200' dynbegin = 'X' ) TO batch_input.
APPEND VALUE #( fnam = 'BDC_OKCODE' fval = '=TSSN' ) TO batch_input.
APPEND VALUE #( program = 'RDDM0001' dynpro = '0200' dynbegin = 'X' ) ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'SE01' USING batch_input MODE 'E' UPDATE 'A'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 1,491 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_4_FPM_MONSTERSEARCH_FEEDER IMPLEMENTATION.
METHOD if_fpm_guibb_search~check_config ##NEEDED.
ENDMETHOD.
METHOD if_fpm_guibb_search~flush ##NEEDED.
ENDMETHOD.
METHOD if_fpm_guibb_search~get_data.
*--------------------------------------------------------------------*
* L... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,497 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_4_FPM_MONSTERSEARCH_FEEDER IMPLEMENTATION.
method IF_FPM_GUIBB_SEARCH~CHECK_CONFIG.
endmethod.
method IF_FPM_GUIBB_SEARCH~FLUSH.
endmethod.
method IF_FPM_GUIBB_SEARCH~GET_DATA.
*--------------------------------------------------------------------*
* Listing 12.08 : Get... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,498 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD set_filesize.
DATA: filesize_param TYPE wwwparams.
filesize_param-relid = mime_key-relid.
filesize_param-objid = mime_key-objid.
filesize_param-name = 'filesize'.
filesize_param-value = size.
MODIFY wwwparams FROM filesize_param.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
MODIFY wwwparams FROM filesize_param.
```
Explanation: Modify only own DB tables. | 1,499 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT cluster_objects REFERENCE INTO DATA(object).
ASSIGN object->*-value->* TO <con>.
MODIFY (object->*-name) FROM TABLE <con>.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
MODIFY (object->*-name) FROM TABLE <con>.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,500 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.