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 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.
497
Find vulnerabilities in this ABAP code snippet.
```abap CLASS lcl_object_oriented_class IMPLEMENTATION. METHOD lif_object_oriented_object_fnc~create. CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE' EXPORTING devclass = iv_package overwrite = iv_overwrite CHANGING class = is_properties EXCEPTION...
I found vulnerabilities in the line: ```abap INSERT TEXTPOOL lv_cp ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
498
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.
499
Find vulnerabilities in this ABAP code snippet.
```abap CLASS lcl_object_oriented_base IMPLEMENTATION. METHOD lif_object_oriented_object_fnc~create. ASSERT 0 = 1. "Subclass responsibility ENDMETHOD. METHOD lif_object_oriented_object_fnc~deserialize_source. TRY. deserialize_abap_source_new( is_clskey = is_key it_s...
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.
500
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 ELSE. INSERT REPORT is_progdir-name * <-- There is a problem here FROM it_source ``` Explanation: Potential dangerous statement INSERT REPORT.
503
Find vulnerabilities in this ABAP code snippet.
```abap METHOD deserialize_textpool. DATA lv_language TYPE langu. IF iv_language IS INITIAL. lv_language = mv_language. ELSE. lv_language = iv_language. ENDIF. READ TABLE it_tpool WITH KEY id = 'R' TRANSPORTING NO FIELDS. IF ( sy-subrc = 0 AND lines( it_tpool ) = 1 ) OR lines( it_tpool...
I found vulnerabilities in the line: ```abap INSERT TEXTPOOL iv_program ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
506
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update. DATA lv_data LIKE iv_data. lv_data = validate_and_unprettify_xml( iv_data ). lock( iv_type = iv_type iv_value = iv_value ). UPDATE (c_tabname) SET data_str = lv_data WHERE type = iv_type AND value = iv_value. IF sy-subrc <> 0. lcx_exception=>rais...
I found vulnerabilities in the line: ```abap UPDATE (c_tabname) SET data_str = lv_data ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
511
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. INSERT TEXTPOOL iv_program * <-- There is a problem here FROM it_tpool LANGUAGE lv_language ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
533
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 3. " For cases that standard function does not handle (like FUGR), " we save active and inactive version of source with the given PROGRAM TYPE. " Without the active version, the code will not be visible in case of activation errors. INSERT REPORT is_progdir-name FROM it_source ...
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 PROGRAM TYPE is_progdir-subc. INSERT REPORT is_progdir-name * <-- There is a problem here FROM it_source ``` Explanation: Poten...
534
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. zcx_abapgit_exception=>raise( 'Error from INSERT TEXTPOOL' ). ENDIF. ```
I found vulnerabilities in the line: ```abap INSERT TEXTPOOL is_progdir-name ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
535
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, lo_user_persistence TYPE REF TO zcl_abapgit_persistence_user. ...
I found vulnerabilities in the line: ```abap SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname) ``` Explanation: Potential dangerous statement Dynamic SQL.
536
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...
538
Find vulnerabilities in this ABAP code snippet.
```abap CLASS lcl_object_oriented_class IMPLEMENTATION. METHOD lif_object_oriented_object_fnc~create. CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE' EXPORTING devclass = iv_package overwrite = iv_overwrite CHANGING class = is_properties EXCEPTION...
I found vulnerabilities in the line: ```abap INSERT TEXTPOOL lv_cp ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
543
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.
562
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.
574
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0. DELETE FROM tpara WHERE paramid = lv_paramid. DELETE FROM tparat WHERE paramid = lv_paramid. IF sy-subrc = 0. CALL FUNCTION 'RS_TREE_OBJECT_PLACEMENT' EXPORTING object = lv_paramid operation = 'DELETE' type = 'CR'. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tpara WHERE paramid = lv_paramid. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM tparat WHERE paramid = lv_paramid. ``` Explanation: Modify only own DB tables.
576
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_para IMPLEMENTATION. METHOD unlock. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING mode = 'FREE' object = iv_paramid object_class = 'PARA'. ENDMETHOD. METHOD zif_abapgit_object~changed_by. * looks like "changed b...
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.
577
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT lt_sots ASSIGNING <ls_sots>. " Remove any usage to ensure deletion, see function module BTFR_CHECK DELETE FROM sotr_useu WHERE concept = <ls_sots>-header-concept. CALL FUNCTION 'BTFR_DELETE_SINGLE_TEXT' EXPORTING concept = <ls_sots>-header-concept flag_string ...
I found vulnerabilities in the line: ```abap DELETE FROM sotr_useu WHERE concept = <ls_sots>-header-concept. ``` Explanation: Modify only own DB tables.
580
Find vulnerabilities in this ABAP code snippet.
```abap 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_typegroup ddtext = iv_ddtext corrnum ...
I found vulnerabilities in the line: ```abap UPDATE progdir SET uccheck = abap_true ``` Explanation: Modify only own DB tables.
583
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.
584
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_ABAPGIT_OBJECT_WDCA IMPLEMENTATION. METHOD check. FIELD-SYMBOLS: <ls_message> TYPE LINE OF cts_messages. LOOP AT it_messages ASSIGNING <ls_message> WHERE severity = 'E'. zcx_abapgit_exception=>raise( <ls_message>-text ). ENDLOOP. ENDMETHOD. METHOD delete. ...
I found vulnerabilities in the line: ```abap UPDATE wdy_config_appl ``` Explanation: Modify only own DB tables.
585
Find vulnerabilities in this ABAP code snippet.
```abap IF lt_config_appt IS NOT INITIAL. DELETE FROM wdy_config_appt WHERE config_id = ls_outline-config_id AND config_type = ls_outline-config_type AND config_var = ls_outline-config_var. MODIFY wdy_config_appt FROM TABLE lt_config_appt. IF sy-subrc <> 0. zcx_abapgit_exception=>rai...
I found vulnerabilities in the line: ```abap DELETE FROM wdy_config_appt ``` Explanation: Modify only own DB tables. ```abap MODIFY wdy_config_appt FROM TABLE lt_config_appt. ``` Explanation: Modify only own DB tables.
586
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_ABAPGIT_OBJECT_WDCC IMPLEMENTATION. METHOD zif_abapgit_object~changed_by. DATA: ls_outline TYPE wdy_cfg_outline_data, ls_config_key TYPE wdy_config_key. ls_config_key-config_id = ms_item-obj_name+0(32). ls_config_key-config_type = ms_item-obj_name+32(2). ls...
I found vulnerabilities in the line: ```abap DELETE FROM wdy_config_data ``` Explanation: Modify only own DB tables. ```abap MODIFY wdy_config_data FROM ls_orig_config. ``` Explanation: Modify only own DB tables.
587
Find vulnerabilities in this ABAP code snippet.
```abap IF lt_otr_texts IS NOT INITIAL. DELETE FROM wdy_config_compt WHERE config_id = ls_orig_config-config_id AND config_type = ls_orig_config-config_type AND config_var = ls_orig_config-config_var. MODIFY wdy_config_compt FROM TABLE lt_otr_texts. IF sy-subrc <> 0. zcx_abapgit_exce...
I found vulnerabilities in the line: ```abap DELETE FROM wdy_config_compt ``` Explanation: Modify only own DB tables. ```abap MODIFY wdy_config_compt FROM TABLE lt_otr_texts. ``` Explanation: Modify only own DB tables.
588
Find vulnerabilities in this ABAP code snippet.
```abap IF lt_config_datt IS NOT INITIAL. DELETE FROM wdy_config_datt WHERE config_id = ls_orig_config-config_id AND config_type = ls_orig_config-config_type AND config_var = ls_orig_config-config_var. MODIFY wdy_config_datt FROM TABLE lt_config_datt. IF sy-subrc <> 0. zcx_abapgit_ex...
I found vulnerabilities in the line: ```abap DELETE FROM wdy_config_datt ``` Explanation: Modify only own DB tables. ```abap MODIFY wdy_config_datt FROM TABLE lt_config_datt. ``` Explanation: Modify only own DB tables.
589
Find vulnerabilities in this ABAP code snippet.
```abap METHOD read. SELECT SINGLE data_str FROM (c_tabname) INTO rv_data WHERE type = iv_type AND value = iv_value. "#EC CI_SUBRC IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_abapgit_not_found. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap SELECT SINGLE data_str FROM (c_tabname) INTO rv_data ``` Explanation: Potential dangerous statement Dynamic SQL.
600
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_subrc = 0. " it cannot delete table with data without asking CREATE DATA lr_data TYPE (lv_objname). ASSIGN lr_data->* TO <lg_data>. SELECT SINGLE * FROM (lv_objname) INTO <lg_data>. IF sy-subrc = 0. lv_no_ask = abap_false. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT SINGLE * FROM (lv_objname) INTO <lg_data>. ``` Explanation: Potential dangerous statement Dynamic SQL.
602
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...
603
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 ELSE. INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in * <-- There is a problem here FROM it_tpool ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
606
Find vulnerabilities in this ABAP code snippet.
```abap METHOD deserialize_textpool. DATA lv_language TYPE 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 in m...
I found vulnerabilities in the line: ```abap ENDIF. INSERT TEXTPOOL iv_program * <-- There is a problem here FROM it_tpool LANGUAGE lv_language ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
607
Find vulnerabilities in this ABAP code snippet.
```abap METHOD add. * todo, change instantiation back to private? make sure this class is a singleton? DATA ls_table TYPE ty_content. ls_table-type = iv_type. ls_table-value = iv_value. ls_table-data_str = iv_data. INSERT (c_tabname) FROM ls_table. "#EC CI_SUBRC ASSERT sy...
I found vulnerabilities in the line: ```abap INSERT (c_tabname) FROM ls_table. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
615
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>. "#EC CI_SUBRC IF sy-subrc <> 0. zcx_abapgit_exception=>raise( 'MSAG: Table T100 modify failed' ). ENDIF. CLEAR ls_t100u. MOVE-CORRESPONDING <ls_t100> TO...
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.
626
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_msag IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. METHOD zif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM t100a INTO rv_user WHERE arbgb = ms_item-obj_name. "#EC CI_GENBUFF ...
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.
627
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.
629
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT lt_t100_texts ASSIGNING <ls_t100_text>. "check if message exists READ TABLE lt_t100u TRANSPORTING NO FIELDS WITH KEY arbgb = lv_msg_id msgnr = <ls_t100_text>-msgnr BINARY SEARCH. CHECK sy-subrc = 0. "if original message doesn't exist no translations added MOVE-CORRESPONDING <ls_t100_t...
I found vulnerabilities in the line: ```abap MODIFY t100 FROM ls_t100. ``` Explanation: Modify only own DB tables.
630
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 stat...
633
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 stat...
640
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.
649
Find vulnerabilities in this ABAP code snippet.
```abap 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_typegroup ddtext = iv_ddtext corrnum ...
I found vulnerabilities in the line: ```abap UPDATE progdir SET uccheck = abap_true ``` Explanation: Modify only own DB tables.
656
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.
657
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.
662
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.
665
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.
680
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.
683
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...
685
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...
687
Find vulnerabilities in this ABAP code snippet.
```abap CLASS lcl_task_definition IMPLEMENTATION. METHOD load. DATA lo_taskdef TYPE REF TO lcl_task_definition. CREATE OBJECT lo_taskdef. lo_taskdef->mv_objid = iv_objid. lo_taskdef->supply_instance( ). ri_result = lo_taskdef. ENDMETHOD. METHOD check_subrc_for. IF sy-s...
I found vulnerabilities in the line: ```abap INSERT hrsobject FROM ls_hrsobject. ``` Explanation: Modify only own DB tables.
692
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_oo_base IMPLEMENTATION. METHOD zif_abapgit_oo_object_fnc~create. ASSERT 0 = 1. "Subclass responsibility ENDMETHOD. METHOD zif_abapgit_oo_object_fnc~deserialize_source. TRY. deserialize_abap_source_new( is_clskey = is_key it_source = 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.
693
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update_cs_number_of_methods. " Indirect access to keep downward compatibility DATA lr_cache_entry TYPE REF TO data. FIELD-SYMBOLS: <ls_cache_entry> TYPE any, <field> TYPE any. CREATE DATA lr_cache_entry TYPE ('SEO_CS_CACHE'). ASSIGN lr_cache_entry->* TO <ls_c...
I found vulnerabilities in the line: ```abap MODIFY ('SEO_CS_CACHE') FROM <ls_cache_entry>. ``` Explanation: Modify only own DB tables.
695
Find vulnerabilities in this ABAP code snippet.
```abap METHOD delete. lock( iv_type = iv_type iv_value = iv_value ). DELETE FROM (c_tabname) WHERE type = iv_type AND value = iv_value. IF sy-subrc <> 0. _raise 'DB Delete failed'. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap DELETE FROM (c_tabname) ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
733
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update. validate_xml( iv_data ). lock( iv_type = iv_type iv_value = iv_value ). UPDATE (c_tabname) SET data_str = iv_data WHERE type = iv_type AND value = iv_value. IF sy-subrc <> 0. _raise 'DB update failed'. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap UPDATE (c_tabname) SET data_str = iv_data ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
734
Find vulnerabilities in this ABAP code snippet.
```abap METHOD modify. DATA: ls_content TYPE ty_content. lock( iv_type = iv_type iv_value = iv_value ). ls_content-type = iv_type. ls_content-value = iv_value. ls_content-data_str = iv_data. MODIFY (c_tabname) FROM ls_content. IF sy-subrc <> 0. _raise 'DB modify failed'. ...
I found vulnerabilities in the line: ```abap MODIFY (c_tabname) FROM ls_content. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
735
Find vulnerabilities in this ABAP code snippet.
```abap IF strlen( is_progdir-name ) > 30. " special treatment for extenstions " if the program name exceeds 30 characters it is not a usual " ABAP program but might be some extension, which requires the internal " addition EXTENSION TYPE, see " http://help.sap.com/abapdocu_751/en/abapinsert_report_inter...
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.
747
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 ELSE. INSERT REPORT is_progdir-name * <-- There is a problem here FROM it_source ``` Explanation: Potential dangerous statement INSERT REPORT.
748
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 zcl_abapgit_settings=>ty_s_user_settings, lo_user_persistence TYPE REF TO zcl_abapgit_persistence_user. ...
I found vulnerabilities in the line: ```abap SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname) ``` Explanation: Potential dangerous statement Dynamic SQL.
752
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.
757
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT mt_object_table ASSIGNING <ls_object_table>. CREATE DATA lr_ref TYPE STANDARD TABLE OF (<ls_object_table>-tobj_name). ASSIGN lr_ref->* TO <lt_data>. lv_where = get_where_clause( <ls_object_table>-tobj_name ). SELECT * FROM (<ls_object_table>-tobj_name) INTO TABLE <lt_data> WH...
I found vulnerabilities in the line: ```abap SELECT * FROM (<ls_object_table>-tobj_name) ``` Explanation: Potential dangerous statement Dynamic SQL.
767
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.
769
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.
786
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_ABAPGIT_OBJECT_PARA IMPLEMENTATION. 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_object~delete. " We can't use FM RS_PARAMETER_DELETE because of the popup to conf...
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.
789
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...
793
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.
804
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update_extras. IF is_tabl_extras-tddat IS INITIAL. delete_extras( iv_tabname = iv_tabname ). ELSE. MODIFY tddat FROM is_tabl_extras-tddat. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap MODIFY tddat FROM is_tabl_extras-tddat. ``` Explanation: Modify only own DB tables.
807
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update. DATA lv_data LIKE iv_data. lv_data = validate_and_unprettify_xml( iv_data ). lock( iv_type = iv_type iv_value = iv_value ). UPDATE (c_tabname) SET data_str = lv_data WHERE type = iv_type AND value = iv_value. IF sy-subrc <> 0. zcx_abapgit_excepti...
I found vulnerabilities in the line: ```abap UPDATE (c_tabname) SET data_str = lv_data ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
822
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_ABAPGIT_OBJECT_CHDO IMPLEMENTATION. METHOD after_import. DATA: lt_cts_object_entry TYPE STANDARD TABLE OF e071 WITH DEFAULT KEY, ls_cts_object_entry LIKE LINE OF lt_cts_object_entry, lt_errormsg TYPE STANDARD TABLE OF sprot_u WITH DEFAULT KEY. ls_cts_...
I found vulnerabilities in the line: ```abap DELETE FROM tcdobs WHERE object = mv_object. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM tcdobts WHERE object = mv_object. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM tcdrps WHERE object = mv_object. ``` Explanation: Modify only own ...
823
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~delete. DATA: ls_bcdata TYPE bdcdata, lt_bcdata TYPE STANDARD TABLE OF bdcdata. ls_bcdata-program = 'SAPMSDIA'. ...
I found vulnerabilities in the line: ```abap INSERT diapar FROM TABLE ls_dialog_module-dia_pars. ``` Explanation: Modify only own DB tables.
824
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update_func_group_short_text. " We update the short text directly. " SE80 does the same in " Program SAPLSEUF / LSEUFF07 " FORM GROUP_CHANGE UPDATE tlibt SET areat = iv_short_text WHERE spras = mv_language AND area = iv_group. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap UPDATE tlibt SET areat = iv_short_text ``` Explanation: Modify only own DB tables.
826
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.
832
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_ABAPGIT_OBJECT_PARA IMPLEMENTATION. 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_object~delete. " We can't use FM RS_PARAMETER_DELETE because of the popup to conf...
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.
835
Find vulnerabilities in this ABAP code snippet.
```abap TRY. CALL FUNCTION 'ENQUEUE_E_SHM_AREA' EXPORTING mode_shma_attributes = 'E' area_name = lv_area_name x_area_name = ' ' _scope = '2' _wait = ' ' _collect = ' ' EXCEPTIONS ...
I found vulnerabilities in the line: ```abap DELETE FROM shma_attributes WHERE area_name = lv_area_name. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM shma_start WHERE area_name = lv_area_name. ``` Explanation: Modify only own DB tables.
837
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.
838
Find vulnerabilities in this ABAP code snippet.
```abap METHOD delete_extra. DELETE FROM tddat WHERE tabname = iv_tabname. DELETE FROM tvdir WHERE tabname = iv_tabname. DELETE FROM tvimf WHERE tabname = iv_tabname. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap DELETE FROM tddat WHERE tabname = iv_tabname. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM tvdir WHERE tabname = iv_tabname. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM tvimf WHERE tabname = iv_tabname. ``` Explanation: Modify only own ...
841
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update_extra. DATA: lt_current_tvimf TYPE STANDARD TABLE OF tvimf. FIELD-SYMBOLS: <ls_tvimf> TYPE tvimf. MODIFY tddat FROM is_tobj-tddat. MODIFY tvdir FROM is_tobj-tvdir. SELECT * INTO TABLE lt_current_tvimf FROM tvimf WHERE tabname = is_tobj-tddat-tabname ORDER BY PRIMA...
I found vulnerabilities in the line: ```abap MODIFY tddat FROM is_tobj-tddat. ``` Explanation: Modify only own DB tables. ```abap MODIFY tvdir FROM is_tobj-tvdir. ``` Explanation: Modify only own DB tables. ```abap MODIFY tvimf FROM TABLE is_tobj-tvimf. ``` Explanation: Modify only own DB tables.
842
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc <> 0. DELETE FROM tvimf WHERE tabname = <ls_tvimf>-tabname AND event = <ls_tvimf>-event. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tvimf ``` Explanation: Modify only own DB tables.
843
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_tobj IMPLEMENTATION. METHOD delete_extra. DELETE FROM tddat WHERE tabname = iv_tabname. DELETE FROM tvdir WHERE tabname = iv_tabname. DELETE FROM tvimf WHERE tabname = iv_tabname. ENDMETHOD. METHOD read_extra. SELECT SINGLE * FROM tddat INTO rs...
I found vulnerabilities in the line: ```abap UPDATE objh SET objtransp = ls_objh-objtransp ``` Explanation: Modify only own DB tables.
844
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.
846
Find vulnerabilities in this ABAP code snippet.
```abap IF ls_dm40t-langbez <> ls_udmo_text-langbez. ls_dm40t-langbez = ls_udmo_text-langbez. ls_dm40t-lstdate = sy-datum. ls_dm40t-lsttime = sy-uzeit. ls_dm40t-lstuser = sy-uname. MODIFY dm40t FROM ls_dm40t. ENDIF. ```
I found vulnerabilities in the line: ```abap MODIFY dm40t FROM ls_dm40t. ``` Explanation: Modify only own DB tables.
848
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 = mv_activation_s...
I found vulnerabilities in the line: ```abap INSERT dm40t FROM ls_dm40t. ``` Explanation: Modify only own DB tables.
849
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...
850
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...
856
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.
862
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.
876
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_ABAPGIT_OBJECT_AUTH IMPLEMENTATION. 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_object~compare_to_remote_version. CREATE OBJECT ro_comparison_result TYPE zcl_abapg...
I found vulnerabilities in the line: ```abap MODIFY authx FROM ls_authx. ``` Explanation: Modify only own DB tables.
889
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.
890
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. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~get_metadata. rs_metadata = get_metadata( ). ENDMETHOD. "zif_abapgit_object~...
I found vulnerabilities in the line: ```abap MODIFY dokentry FROM ls_dokentry. ``` Explanation: Modify only own DB tables.
891
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_msag IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. SELECT SINGLE lastuser FROM t100a INTO rv_user WHERE arbgb = ms_item-obj_name...
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.
894
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. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. * looks like "changed by user" is not stored in the database rv_user = c_user_unknown...
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.
898
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. "constructor METHOD zif_abapgit_object~has_changed_since. ...
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.
899
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...
901
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. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~get_meta...
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.
902
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_suso IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~get_meta...
I found vulnerabilities in the line: ```abap MODIFY tobj FROM ls_tobj. ``` Explanation: Modify only own DB tables. ```abap MODIFY tobjt FROM ls_tobjt. ``` Explanation: Modify only own DB tables. ```abap MODIFY tobjvorflg FROM ls_tobjvorflg. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM tactz WHERE bro...
903
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0 AND lv_tabclass = 'TRANSP'. * it cannot delete table with table wihtout asking CREATE DATA lr_data TYPE (lv_objname). ASSIGN lr_data->* TO <lg_data>. SELECT SINGLE * FROM (lv_objname) INTO <lg_data>. IF sy-subrc = 0. lv_no_ask = abap_false. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT SINGLE * FROM (lv_objname) INTO <lg_data>. ``` Explanation: Potential dangerous statement Dynamic SQL.
904
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update_extra. MODIFY tddat FROM is_tobj-tddat. MODIFY tvdir FROM is_tobj-tvdir. MODIFY tvimf FROM TABLE is_tobj-tvimf. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap MODIFY tddat FROM is_tobj-tddat. ``` Explanation: Modify only own DB tables. ```abap MODIFY tvdir FROM is_tobj-tvdir. ``` Explanation: Modify only own DB tables. ```abap MODIFY tvimf FROM TABLE is_tobj-tvimf. ``` Explanation: Modify only own DB tables.
905
Find vulnerabilities in this ABAP code snippet.
```abap 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_typegroup ddtext = iv_ddtext corrnum ...
I found vulnerabilities in the line: ```abap UPDATE progdir SET uccheck = abap_true ``` Explanation: Modify only own DB tables.
908
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. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~get_meta...
I found vulnerabilities in the line: ```abap INSERT REPORT lv_progname FROM lt_source STATE 'I'. ``` Explanation: Potential dangerous statement INSERT REPORT.
909
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_vcls IMPLEMENTATION. METHOD zif_abapgit_object~has_changed_since. rv_changed = abap_true. ENDMETHOD. "zif_abapgit_object~has_changed_since METHOD zif_abapgit_object~changed_by. rv_user = c_user_unknown. " todo ENDMETHOD. METHOD zif_abapgit_object~get_meta...
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...
910
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update_cs_number_of_methods. " Indirect access to keep downward compatibility DATA lr_cache_entry TYPE REF TO data. FIELD-SYMBOLS: <lg_cache_entry> TYPE any, <lg_field> TYPE any. CREATE DATA lr_cache_entry TYPE ('SEO_CS_CACHE'). ASSIGN lr_cache_entry->* TO <...
I found vulnerabilities in the line: ```abap MODIFY ('SEO_CS_CACHE') FROM <lg_cache_entry>. ``` Explanation: Modify only own DB tables.
919
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 = is_properties EXCEPTIONS ...
I found vulnerabilities in the line: ```abap INSERT TEXTPOOL lv_cp ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
921
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.
924
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.
929