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 TRY. DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ). DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc p_table_kind = cl_abap_tabledescr=>tablekind_std ). CREATE DATA mt_table TYPE HA...
I found vulnerabilities in the line: ```abap SELECT * ``` Explanation: Potential dangerous statement Dynamic SQL.
2,145
Find vulnerabilities in this ABAP code snippet.
```abap TRY. DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ). DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc p_table_kind = cl_abap_tabledescr=>tablekind_std ). CREATE DATA mt_table TYPE HA...
I found vulnerabilities in the line: ```abap SELECT * ``` Explanation: Potential dangerous statement Dynamic SQL.
2,156
Find vulnerabilities in this ABAP code snippet.
```abap IF <del> IS NOT INITIAL. DELETE (mv_table) FROM TABLE <table>. IF sy-subrc = 0. COMMIT WORK AND WAIT. CLEAR: mt_table_del. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE (mv_table) FROM TABLE <table>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,158
Find vulnerabilities in this ABAP code snippet.
```abap TRY. DATA(type_desc) = cl_abap_typedescr=>describe_by_name( mv_table ). DATA(struct_desc) = CAST cl_abap_structdescr( type_desc ). DATA(table_desc) = cl_abap_tabledescr=>create( p_line_type = struct_desc p_table_kind = cl_abap_tabledescr=>tablekind_std ). DATA: o_table T...
I found vulnerabilities in the line: ```abap MODIFY (mv_table) FROM TABLE <table>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,159
Find vulnerabilities in this ABAP code snippet.
```abap TRY. mt_comp = VALUE cl_abap_structdescr=>component_table( * ( name = 'SELKZ' * type = CAST #( cl_abap_datadescr=>describe_by_data( selkz ) ) ) ...
I found vulnerabilities in the line: ```abap SELECT * FROM (mv_table) INTO CORRESPONDING FIELDS OF TABLE <table>. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,160
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_count. DATA(o_type_desc) = cl_abap_typedescr=>describe_by_name( tabname ). DATA(o_struct_desc) = CAST cl_abap_structdescr( o_type_desc ). DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = o_struct_desc p_table_kind = cl_abap_tabledescr=>tablekind_std ). DAT...
I found vulnerabilities in the line: ```abap SELECT * FROM (tabname) INTO CORRESPONDING FIELDS OF TABLE <table>. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,161
Find vulnerabilities in this ABAP code snippet.
```abap IF i_log_numbers IS NOT INITIAL. SELECT mandt lognumber msgnumber record_number FROM /usi/bal_data INTO TABLE database_keys FOR ALL ENTRIES IN i_log_numbers WHERE lognumber EQ i_log_numbers-table_line. DELETE /usi/bal_data FROM TABLE database_keys. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE /usi/bal_data FROM TABLE database_keys. ``` Explanation: Modify only own DB tables.
2,162
Find vulnerabilities in this ABAP code snippet.
```abap CLASS /usi/cl_bal_data_cont_coll_dao DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. INTERFACES /usi/if_bal_data_cont_coll_dao. PROTECTED SECTION. PRIVATE SECTION. TYPES ty_db_record TYPE /usi/bal_data . TYPES: ty_db_records TYPE SORTED TABLE OF ty_db_record...
I found vulnerabilities in the line: ```abap SELECT mandt ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap INSERT /usi/bal_data ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,163
Find vulnerabilities in this ABAP code snippet.
```abap METHOD run_productive. DATA: deleted_entries TYPE int4. DELETE FROM /usi/bal_lv_user WHERE endda LT sy-datum. IF sy-subrc EQ 0. deleted_entries = sy-dbcnt. CALL FUNCTION 'ABAP4_COMMIT_WORK'. ENDIF. MESSAGE s023(/usi/bal) WITH deleted_entries. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap DELETE FROM /usi/bal_lv_user WHERE endda LT sy-datum. ``` Explanation: Modify only own DB tables.
2,164
Find vulnerabilities in this ABAP code snippet.
```abap CLASS /usi/cl_bal_data_cont_coll_dao DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES /usi/if_bal_data_cont_coll_dao. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_db_record TYPE /usi/bal_data, ty_db_records TYPE SORTED TABLE OF ty_db_record WITH UNIQUE KEY l...
I found vulnerabilities in the line: ```abap SELECT mandt ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap INSERT /usi/bal_data ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,166
Find vulnerabilities in this ABAP code snippet.
```abap METHOD run_productive. DATA: message_text TYPE bapi_msg, outdated_client_entries TYPE int4, outdated_user_entries TYPE int4. DELETE FROM /usi/bal_lv_clnt WHERE endda LT sy-datum. IF sy-subrc EQ 0. outdated_client_entries = sy-dbcnt. CALL FUNCTION 'ABAP4_COMMIT...
I found vulnerabilities in the line: ```abap DELETE FROM /usi/bal_lv_clnt WHERE endda LT sy-datum. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM /usi/bal_lv_user WHERE endda LT sy-datum. ``` Explanation: Modify only own DB tables.
2,167
Find vulnerabilities in this ABAP code snippet.
```abap CLASS /usi/cl_bal_data_cont_coll_dao DEFINITION PUBLIC FINAL CREATE PUBLIC. PUBLIC SECTION. INTERFACES /usi/if_bal_data_cont_coll_dao. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_db_record TYPE /usi/bal_data, ty_db_records TYPE SORTED TABLE OF ty_db_record WITH UNIQUE KEY l...
I found vulnerabilities in the line: ```abap SELECT mandt ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap INSERT /usi/bal_data ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,170
Find vulnerabilities in this ABAP code snippet.
```abap METHOD run_productive. DATA: message_text TYPE bapi_msg, outdated_client_entries TYPE int4, outdated_user_entries TYPE int4. DELETE FROM /usi/bal_lv_clnt WHERE endda LT sy-datum. IF sy-subrc EQ 0. outdated_client_entries = sy-dbcnt. ENDIF. MESSAGE s026(/usi/b...
I found vulnerabilities in the line: ```abap DELETE FROM /usi/bal_lv_clnt WHERE endda LT sy-datum. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM /usi/bal_lv_user WHERE endda LT sy-datum. ``` Explanation: Modify only own DB tables.
2,171
Find vulnerabilities in this ABAP code snippet.
```abap METHOD upload. *-----------------------------------------------------------------------------* * upload ALV layout from local files * * Popup with all ALV layouts from download files * in the specified local directory * Displays Report, Handle, Log Group, layout, Description, * Download date and system (...
I found vulnerabilities in the line: ```abap MODIFY ltdxt FROM TABLE <skeys>-ltdxt. ``` Explanation: Modify only own DB tables.
2,172
Find vulnerabilities in this ABAP code snippet.
```abap TRY. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE nont_name = ms_item-obj_name AND version = 'I'. IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE nont_name = ms_item-obj_name AND version = 'A'. ...
I found vulnerabilities in the line: ```abap TRY. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) WHERE nont_name = ms_item-obj_name AND version = 'I'. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,173
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE nont_name = ms_item-obj_name AND version = 'A'. ENDIF. ```
I found vulnerabilities in the line: ```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) WHERE nont_name = ms_item-obj_name AND version = 'A'. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,174
Find vulnerabilities in this ABAP code snippet.
```abap TRY. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE ront_name = ms_item-obj_name AND version = 'I'. IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE ront_name = ms_item-obj_name AND version = 'A'. ...
I found vulnerabilities in the line: ```abap TRY. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) WHERE ront_name = ms_item-obj_name AND version = 'I'. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,175
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE ront_name = ms_item-obj_name AND version = 'A'. ENDIF. ```
I found vulnerabilities in the line: ```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) WHERE ront_name = ms_item-obj_name AND version = 'A'. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,176
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_unconverted_repo_ids. DATA lt_cs_ids TYPE ty_repo_ids. DATA lv_repo_id LIKE LINE OF rt_repo_ids. DATA lv_index TYPE i. SELECT value FROM (Lcl_abapgit_persistence_db=>c_tabname) INTO TABLE rt_repo_ids WHERE type = Lcl_abapgit_persistence_db=>c_type_repo. SELECT value FROM ...
I found vulnerabilities in the line: ```abap SELECT value FROM (Lcl_abapgit_persistence_db=>c_tabname) * <-- There is a problem here INTO TABLE rt_repo_ids ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap WHERE type = Lcl_abapgit_persistence_db=>c_type_repo. SELECT value FROM (Lcl_abapgit_persisten...
2,177
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT mt_object_table ASSIGNING <ls_table>. lv_where = get_where_clause( <ls_table>-tobj_name ). ASSERT NOT lv_where IS INITIAL. DELETE FROM (<ls_table>-tobj_name) WHERE (lv_where). IF <ls_table>-tobj_name = lv_primary. ASSERT sy-dbcnt <= 1. "Just to be on the very safe side ENDIF. EN...
I found vulnerabilities in the line: ```abap DELETE FROM (<ls_table>-tobj_name) WHERE (lv_where). ``` Explanation: Potential dangerous statement Dynamic SQL.
2,178
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT mt_object_table ASSIGNING <ls_table>. CREATE DATA lr_ref TYPE STANDARD TABLE OF (<ls_table>-tobj_name). ASSIGN lr_ref->* TO <lt_data>. io_xml->read( EXPORTING iv_name = <ls_table>-tobj_name CHANGING cg_data = <lt_data> ). apply_fill_logic( EXPORTING iv...
I found vulnerabilities in the line: ```abap INSERT (<ls_table>-tobj_name) FROM TABLE <lt_data>. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,179
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.
2,181
Find vulnerabilities in this ABAP code snippet.
```abap METHOD validate. DATA: lv_where TYPE string, lv_primary TYPE objsl-tobj_name, lr_ref TYPE REF TO data. FIELD-SYMBOLS: <lt_data> TYPE STANDARD TABLE. lv_primary = get_primary_table( ). CREATE DATA lr_ref TYPE STANDARD TABLE OF (lv_primary). ASSIGN lr_ref->* TO <lt...
I found vulnerabilities in the line: ```abap SELECT COUNT(*) FROM (lv_primary) WHERE (lv_where). ``` Explanation: Potential dangerous statement Dynamic SQL.
2,182
Find vulnerabilities in this ABAP code snippet.
```abap TRY. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE evtb_name = ms_item-obj_name AND version = 'I'. IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE evtb_name = ms_item-obj_name AND version = 'A'. ...
I found vulnerabilities in the line: ```abap TRY. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) WHERE evtb_name = ms_item-obj_name AND version = 'I'. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,183
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE evtb_name = ms_item-obj_name AND version = 'A'. ENDIF. ```
I found vulnerabilities in the line: ```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,184
Find vulnerabilities in this ABAP code snippet.
```abap IF lines( <lg_del> ) > 0. DELETE (iv_name) FROM TABLE <lg_del>. IF sy-subrc <> 0. Lcx_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: Potential dangerous statement Dynamic SQL.
2,187
Find vulnerabilities in this ABAP code snippet.
```abap IF lines( <lg_ins> ) > 0. INSERT (iv_name) FROM TABLE <lg_ins>. IF sy-subrc <> 0. Lcx_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: Potential dangerous statement Dynamic SQL.
2,188
Find vulnerabilities in this ABAP code snippet.
```abap IF lines( <lg_upd> ) > 0. UPDATE (iv_name) FROM TABLE <lg_upd>. IF sy-subrc <> 0. Lcx_abapgit_exception=>raise( |Error updating { lines( <lg_upd> ) } records into table { iv_name }| ). ENDIF. ```
I found vulnerabilities in the line: ```abap UPDATE (iv_name) FROM TABLE <lg_upd>. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,189
Find vulnerabilities in this ABAP code snippet.
```abap class LCL_ABAPGIT_OO_CLASS implementation. *"* method's implementations *include methods. METHOD create_report. Lcl_abapgit_factory=>get_sap_report( )->insert_report( iv_name = iv_program iv_package = iv_package it_source = it_source iv_state ...
I found vulnerabilities in the line: ```abap INSERT TEXTPOOL lv_cp ``` Explanation: Potential dangerous statement INSERT TEXTPOOL.
2,192
Find vulnerabilities in this ABAP code snippet.
```abap METHOD add. DATA ls_table TYPE Lif_abapgit_persistence=>ty_content. validate_entry_type( iv_type ). 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-subrc = 0. ENDMETHOD. ...
I found vulnerabilities in the line: ```abap INSERT (c_tabname) FROM ls_table. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,193
Find vulnerabilities in this ABAP code snippet.
```abap METHOD delete. lock( iv_type = iv_type iv_value = iv_value ). " Ignore errors since record might not exist DELETE FROM (c_tabname) WHERE type = iv_type AND value = iv_value. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap DELETE FROM (c_tabname) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,194
Find vulnerabilities in this ABAP code snippet.
```abap METHOD modify. DATA: ls_content TYPE Lif_abapgit_persistence=>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. Lcx_a...
I found vulnerabilities in the line: ```abap MODIFY (c_tabname) FROM ls_content. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,198
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. IF sy-subrc <> 0. RAISE EXCEPTION TYPE Lcx_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.
2,199
Find vulnerabilities in this ABAP code snippet.
```abap METHOD update. DATA lv_data LIKE iv_data. IF iv_data CS '<?xml'. lv_data = validate_and_unprettify_xml( iv_data ). ELSE. lv_data = iv_data. ENDIF. lock( iv_type = iv_type iv_value = iv_value ). UPDATE (c_tabname) SET data_str = lv_data WHERE type = iv_type ...
I found vulnerabilities in the line: ```abap UPDATE (c_tabname) SET data_str = lv_data ``` Explanation: Potential dangerous statement Dynamic SQL.
2,200
Find vulnerabilities in this ABAP code snippet.
```abap class LCL_ABAPGIT_SAP_REPORT implementation. *"* method's implementations *include methods. METHOD Lif_abapgit_sap_report~read_progdir. DATA ls_sapdir TYPE progdir. CALL FUNCTION 'READ_PROGDIR' EXPORTING i_progname = iv_name i_state = iv_state IMPORTING ...
I found vulnerabilities in the line: ```abap DELETE REPORT iv_name. ``` Explanation: Potential dangerous statement DELETE REPORT. ```abap ELSEIF iv_program_type IS INITIAL AND iv_extension_type IS INITIAL. INSERT REPORT iv_name FROM it_source * <-- There is a problem here STATE iv_state. ``` Explanation: Potentia...
2,201
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 = c_state-inactive...
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.
2,205
Find vulnerabilities in this ABAP code snippet.
```abap METHOD main_2. DATA shrinker TYPE REF TO zcl_shrinker. DATA(include_does_not_exist) = CONV string( 'Include &1 does not exist. Create it manually as empty.'(001) ). SELECT SINGLE * FROM trdir WHERE name = @p_def INTO @DATA(trdir_def). IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_shrinker ...
I found vulnerabilities in the line: ```abap INSERT REPORT p_imp FROM abap_code-imp_abap_source_code DIRECTORY ENTRY trdir_imp. ``` Explanation: Potential dangerous statement INSERT REPORT.
2,206
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT kit_load_status INTO ls_load_status. GENERATE REPORT ls_load_status-progname MESSAGE ls_load_status-gen_message. ls_load_status-gen_result = sy-subrc. MODIFY kit_load_status FROM ls_load_status. RAISE EVENT program_generated EXPORTING progname = ls_load_status-progname ...
I found vulnerabilities in the line: ```abap GENERATE REPORT ls_load_status-progname MESSAGE ls_load_status-gen_message. ``` Explanation: Potential dangerous statement GENERATE REPORT. ```abap MODIFY kit_load_status FROM ls_load_status. ``` Explanation: Modify only own DB tables.
2,207
Find vulnerabilities in this ABAP code snippet.
```abap TRY. ku_program = ls_load_status-progname. EXEC SQL. UPDATE repoload SET sdat = :ku_date stime = :ku_time WHERE prog = :ku_program ENDEXEC. DATA exc_ref TYPE REF TO cx_sy_native_sql_error. CATCH cx_sy_native_sql_error INTO exc_ref. DA...
I found vulnerabilities in the line: ```abap EXEC SQL. ``` Explanation: Potential dangerous statement EXEC SQL.
2,208
Find vulnerabilities in this ABAP code snippet.
```abap METHOD create_empty_prog_batch_input. TYPES tt_bdcdata TYPE STANDARD TABLE OF bdcdata WITH EMPTY KEY. DATA(bdcdata) = VALUE tt_bdcdata( ( program = 'SAPLWBABAP' dynpro = '0100' dynbegin = 'X' ) ( fnam = 'RS38M-PROGRAMM ' fval = program_name ) ( fnam = 'RS38M-FUNC_EDIT' fval ...
I found vulnerabilities in the line: ```abap CALL TRANSACTION 'SE38' ``` Explanation: Add an authority check to CALL TRANSACTION.
2,209
Find vulnerabilities in this ABAP code snippet.
```abap IF incl_def IS NOT INITIAL. INSERT REPORT incl_def FROM abap_of_zabapgit_oo-def_abap_source_code DIRECTORY ENTRY trdir_def. ENDIF. ```
I found vulnerabilities in the line: ```abap INSERT REPORT incl_def FROM abap_of_zabapgit_oo-def_abap_source_code DIRECTORY ENTRY trdir_def. ``` Explanation: Potential dangerous statement INSERT REPORT.
2,210
Find vulnerabilities in this ABAP code snippet.
```abap DO p_nb_imp TIMES. IF sy-index < p_nb_imp. DATA(last_line) = first_line + total_include_lines - 1. ELSE. last_line = lines( abap_of_zabapgit_oo-imp_abap_source_code ). ENDIF. " make sure to not split an ABAP statement in the middle. WHILE last_line < lines( abap_of_zabapgit_oo-imp_aba...
I found vulnerabilities in the line: ```abap INSERT REPORT incl_impx FROM abap_source_code DIRECTORY ENTRY trdir_imp. ``` Explanation: Potential dangerous statement INSERT REPORT.
2,211
Find vulnerabilities in this ABAP code snippet.
```abap IF standalo IS NOT INITIAL. INSERT REPORT standalo FROM abap_of_zabapgit_standalone DIRECTORY ENTRY trdir_standalo. ENDIF. ```
I found vulnerabilities in the line: ```abap INSERT REPORT standalo FROM abap_of_zabapgit_standalone DIRECTORY ENTRY trdir_standalo. ``` Explanation: Potential dangerous statement INSERT REPORT.
2,212
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT kit_load_status INTO ls_load_status. GENERATE REPORT ls_load_status-progname MESSAGE ls_load_status-gen_message. ls_load_status-gen_result = sy-subrc. MODIFY kit_load_status FROM ls_load_status. RAISE EVENT program_generated EXPORTING progname = ls_load_status-progname ...
I found vulnerabilities in the line: ```abap GENERATE REPORT ls_load_status-progname MESSAGE ls_load_status-gen_message. ``` Explanation: Potential dangerous statement GENERATE REPORT.
2,213
Find vulnerabilities in this ABAP code snippet.
```abap METHOD main. DATA(include_does_not_exist) = CONV string( 'Include &1 does not exist. Create it manually as empty.'(001) ). SELECT SINGLE * FROM trdir WHERE name = @p_def INTO @DATA(trdir_def). IF sy-subrc <> 0. RAISE EXCEPTION TYPE zcx_shrinker EXPORTING text = include_does_not_exist msgv1 = p...
I found vulnerabilities in the line: ```abap INSERT REPORT p_def FROM abap_code-def_abap_source_code DIRECTORY ENTRY trdir_def. ``` Explanation: Potential dangerous statement INSERT REPORT. ```abap DELETE REPORT p_def STATE 'I'. ``` Explanation: Potential dangerous statement DELETE REPORT. ```abap INSERT REPORT p_imp F...
2,215
Find vulnerabilities in this ABAP code snippet.
```abap METHOD main_2. " LOGIC: " 1. Convert all classes and interfaces into many lines. " Append this interface (with anything you like instead of abapmerge 0.15.0...: " **************************************************** " INTERFACE lif_abapmerge_marker. " * abapmerge 0.15.0...
I found vulnerabilities in the line: ```abap INSERT REPORT incl_def FROM abap_of_zabapgit_oo-def_abap_source_code DIRECTORY ENTRY trdir_def. ``` Explanation: Potential dangerous statement INSERT REPORT. ```abap DELETE REPORT incl_def STATE 'I'. ``` Explanation: Potential dangerous statement DELETE REPORT. ```abap INSER...
2,216
Find vulnerabilities in this ABAP code snippet.
```abap DO total_includes TIMES. IF sy-index < total_includes. DATA(last_line) = first_line + total_include_lines - 1. ELSE. last_line = lines( abap_of_zabapgit_oo-imp_abap_source_code ). ENDIF. " make sure to not split an ABAP statement in the middle. WHILE last_line < lines( abap_of_zabapgi...
I found vulnerabilities in the line: ```abap INSERT REPORT incl_impx FROM abap_source_code DIRECTORY ENTRY trdir_imp. ``` Explanation: Potential dangerous statement INSERT REPORT. ```abap DELETE REPORT incl_impx STATE 'I'. ``` Explanation: Potential dangerous statement DELETE REPORT.
2,217
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user FROM (c_table_name) WHERE evtb_name = ms_item-obj_name AND version = 'A'. ENDIF. ```
I found vulnerabilities in the line: ```abap IF lv_user IS INITIAL. SELECT SINGLE changed_by INTO lv_user * <-- There is a problem here FROM (c_table_name) WHERE evtb_name = ms_item-obj_name AND version = 'A'. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,237
Find vulnerabilities in this ABAP code snippet.
```abap class LCL_ABAPGIT_SAP_REPORT implementation. *"* method's implementations *include methods. METHOD authorization_check. IF is_item IS NOT INITIAL. TRY. CALL FUNCTION 'RS_ACCESS_PERMISSION' EXPORTING mode = iv_mode ...
I found vulnerabilities in the line: ```abap DELETE REPORT iv_name. ``` Explanation: Potential dangerous statement DELETE REPORT. ```abap ELSEIF iv_program_type IS INITIAL AND iv_extension_type IS INITIAL. INSERT REPORT iv_name FROM it_source * <-- There is a problem here STATE iv_state. ``` Explanation: Potentia...
2,243
Find vulnerabilities in this ABAP code snippet.
```abap if iv_doc_id-target_table = 'CUSTOMER_H'. select single O~guid from crmd_customer_h as c left join crmd_orderadm_h as o on c~guid = o~guid and o~process_type = @iv_type where (cond_syntax) into @ev_guid. endif. ```
I found vulnerabilities in the line: ```abap select single O~guid from crmd_customer_h as c ``` Explanation: Potential dangerous statement Dynamic SQL.
2,288
Find vulnerabilities in this ABAP code snippet.
```abap IF iv_doc_id-target_table = 'CUSTOMER_H'. SELECT SINGLE o~guid FROM crmd_customer_h AS c LEFT JOIN crmd_orderadm_h AS o ON c~guid = o~guid AND o~process_type = @iv_type WHERE (cond_syntax) INTO @ev_guid. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT SINGLE o~guid FROM crmd_customer_h AS c ``` Explanation: Potential dangerous statement Dynamic SQL.
2,289
Find vulnerabilities in this ABAP code snippet.
```abap METHOD set_creation_info. * update creating information DATA(lv_posting_date) = iv_doc_properties-posting_date. DATA(lv_created_at) = iv_doc_properties-created_at. DATA(lv_created_by) = iv_doc_properties-created_by. UPDATE crmd_orderadm_h SET posting_date = @lv_posting_date, cre...
I found vulnerabilities in the line: ```abap UPDATE crmd_orderadm_h ``` Explanation: Modify only own DB tables.
2,290
Find vulnerabilities in this ABAP code snippet.
```abap METHOD set_creation_info. * update creating information DATA(lv_posting_date) = iv_doc_properties-posting_date. DATA(lv_created_at) = iv_doc_properties-created_at. DATA(lv_created_by) = iv_doc_properties-created_by. DATA(lv_changed_at) = iv_doc_properties-changed_at. DATA(lv_changed_by) = iv...
I found vulnerabilities in the line: ```abap UPDATE crmd_orderadm_h ``` Explanation: Modify only own DB tables.
2,292
Find vulnerabilities in this ABAP code snippet.
```abap IF iv_doc_guid-target_table = 'CUSTOMER_H'. SELECT SINGLE c~guid FROM crmd_customer_h AS c WHERE (cond_syntax) INTO @ev_guid. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT SINGLE c~guid FROM crmd_customer_h AS c ``` Explanation: Potential dangerous statement Dynamic SQL.
2,294
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT et_context INTO ls_cr_context. "fill in context of cr with retrofit cd data. ls_cr_context-item_guid = iv_guid. "new document guig "find mapping for target guid CALL METHOD zcl_solmove_helper=>find_doc EXPORTING iv_doc_guid = lv_doc_guid IMPORTING ev_guid = lv_f...
I found vulnerabilities in the line: ```abap MODIFY tsocm_cr_context FROM ls_cr_context. ``` Explanation: Modify only own DB tables.
2,295
Find vulnerabilities in this ABAP code snippet.
```abap IF <del> IS NOT INITIAL. DELETE (mv_table) FROM TABLE @<del_org>. IF sy-subrc = 0. COMMIT WORK AND WAIT. CLEAR <del>. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE (mv_table) FROM TABLE @<del_org>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,305
Find vulnerabilities in this ABAP code snippet.
```abap IF line_exists( mt_dfies[ keyflag = abap_false ] ). MODIFY (mv_table) FROM TABLE @<tab_org>. IF sy-subrc = 0. COMMIT WORK AND WAIT. client->message_toast_display( `Save successful` ). CLEAR mv_change_active. ENDIF. ```
I found vulnerabilities in the line: ```abap MODIFY (mv_table) FROM TABLE @<tab_org>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,306
Find vulnerabilities in this ABAP code snippet.
```abap TRY. IF <del> IS ASSIGNED. IF <del> IS NOT INITIAL. DELETE (mv_table) FROM TABLE @<del_org>. IF sy-subrc = 0. COMMIT WORK AND WAIT. CLEAR <del>. ENDIF. ENDIF. ENDIF. IF line_exists( mt_dfies[ keyflag = abap_false ] ). ...
I found vulnerabilities in the line: ```abap DELETE (mv_table) FROM TABLE @<tab_org>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap INSERT (mv_table) FROM TABLE @<tab_org>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,307
Find vulnerabilities in this ABAP code snippet.
```abap TRY. DATA(new_struct_desc) = cl_abap_structdescr=>create( t_comp ). DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc p_table_kind = cl_abap_tabledescr=>tablekind_std ). CREATE DATA mt_table TYPE HAN...
I found vulnerabilities in the line: ```abap SELECT * ``` Explanation: Potential dangerous statement Dynamic SQL.
2,308
Find vulnerabilities in this ABAP code snippet.
```abap IF lcl_this=>fields IS NOT INITIAL. SELECT (lcl_this=>fields) FROM (pv_ddic_type) INTO CORRESPONDING FIELDS OF TABLE alv_table UP TO 10 ROWS. ELSE. ```
I found vulnerabilities in the line: ```abap SELECT (lcl_this=>fields) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,309
Find vulnerabilities in this ABAP code snippet.
```abap *&---------------------------------------------------------------------* *& Report ZAESOP_TALV_DEMO_05 *&---------------------------------------------------------------------* *& cell color / style & checkbox & light *&---------------------------------------------------------------------* REPORT zaesop_ta...
I found vulnerabilities in the line: ```abap SELECT * ``` Explanation: Potential dangerous statement Dynamic SQL.
2,310
Find vulnerabilities in this ABAP code snippet.
```abap METHOD create_table_by_fieldcat1. CONSTANTS: con_report(60) TYPE c VALUE 'REPORT GENENERATED_SUBROUTINE_POOL.', con_form(60) TYPE c VALUE 'FORM TABLE_CREATE.', con_form2(60) TYPE c VALUE 'FORM TABLE_CREATE USING OBJECT', con_begin(60) TYPE c VALUE...
I found vulnerabilities in the line: ```abap GENERATE SUBROUTINE POOL source_code ``` Explanation: Potential dangerous statement GENERATE SUBROUTINE.
2,311
Find vulnerabilities in this ABAP code snippet.
```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid FROM yc_transportrequest AS tr FOR ALL ENTRIES IN @im_s_tr_query_by_attr-code WHERE tr~transportrequestid EQ @im_s_tr_query_by_attr-code-code AND (lv_query) INTO TABLE @DATA(lt_code). ELSE. ```
I found vulnerabilities in the line: ```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr FOR ALL ENTRIES IN @im_s_tr_query_by_attr-code ``` Explanation: Potential dangerous statement Dynamic SQL.
2,312
Find vulnerabilities in this ABAP code snippet.
```abap IF im_s_tr_query_by_attr-entries_attr IS INITIAL. IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid FROM yc_transportrequest AS tr FOR ALL ENTRIES IN @im_s_tr_query_by_attr-code WHERE tr~transportrequestid EQ @im_s_tr_query_by_attr-code-code AND (l...
I found vulnerabilities in the line: ```abap INTO TABLE @DATA(lt_code). ELSE. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr WHERE (lv_query) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,313
Find vulnerabilities in this ABAP code snippet.
```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ON tr~transportrequestid EQ trobj~transportrequestid FOR ALL ENTRIES IN @im_s_tr_query_by_attr-code WHERE tr~transportrequestid EQ ...
I found vulnerabilities in the line: ```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ``` Explanation: Potential dangerous statement Dynamic SQL.
2,314
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ycl_trm_transport_request_db IMPLEMENTATION. METHOD yif_trm_transport_request_db~set_ignore_cache. ai_ignore_cache = im_ignore_cache. ENDMETHOD. METHOD yif_trm_transport_request_db~query_tr_data_by_attr. IF im_s_tr_query_by_attr IS INITIAL. RETURN. ENDIF. DA...
I found vulnerabilities in the line: ```abap INTO TABLE @DATA(lt_code_obj). ELSE. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ``` Explanation: Potential dangerous statement Dynamic SQL.
2,315
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ycl_trm_transport_request_db IMPLEMENTATION. METHOD yif_trm_transport_request_db~set_ignore_cache. ai_ignore_cache = im_ignore_cache. ENDMETHOD. METHOD yif_trm_transport_request_db~query_tr_data_by_attr. IF im_s_tr_query_by_attr IS INITIAL. RETURN. ENDIF. DA...
I found vulnerabilities in the line: ```abap INTO TABLE @DATA(lt_code_obj). ELSE. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ``` Explanation: Potential dangerous statement Dynamic SQL.
2,319
Find vulnerabilities in this ABAP code snippet.
```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid FROM yc_transportrequest AS tr INNER JOIN @im_s_tr_query_by_attr-code AS code ON tr~transportrequestid EQ code~code WHERE (lv_query) INTO TABLE @DATA(lt_code). ELSE. ```
I found vulnerabilities in the line: ```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr INNER JOIN @im_s_tr_query_by_attr-code AS code ``` Explanation: Potential dangerous statement Dynamic SQL.
2,320
Find vulnerabilities in this ABAP code snippet.
```abap IF im_s_tr_query_by_attr-entries_attr IS INITIAL. IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid FROM yc_transportrequest AS tr INNER JOIN @im_s_tr_query_by_attr-code AS code ON tr~transportrequestid EQ code~code WHERE (lv_query) INTO TABL...
I found vulnerabilities in the line: ```abap INTO TABLE @DATA(lt_code). ELSE. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr WHERE (lv_query) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,321
Find vulnerabilities in this ABAP code snippet.
```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ON tr~transportrequestid EQ trobj~transportrequestid INNER JOIN @im_s_tr_query_by_attr-code AS code ON tr~transportrequestid EQ co...
I found vulnerabilities in the line: ```abap IF im_s_tr_query_by_attr-code IS NOT INITIAL. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ``` Explanation: Potential dangerous statement Dynamic SQL.
2,322
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ycl_trm_transport_request_db IMPLEMENTATION. METHOD yif_trm_transport_request_db~set_ignore_cache. ai_ignore_cache = im_ignore_cache. ENDMETHOD. METHOD yif_trm_transport_request_db~query_tr_data_by_attr. IF im_s_tr_query_by_attr IS INITIAL. RETURN. ENDIF. DA...
I found vulnerabilities in the line: ```abap INTO TABLE @DATA(lt_code_obj). ELSE. SELECT tr~transportrequestid * <-- There is a problem here FROM yc_transportrequest AS tr INNER JOIN yc_transportrequestobject AS trobj ``` Explanation: Potential dangerous statement Dynamic SQL.
2,323
Find vulnerabilities in this ABAP code snippet.
```abap METHOD navigate_to_request. DATA: ls_rseumod TYPE rseumod, ls_old_rseumod TYPE rseumod, lt_param TYPE STANDARD TABLE OF rfc_spagpa WITH DEFAULT KEY. CALL FUNCTION 'RS_WORKBENCH_CUSTOMIZING' EXPORTING suppress_dialog = 'X' IMPORTING setting = ...
I found vulnerabilities in the line: ```abap UPDATE rseumod FROM ls_rseumod. ``` Explanation: Modify only own DB tables.
2,324
Find vulnerabilities in this ABAP code snippet.
```abap METHOD refresh_tms_txt. DATA ls_tmsbuftxt TYPE tmsbuftxt. SELECT SINGLE * FROM tmsbuftxt INTO ls_tmsbuftxt WHERE trkorr EQ gv_trkorr. CHECK sy-subrc EQ 0. SELECT SINGLE as4text FROM e07t INTO ls_tmsbuftxt-text WHERE trkorr EQ gv_trkorr. SELECT SINGLE as4user FROM e070 INTO ls_tmsbuftxt-owner WHER...
I found vulnerabilities in the line: ```abap MODIFY tmsbuftxt FROM ls_tmsbuftxt. ``` Explanation: Modify only own DB tables.
2,325
Find vulnerabilities in this ABAP code snippet.
```abap METHOD add_namespace. DATA: ls_trnspacet TYPE trnspacet, ls_trnspacett TYPE trnspacett. ls_trnspacet-namespace = iv_namespace. ls_trnspacet-role = 'C'. ls_trnspacet-changeuser = sy-uname. ls_trnspacet-changedate = sy-datum. ls_trnspacet-replicense = iv_replicense. INSERT t...
I found vulnerabilities in the line: ```abap INSERT trnspacet FROM ls_trnspacet. ``` Explanation: Modify only own DB tables. ```abap UPDATE trnspace SET editflag = 'X' WHERE namespace = iv_namespace. ``` Explanation: Modify only own DB tables.
2,326
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT it_texts INTO ls_trnspacett. CHECK ls_trnspacett-spras IS NOT INITIAL. ls_trnspacett-namespace = iv_namespace. INSERT trnspacett FROM ls_trnspacett. IF sy-subrc <> 0. zcx_trm_exception=>raise( iv_reason = zcx_trm_exception=>c_reason-insert_error ). ENDIF. ENDLOOP. ```
I found vulnerabilities in the line: ```abap INSERT trnspacett FROM ls_trnspacett. ``` Explanation: Modify only own DB tables.
2,327
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_r3trans_info. TYPES: ty_cmd TYPE c LENGTH 254, BEGIN OF ty_result, line(255), END OF ty_result. DATA: cmd TYPE ty_cmd, result TYPE STANDARD TABLE OF ty_result. cmd = 'R3trans'. CALL 'SYSTEM' ID 'COMMAND' FIELD cmd ID 'TAB' F...
I found vulnerabilities in the line: ```abap CALL 'SYSTEM' ID 'COMMAND' FIELD cmd ``` Explanation: Potential dangerous statement KERNEL CALL.
2,328
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_TLOG IMPLEMENTATION. METHOD abort. add_from_string( content = content type = 'A' ). log = me. ENDMETHOD. METHOD add_from_bapi. collector->add_from_bapi( EXPORTING it_bapiret = it_bapiret is_bapiret = is...
I found vulnerabilities in the line: ```abap CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode ``` Explanation: Potential dangerous statement KERNEL CALL.
2,347
Find vulnerabilities in this ABAP code snippet.
```abap CASE tcode. WHEN 'ME23N'. SET PARAMETER ID 'BES' FIELD value. CALL TRANSACTION tcode AND SKIP FIRST SCREEN. "#EC CI_CALLTA WHEN 'MM03'. DATA ematn TYPE ekpo-ematn. ematn = value. CALL FUNCTION 'MMPUR_MATERIAL_DISPLAY' EXPORTING im_matnr = ematn * ...
I found vulnerabilities in the line: ```abap CALL TRANSACTION tcode AND SKIP FIRST SCREEN. ``` Explanation: Add an authority check to CALL TRANSACTION.
2,348
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_TLOG IMPLEMENTATION. METHOD abort. add_from_string( content = content type = 'A' ). log = me. ENDMETHOD. METHOD add_from_bapi. collector->add_from_bapi( EXPORTING it_bapiret = it_bapiret is_bapiret = is...
I found vulnerabilities in the line: ```abap CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode ``` Explanation: Potential dangerous statement KERNEL CALL.
2,349
Find vulnerabilities in this ABAP code snippet.
```abap CLASS ZCL_TLOG IMPLEMENTATION. METHOD abort. add_from_string( content = content type = 'A' ). log = me. ENDMETHOD. METHOD add_from_bapi. collector->add_from_bapi( EXPORTING it_bapiret = it_bapiret is_bapiret = is...
I found vulnerabilities in the line: ```abap CALL 'ThUsrInfo' ID 'OPCODE' FIELD opcode ``` Explanation: Potential dangerous statement KERNEL CALL.
2,351
Find vulnerabilities in this ABAP code snippet.
```abap IF blacklist IS NOT INITIAL. dynsel = | EXECTYPE = 'PROG' AND EXECNAME = '{ s_varid-report }' |. SELECT COUNT(*) FROM (ablm_blacklist) WHERE (dynsel). CHECK sy-subrc NE 0. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT COUNT(*) FROM (ablm_blacklist) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,352
Find vulnerabilities in this ABAP code snippet.
```abap METHOD tree_initialize. DATA: ls_tree_group TYPE ts_tree_group, lv_ok TYPE abap_bool, lo_struc TYPE REF TO cl_abap_structdescr, " TODO class attributes ls_comp TYPE REF TO abap_compdescr, lv_len TYPE string, lv_dec TYPE string, lv_type ...
I found vulnerabilities in the line: ```abap GENERATE SUBROUTINE POOL lt_code NAME ev_program ``` Explanation: Potential dangerous statement GENERATE SUBROUTINE.
2,354
Find vulnerabilities in this ABAP code snippet.
```abap METHOD tree_initialize. DATA: ls_tree_group TYPE ts_tree_group, lv_ok TYPE abap_bool, lo_struc TYPE REF TO cl_abap_structdescr, " TODO class attributes ls_comp TYPE REF TO abap_compdescr, lv_len TYPE string, lv_dec TYPE string, lv_type ...
I found vulnerabilities in the line: ```abap GENERATE SUBROUTINE POOL lt_code NAME ev_program ``` Explanation: Potential dangerous statement GENERATE SUBROUTINE.
2,355
Find vulnerabilities in this ABAP code snippet.
```abap method OVCABSET_GET_ENTITYSET. DATA: lt_cab TYPE STANDARD TABLE OF zovcab. DATA: ls_cab TYPE zovcab. DATA: ls_entityset LIKE LINE OF et_entityset. DATA: lt_orderby TYPE STANDARD TABLE OF string. DATA: ld_orderby TYPE string. " montando orderby dinâmico LOOP AT it_order I...
I found vulnerabilities in the line: ```abap SELECT * * <-- There is a problem here FROM zovcab ``` Explanation: Potential dangerous statement Dynamic SQL.
2,357
Find vulnerabilities in this ABAP code snippet.
```abap IF replace_select = abap_false. SELECT * FROM (table_name) INTO TABLE @<initial_data> ORDER BY PRIMARY KEY. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (table_name) INTO TABLE @<initial_data> ``` Explanation: Potential dangerous statement Dynamic SQL.
2,358
Find vulnerabilities in this ABAP code snippet.
```abap TRY. validate( IMPORTING result = DATA(result) duplicates = DATA(duplicates) inserted = DATA(inserted) deleted = DATA(deleted) before_modified = DATA(before_modified) ...
I found vulnerabilities in the line: ```abap DELETE (table_name) FROM TABLE @<deleted>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap MODIFY (table_name) FROM TABLE @<modified>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```a...
2,359
Find vulnerabilities in this ABAP code snippet.
```abap IF table_fields->key_fields_only = abap_true. "^Can't use modify if all fields are key fields. Also in this case it's impossible to have modified entries. INSERT (table_name) FROM TABLE @<inserted> ACCEPTING DUPLICATE KEYS. ELSE. ```
I found vulnerabilities in the line: ```abap INSERT (table_name) FROM TABLE @<inserted> ACCEPTING DUPLICATE KEYS. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
2,360
Find vulnerabilities in this ABAP code snippet.
```abap METHOD commad_change_document. DATA(selected_row) = get_selected_row_index( ). DATA batch_input TYPE TABLE OF bdcdata. APPEND VALUE #( program = 'RSSCD100' dynpro = '1000' dynbegin = 'X' fnam = 'BDC_CURSOR' fval = 'TABNAME' ) TO batch_input. APPEND VALUE #( fnam = 'OBJEKT' fval = '' ) TO batch_in...
I found vulnerabilities in the line: ```abap CALL TRANSACTION 'RSSCD100' USING batch_input MODE 'E' UPDATE 'S'. ``` Explanation: Add an authority check to CALL TRANSACTION.
2,361
Find vulnerabilities in this ABAP code snippet.
```abap METHOD create_change_doc. DATA(cd) = NEW zcl_zabap_change_document( objectclass = CONV #( table_name ) objectid = CONV #( table_name ) ). cd->open( ). cd->change_multi( EXPORTING force_cd_on_all_fields = COND #( WHEN change_doc_type = 'F' THEN abap_true ELSE abap_false ) ...
I found vulnerabilities in the line: ```abap CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD original_tcode. ``` Explanation: Potential dangerous statement KERNEL CALL.
2,362
Find vulnerabilities in this ABAP code snippet.
```abap START-OF-SELECTION. "Check if it's correct table SELECT SINGLE tabclass FROM dd02l WHERE tabname = @p_tabnam INTO @DATA(tabclass). IF tabclass = 'VIEW'. p_disedi = abap_true. ELSEIF tabclass <> 'TRANSP'. MESSAGE s001(zabap_table_edit) DISPLAY LIKE 'E'. LEAVE LIST-PROCESSING. ENDIF....
I found vulnerabilities in the line: ```abap CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD original_tcode. ``` Explanation: Potential dangerous statement KERNEL CALL.
2,363
Find vulnerabilities in this ABAP code snippet.
```abap METHOD create_change_doc. DATA(cd) = zcl_zabap_table_edit_factory=>get_change_doc( objectclass = CONV #( config-table_name ) objectid = CONV #( config-table_name ) ). cd->open( ). cd->change_multi( force_cd_on_all_fields = xsdbool( config-change_doc_type = 'F' ) table_name = con...
I found vulnerabilities in the line: ```abap CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD original_tcode. ``` Explanation: Potential dangerous statement KERNEL CALL.
2,364
Find vulnerabilities in this ABAP code snippet.
```abap IF execute_default_select = abap_true. "---SELECTION--- DATA(where) = table-selection->get_where_cond( ). SELECT * FROM (config-table_name) WHERE (where) ORDER BY PRIMARY KEY INTO TABLE @<initial_data>. "TODO maintenance view ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (config-table_name) WHERE (where) ORDER BY PRIMARY KEY INTO TABLE @<initial_data>. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,365
Find vulnerabilities in this ABAP code snippet.
```abap IF <initial_data> IS INITIAL. SELECT * FROM (table_name) INTO TABLE @<initial_data> ORDER BY PRIMARY KEY. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (table_name) INTO TABLE @<initial_data> ``` Explanation: Potential dangerous statement Dynamic SQL.
2,368
Find vulnerabilities in this ABAP code snippet.
```abap TRY. validate( IMPORTING result = DATA(result) duplicates = DATA(duplicates) inserted = DATA(inserted) deleted = DATA(deleted) before_modified = DATA(before_modified) modified = DATA(modified) ). "Abort with message if data is invalid IF result = c_validation-incorrect_...
I found vulnerabilities in the line: ```abap DELETE (table_name) FROM TABLE @<deleted>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap MODIFY (table_name) FROM TABLE @<modified>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```a...
2,369
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_text_elements_cache. assign_to_table_fs extended->* <extended>. "Build where clause DATA(where) = |{ ttable-field-lang } = @SY-LANGU|. LOOP AT ttable-key_mapping REFERENCE INTO DATA(key) WHERE NOT text = ttable-field-mandant. where = |{ where } AND { ttable-name }~{ key->text } = @<e...
I found vulnerabilities in the line: ```abap SELECT * FROM (ttable-name) ``` Explanation: Potential dangerous statement Dynamic SQL.
2,373
Find vulnerabilities in this ABAP code snippet.
```abap METHOD create_change_doc. DATA(cd) = zcl_zabap_table_edit_factory=>get_change_doc( objectclass = CONV #( config-table_name ) objectid = CONV #( ttable-name ) ). cd->open( ). cd->change_multi( force_cd_on_all_fields = xsdbool( config-change_doc_type = 'F' ) table_name = ttable-na...
I found vulnerabilities in the line: ```abap CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD original_tcode. ``` Explanation: Potential dangerous statement KERNEL CALL.
2,374
Find vulnerabilities in this ABAP code snippet.
```abap METHOD prepare_initial_data. CREATE DATA initial_data TYPE TABLE OF (table_name). table_fields->get_table_with_add_fields( EXPORTING additional_fields = additional_fields IMPORTING table = DATA(table) ). CREATE DATA modified_data_ext TYPE HANDLE table. FIELD-SYMBOLS <initial_data> TYPE table. A...
I found vulnerabilities in the line: ```abap SELECT * FROM (table_name) INTO TABLE @<initial_data>. ``` Explanation: Potential dangerous statement Dynamic SQL.
2,375
Find vulnerabilities in this ABAP code snippet.
```abap TRY. validate( IMPORTING result = DATA(result) duplicates = DATA(duplicates) inserted = DATA(inserted) deleted = DATA(deleted) before_modified = DATA(before_modified) modified = DATA(modified) ). "Abort with message if data is invalid IF result = c_validation-incorrect_...
I found vulnerabilities in the line: ```abap DELETE (table_name) FROM TABLE @<deleted>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap MODIFY (table_name) FROM TABLE @<modified>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```a...
2,376
Find vulnerabilities in this ABAP code snippet.
```abap START-OF-SELECTION. "Check if it's correct table SELECT SINGLE tabclass FROM dd02l WHERE tabname = @p_tabnam INTO @DATA(tabclass). IF tabclass <> 'TRANSP'. MESSAGE s001(zabap_table_edit) DISPLAY LIKE 'E'. LEAVE LIST-PROCESSING. ENDIF. "Get description DATA original_tcode TYPE tcode...
I found vulnerabilities in the line: ```abap CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD original_tcode. ``` Explanation: Potential dangerous statement KERNEL CALL.
2,380
Find vulnerabilities in this ABAP code snippet.
```abap METHOD create_change_doc. DATA(cd) = zcl_zabap_table_edit_factory=>get_change_doc( objectclass = CONV #( config-table_name ) objectid = CONV #( config-table_name ) ). cd->open( ). cd->change_multi( force_cd_on_all_fields = COND #( WHEN config-change_doc_type = 'F' THEN abap_true ELSE abap_false ) ...
I found vulnerabilities in the line: ```abap CALL 'GET_PARAM_TCOD' ID 'PTCOD' FIELD original_tcode. ``` Explanation: Potential dangerous statement KERNEL CALL.
2,381