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 cluster_objects REFERENCE INTO DATA(object). ASSIGN object->*-value->* TO <con>. READ TABLE table_list REFERENCE INTO DATA(_table) WITH KEY fake_table = CONV tabname( object->*-name ). ASSERT FIELDS object->*-name CONDITION sy-subrc = 0. DELETE FROM (object->*-name) WHERE (_table-...
I found vulnerabilities in the line: ```abap DELETE FROM (object->*-name) WHERE (_table->*-where_restriction). INSERT (object->*-name) FROM TABLE <con>. * <-- There is a problem here ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,501
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT cluster_objects REFERENCE INTO DATA(object). ASSIGN object->*-value->* TO <con>. DELETE FROM (object->*-name). INSERT (object->*-name) FROM TABLE <con>. ENDLOOP. ```
I found vulnerabilities in the line: ```abap DELETE FROM (object->*-name). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (object->*-name). INSERT (object->*-name) FROM TABLE <con>. * <-- There is a problem here ``` Explanation: Modify only own DB tables | Po...
1,502
Find vulnerabilities in this ABAP code snippet.
```abap IF table->*-is_initial = abap_false. MODIFY (table->*-fake_table) FROM TABLE <con>. ENDIF. ```
I found vulnerabilities in the line: ```abap IF table->*-is_initial = abap_false. MODIFY (table->*-fake_table) FROM TABLE <con>. * <-- There is a problem here ENDIF. ENDLOOP. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap IF table->*-is_initial = abap_false. MODI...
1,503
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). IF table->*-fake_table NOT IN get_whitelist( ). CONTINUE. ENDIF. CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = get_tdc_parameter_name( table->* ) i_v...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,504
Find vulnerabilities in this ABAP code snippet.
```abap IF table->*-is_initial = abap_false. INSERT (table->*-fake_table) FROM TABLE <con>. ENDIF. ```
I found vulnerabilities in the line: ```abap INSERT (table->*-fake_table) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,505
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table_conjunction). DATA(idx) = sy-tabix. CREATE DATA: actual_content TYPE STANDARD TABLE OF (table_conjunction->*-source_table), exported_content TYPE STANDARD TABLE OF (table_conjunction->*-source_table). ASSIGN actual_content->* TO <actual_content...
I found vulnerabilities in the line: ```abap SELECT * FROM (table_conjunction->*-source_table) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,506
Find vulnerabilities in this ABAP code snippet.
```abap METHOD source_table_has_changed. DATA: actual_content TYPE REF TO data, exported_content TYPE REF TO data. FIELD-SYMBOLS: <actual_content> TYPE STANDARD TABLE, <exported_content> TYPE STANDARD TABLE. CREATE DATA: actual_content TYPE STANDARD TABLE OF (table_conju...
I found vulnerabilities in the line: ```abap SELECT * FROM (table_conjunction-source_table) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,507
Find vulnerabilities in this ABAP code snippet.
```abap TRY. param_name = create_parameter( _table-fake_table ). INSERT _table INTO TABLE table_list. CREATE DATA content TYPE STANDARD TABLE OF (_table-source_table). ASSIGN content->* TO <con>. SELECT * FROM (_table-source_table) INTO TABLE @<con> WHERE (_table-where_restriction)...
I found vulnerabilities in the line: ```abap SELECT * FROM (_table-source_table) INTO TABLE @<con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,508
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = table->*-fake_table i_variant_name = variant CHANGING e_param_value = <con> ). MODIFY (table->*-fake_table) F...
I found vulnerabilities in the line: ```abap MODIFY (table->*-fake_table) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,509
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = table->*-fake_table i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FROM (table->*-fake_tab...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table) WHERE (table->*-where_restriction). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (table->*-fake_table) WHERE (table->*-where_restriction). INSERT (table->*-fake_table) FROM TABLE...
1,510
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = table->*-fake_table i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FROM (table->*-fake_tab...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (table->*-fake_table). INSERT (table->*-fake_table) FROM TABLE <con>. * <-- There is a problem here ``` Explanation: Modify only own...
1,511
Find vulnerabilities in this ABAP code snippet.
```abap TRY. _table-tdc_parameter_name = create_parameter( _table-fake_table ). CREATE DATA content TYPE STANDARD TABLE OF (_table-source_table). ASSIGN content->* TO <con>. SELECT * FROM (_table-source_table) INTO TABLE @<con> WHERE (_table-where_restriction). _table-is_initial = xs...
I found vulnerabilities in the line: ```abap SELECT * FROM (_table-source_table) INTO TABLE @<con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,512
Find vulnerabilities in this ABAP code snippet.
```abap IF table->*-is_initial = abap_false. MODIFY (table->*-fake_table) FROM TABLE <con>. ENDIF. ```
I found vulnerabilities in the line: ```abap MODIFY (table->*-fake_table) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,513
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = get_tdc_parameter_name( table->* ) i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FRO...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table) WHERE (table->*-where_restriction). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,514
Find vulnerabilities in this ABAP code snippet.
```abap IF table->*-is_initial = abap_false. INSERT (table->*-fake_table) FROM TABLE <con>. ENDIF. ```
I found vulnerabilities in the line: ```abap IF table->*-is_initial = abap_false. INSERT (table->*-fake_table) FROM TABLE <con>. * <-- There is a problem here ENDIF. ENDLOOP. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap IF table->*-is_initial = abap_false. INSE...
1,515
Find vulnerabilities in this ABAP code snippet.
```abap TRY. param_name = create_parameter( _table-fake_table ). INSERT _table INTO TABLE table_list. CREATE DATA content TYPE STANDARD TABLE OF (_table-source_table). ASSIGN content->* TO <con>. SELECT * FROM (_table-source_table) INTO TABLE <con> WHERE (_table-where_restriction)....
I found vulnerabilities in the line: ```abap SELECT * FROM (_table-source_table) INTO TABLE <con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,518
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT tdc->get_param_list( ) REFERENCE INTO DATA(param) WHERE table_line <> 'ZEXPORT_TABLE_LIST'. CREATE DATA content TYPE STANDARD TABLE OF (param->*). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = param->* i_variant_name = variant CHANGING e_param_value = <con> ). ...
I found vulnerabilities in the line: ```abap MODIFY (param->*) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,523
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT tdc->get_param_list( ) REFERENCE INTO DATA(param) WHERE table_line <> 'ZEXPORT_TABLE_LIST'. CREATE DATA content TYPE STANDARD TABLE OF (param->*). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = param->* i_variant_name = variant CHANGING e_param_value = <con> ). ...
I found vulnerabilities in the line: ```abap DELETE FROM (param->*) WHERE (where_restriction). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (param->*) WHERE (where_restriction). INSERT (param->*) FROM TABLE <con>. * <-- There is a problem here ``` Explanati...
1,524
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT tdc->get_param_list( ) REFERENCE INTO DATA(param) WHERE table_line <> 'ZEXPORT_TABLE_LIST'. CREATE DATA content TYPE STANDARD TABLE OF (param->*). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = param->* i_variant_name = variant CHANGING e_param_value = <con> ). ...
I found vulnerabilities in the line: ```abap DELETE FROM (param->*). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (param->*). INSERT (param->*) FROM TABLE <con>. * <-- There is a problem here ``` Explanation: Modify only own DB tables | Potential dangerous ...
1,525
Find vulnerabilities in this ABAP code snippet.
```abap TRY. SELECT * FROM (_table-source_table) INTO TABLE @<con> WHERE (_table-where_restriction). CATCH cx_sy_dynamic_osql_error INTO DATA(osql_syntax_error). RAISE EXCEPTION TYPE zcx_export_where_clause_invali EXPORTING table = _table-source_table where_clause = _table-where...
I found vulnerabilities in the line: ```abap SELECT * FROM (_table-source_table) INTO TABLE @<con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,526
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = get_tdc_parameter_name( table->* ) i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FRO...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,531
Find vulnerabilities in this ABAP code snippet.
```abap METHOD delete. DATA: content TYPE REF TO data. FIELD-SYMBOLS: <content> TYPE STANDARD TABLE. CREATE DATA content TYPE STANDARD TABLE OF (table_conjunction-fake_table). ASSIGN content->* TO <content>. select_from_fake( EXPORTING table_conjunction = table_conjunction IMPORTING content = <c...
I found vulnerabilities in the line: ```abap DELETE (table_conjunction-fake_table) FROM TABLE <content>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,532
Find vulnerabilities in this ABAP code snippet.
```abap TRY. zexport_utils=>get_table_for_all_entries( EXPORTING table_conjunction = table_conjunction RECEIVING table_name = DATA(table_name) EXCEPTIONS not_for_all_entries_cond = 4 ). IF sy-subrc = 0. READ TABLE table_list REFERENCE INTO DATA(foe_conjunction) WITH KEY ...
I found vulnerabilities in the line: ```abap SELECT * FROM (data_source) INTO TABLE @content ``` Explanation: Potential dangerous statement Dynamic SQL.
1,533
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT cluster_objects REFERENCE INTO DATA(object). ASSIGN object->*-value->* TO <con>. READ TABLE table_list REFERENCE INTO DATA(_table) WITH KEY fake_table = CONV tabname( object->*-name ). ASSERT FIELDS object->*-name CONDITION sy-subrc = 0. DELETE FROM (object->*-name) WHERE (_table-...
I found vulnerabilities in the line: ```abap DELETE FROM (object->*-name) WHERE (_table->*-where_restriction). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (object->*-name) WHERE (_table->*-where_restriction). INSERT (object->*-name) FROM TABLE <con>. * <--...
1,537
Find vulnerabilities in this ABAP code snippet.
```abap TRY. _table-tdc_parameter_name = create_parameter( _table-fake_table ). INSERT _table INTO TABLE table_list. CREATE DATA content TYPE STANDARD TABLE OF (_table-source_table). ASSIGN content->* TO <con>. SELECT * FROM (_table-source_table) INTO TABLE @<con> WHERE (_table-whe...
I found vulnerabilities in the line: ```abap SELECT * FROM (_table-source_table) INTO TABLE @<con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,544
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = get_tdc_parameter_name( table->* ) i_variant_name = variant CHANGING e_param_value = <con> ). MODIFY (ta...
I found vulnerabilities in the line: ```abap MODIFY (table->*-fake_table) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,545
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = get_tdc_parameter_name( table->* ) i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FRO...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table) WHERE (table->*-where_restriction). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (table->*-fake_table) WHERE (table->*-where_restriction). INSERT (table->*-fake_table) FROM TABLE...
1,546
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT table_list REFERENCE INTO DATA(table). CREATE DATA content TYPE STANDARD TABLE OF (table->*-fake_table). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = get_tdc_parameter_name( table->* ) i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FRO...
I found vulnerabilities in the line: ```abap DELETE FROM (table->*-fake_table). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap DELETE FROM (table->*-fake_table). INSERT (table->*-fake_table) FROM TABLE <con>. * <-- There is a problem here ``` Explanation: Modify only own...
1,547
Find vulnerabilities in this ABAP code snippet.
```abap TRY. SELECT * FROM (_table-source_table) INTO TABLE <con> WHERE (_table-where_restriction). CATCH cx_sy_dynamic_osql_error. RAISE EXCEPTION TYPE zcx_export_where_clause_invali EXPORTING table = _table-source_table where_clause = _table-where_restriction. ENDTRY. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (_table-source_table) INTO TABLE <con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,548
Find vulnerabilities in this ABAP code snippet.
```abap method ADD_TABLE_TO_BUNDLE. DATA: name TYPE tabname. FIELD-SYMBOLS: <con> TYPE STANDARD TABLE. IF fake_table IS NOT INITIAL. name = fake_table. ELSE. name = table. ENDIF. IF line_exists( cluster_objects[ name = name ] ). RAISE EXCEPTION TYPE zcx_export_table_duplicate E...
I found vulnerabilities in the line: ```abap SELECT * FROM (table) INTO TABLE <con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,553
Find vulnerabilities in this ABAP code snippet.
```abap method ADD_TABLE_TO_BUNDLE. DATA: content TYPE REF TO data, param_name TYPE etp_name. FIELD-SYMBOLS: <con> TYPE STANDARD TABLE. IF fake_table IS NOT INITIAL. param_name = create_parameter( fake_table ). ELSE. param_name = create_parameter( table ). ENDIF. CREATE DATA con...
I found vulnerabilities in the line: ```abap SELECT * FROM (table) INTO TABLE <con> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,555
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT cluster_objects REFERENCE INTO DATA(object). ASSIGN object->*-value->* TO <con>. DELETE FROM (object->*-name). INSERT (object->*-name) FROM TABLE <con>. ENDLOOP. ```
I found vulnerabilities in the line: ```abap DELETE FROM (object->*-name). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap INSERT (object->*-name) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,557
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT tdc->get_param_list( ) REFERENCE INTO DATA(param). CREATE DATA content TYPE STANDARD TABLE OF (param->*). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = param->* i_variant_name = variant CHANGING e_param_value = <con> ). MODIFY (param->*) FROM TABLE <con>. E...
I found vulnerabilities in the line: ```abap MODIFY (param->*) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,558
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT tdc->get_param_list( ) REFERENCE INTO DATA(param). CREATE DATA content TYPE STANDARD TABLE OF (param->*). ASSIGN content->* TO <con>. tdc->get_value( EXPORTING i_param_name = param->* i_variant_name = variant CHANGING e_param_value = <con> ). DELETE FROM (param->*). INSERT (param...
I found vulnerabilities in the line: ```abap DELETE FROM (param->*). ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap INSERT (param->*) FROM TABLE <con>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,559
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_object_id. * Get object ID - internal call CALL 'OBJMGR_GET_INFO' ID 'OPNAME' FIELD 'GET_OBJID' "#EC CI_CCALL ID 'OBJID' FIELD rv_oid ID 'OBJ' FIELD io_ref. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap CALL 'OBJMGR_GET_INFO' ID 'OPNAME' FIELD 'GET_OBJID' ``` Explanation: Potential dangerous statement KERNEL CALL.
1,655
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_object_id. * Get object ID - internal call CALL 'OBJMGR_GET_INFO' ID 'OPNAME' FIELD 'GET_OBJID' ID 'OBJID' FIELD rv_oid ID 'OBJ' FIELD io_ref. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap CALL 'OBJMGR_GET_INFO' ID 'OPNAME' FIELD 'GET_OBJID' ``` Explanation: Potential dangerous statement KERNEL CALL.
1,656
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_object_id. * Get object ID - internal call CALL 'OBJMGR_GET_INFO' ID 'OPNAME' FIELD 'GET_OBJID' "#EC CI_CCALL ID 'OBJID' FIELD rv_oid ID 'OBJ' FIELD io_ref. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap CALL 'OBJMGR_GET_INFO' ID 'OPNAME' FIELD 'GET_OBJID' ``` Explanation: Potential dangerous statement KERNEL CALL.
1,657
Find vulnerabilities in this ABAP code snippet.
```abap CASE column. WHEN 'NAVIGATE'. CALL TRANSACTION 'SU01'. ENDCASE. ```
I found vulnerabilities in the line: ```abap CALL TRANSACTION 'SU01'. ``` Explanation: Add an authority check to CALL TRANSACTION.
1,661
Find vulnerabilities in this ABAP code snippet.
```abap CASE e_salv_function. WHEN 'SE38'. CALL TRANSACTION 'SE38'. ENDCASE. ```
I found vulnerabilities in the line: ```abap CALL TRANSACTION 'SE38'. ``` Explanation: Add an authority check to CALL TRANSACTION.
1,662
Find vulnerabilities in this ABAP code snippet.
```abap TRY. " Database view? SELECT COUNT( * ) INTO <lv_count> FROM (lv_table_name) WHERE (lv_where). RETURN. CATCH cx_sy_dynamic_osql_semantics. " Based on internal table lines[] <lv_count> = 0. ENDTRY. ```
I found vulnerabilities in the line: ```abap SELECT COUNT( * ) INTO <lv_count> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,667
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_db IS NOT INITIAL. SELECT * INTO CORRESPONDING FIELDS OF TABLE <lt_table> UP TO lv_count ROWS FROM (lv_db) WHERE (lv_where) ORDER BY (ls_sort_param-db_sort). ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT * INTO CORRESPONDING FIELDS OF TABLE <lt_table> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,668
Find vulnerabilities in this ABAP code snippet.
```abap METHOD do_update. UPDATE ztaqo_option SET (iv_set) WHERE package_id = p_pack AND option_id = p_opt_id. IF sy-subrc = 0. MESSAGE 'Data updated'(upd) TYPE 'S'. ELSE. MESSAGE 'Error during updating!'(edu) TYPE 'S' DISPLAY LIKE 'E'. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap UPDATE ztaqo_option ``` Explanation: Potential dangerous statement Dynamic SQL.
1,669
Find vulnerabilities in this ABAP code snippet.
```abap IF io_tech_request_context->has_inlinecount( ) = abap_true. DATA dbcount TYPE int4 . SELECT COUNT(*) INTO @dbcount FROM snwd_bpa AS bp INNER JOIN snwd_ad AS ad ON bp~address_guid = ad~node_key WHERE (where_clause). es_response_context-inlinecount = dbcount. "why is this a s...
I found vulnerabilities in the line: ```abap SELECT COUNT(*) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,670
Find vulnerabilities in this ABAP code snippet.
```abap TRY. " $inlinecount=allpages IF io_tech_request_context->has_inlinecount( ) = abap_true. DATA dbcount TYPE int4 . SELECT COUNT(*) INTO @dbcount FROM snwd_bpa AS bp INNER JOIN snwd_ad AS ad ON bp~address_guid = ad~node_key WHERE (where_clau...
I found vulnerabilities in the line: ```abap SELECT bp~node_key ``` Explanation: Potential dangerous statement Dynamic SQL.
1,671
Find vulnerabilities in this ABAP code snippet.
```abap IF io_tech_request_context->has_inlinecount( ) = abap_true. DATA dbcount TYPE int4 . SELECT COUNT(*) INTO dbcount FROM snwd_so WHERE (where_clause). es_response_context-inlinecount = dbcount. "why is this a string? ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT COUNT(*) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,672
Find vulnerabilities in this ABAP code snippet.
```abap TRY. " $inlinecount=allpages IF io_tech_request_context->has_inlinecount( ) = abap_true. DATA dbcount TYPE int4 . SELECT COUNT(*) INTO dbcount FROM snwd_so WHERE (where_clause). es_response_context-inlinecount = dbcount. "why is this a string? ENDIF...
I found vulnerabilities in the line: ```abap SELECT node_key * <-- There is a problem here INTO CORRESPONDING FIELDS OF @<entity> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,673
Find vulnerabilities in this ABAP code snippet.
```abap IF io_tech_request_context->has_inlinecount( ) = abap_true. DATA dbcount TYPE int4 . SELECT COUNT(*) INTO @dbcount FROM snwd_so WHERE (where_clause). es_response_context-inlinecount = dbcount. "why is this a string? ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT COUNT(*) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,676
Find vulnerabilities in this ABAP code snippet.
```abap TRY. " $inlinecount=allpages IF io_tech_request_context->has_inlinecount( ) = abap_true. DATA dbcount TYPE int4 . SELECT COUNT(*) INTO @dbcount FROM snwd_so WHERE (where_clause). es_response_context-inlinecount = dbcount. "why is this a string? ENDI...
I found vulnerabilities in the line: ```abap SELECT node_key * <-- There is a problem here INTO CORRESPONDING FIELDS OF @<entity> ``` Explanation: Potential dangerous statement Dynamic SQL.
1,677
Find vulnerabilities in this ABAP code snippet.
```abap *&---------------------------------------------------------------------* *& Report zbw_tools *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zbw_tools. * Define screen 101 as sub-screen SELECTION...
I found vulnerabilities in the line: ```abap CALL Transaction 'RSDS'. ``` Explanation: Add an authority check to CALL TRANSACTION. ```abap CALL Transaction 'RSOADSO'. ``` Explanation: Add an authority check to CALL TRANSACTION.
1,678
Find vulnerabilities in this ABAP code snippet.
```abap *&---------------------------------------------------------------------* *& Report zbw_tools *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT zbw_tools. * Define screen 101 as sub-screen SELECTION...
I found vulnerabilities in the line: ```abap CALL TRANSACTION 'RSDS'. ``` Explanation: Add an authority check to CALL TRANSACTION. ```abap CALL TRANSACTION 'RSOADSO'. ``` Explanation: Add an authority check to CALL TRANSACTION.
1,679
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_BOT_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_BOT WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_BOT WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,680
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_HOST_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_HOST WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_HOST WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,681
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_REPO_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_REPO WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_REPO WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,682
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_SETT_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_SETTINGS WHERE VERSION EQ '000' AND (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_SETTINGS WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,683
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_SYSGRP_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_SYSGRP WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_SYSGRP WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,684
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_SYSTEM_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_SYSTEM WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_SYSTEM WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,685
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZCILIB_SETT_V. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZCILIB_SETTINGS WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZCILIB_SETTINGS WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,699
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0 AND lv_cproject+1(1) CA ' S'. DELETE FROM tadir WHERE pgmid = @is_tadir-pgmid AND object = @is_tadir-object AND obj_name = @is_tadir-obj_name. IF sy-subrc = 0. rv_cleaned_up = abap_true. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tadir ``` Explanation: Modify only own DB tables.
1,703
Find vulnerabilities in this ABAP code snippet.
```abap IF p_forc = abap_true. DELETE FROM sotr_headu WHERE concept = @is_headu-concept. DELETE FROM sotr_textu WHERE concept = @is_headu-concept. DELETE FROM sotr_useu WHERE concept = @is_headu-concept. DELETE FROM sotr_aliau WHERE concept = @is_headu-concept. WRITE: 'Force Deleted' COLOR COL_POSITIVE....
I found vulnerabilities in the line: ```abap DELETE FROM sotr_headu WHERE concept = @is_headu-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_textu WHERE concept = @is_headu-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_useu WHERE concept = @is_headu-concep...
1,704
Find vulnerabilities in this ABAP code snippet.
```abap IF p_forc = abap_true. DELETE FROM sotr_head WHERE concept = @is_head-concept. DELETE FROM sotr_text WHERE concept = @is_head-concept. DELETE FROM sotr_use WHERE concept = @is_head-concept. DELETE FROM sotr_alia WHERE concept = @is_head-concept. WRITE: 'Force Deleted' COLOR COL_POSITIVE. ENDIF....
I found vulnerabilities in the line: ```abap DELETE FROM sotr_head WHERE concept = @is_head-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_text WHERE concept = @is_head-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_use WHERE concept = @is_head-concept. ```...
1,705
Find vulnerabilities in this ABAP code snippet.
```abap IF ( sy-subrc <> 0 AND p_forc = abap_true ) OR sy-subrc = 9. DELETE FROM tadir WHERE pgmid = 'R3TR' AND object = @iv_obj_type AND obj_name = @iv_obj_name. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tadir ``` Explanation: Modify only own DB tables.
1,706
Find vulnerabilities in this ABAP code snippet.
```abap METHOD delete. DELETE REPORT co_report_name. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Latest build: Deletion failed. Subrc = { sy-subrc }| ). ENDIF. delete_tadir_entry( ). DATA(lo_package) = NEW zcl_abapgit_object_devc( is_item = VALUE #( obj_type = 'DEVC' ...
I found vulnerabilities in the line: ```abap DELETE REPORT co_report_name. ``` Explanation: Potential dangerous statement DELETE REPORT.
1,711
Find vulnerabilities in this ABAP code snippet.
```abap METHOD install. IF mi_package->exists( ) = abap_false. mi_package->create( VALUE #( as4user = sy-uname devclass = co_package ctext = |abapGit latest build| ) ). ENDIF. INSERT REPOR...
I found vulnerabilities in the line: ```abap INSERT REPORT co_report_name ``` Explanation: Potential dangerous statement INSERT REPORT.
1,712
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc <> 0 AND sy-msgid = 'TR' AND sy-msgno = '024'. " Object directory entry cannot be deleted, since the object is distributed (TR 024) " Force deletion of TADIR DELETE FROM tadir WHERE pgmid = 'R3TR' AND object = @iv_obj_type AND obj_name = @iv_obj_name. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tadir ``` Explanation: Modify only own DB tables.
1,713
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc <> 0. " Object directory entry cannot be deleted, since the object is distributed (TR 024) " Force deletion of TADIR DELETE FROM tadir WHERE pgmid = 'R3TR' AND object = @iv_obj_type AND obj_name = @iv_obj_name. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tadir ``` Explanation: Modify only own DB tables.
1,715
Find vulnerabilities in this ABAP code snippet.
```abap IF p_forc = abap_true. DELETE FROM sotr_head WHERE concept = @ls_head-concept. DELETE FROM sotr_text WHERE concept = @ls_head-concept. DELETE FROM sotr_use WHERE concept = @ls_head-concept. DELETE FROM sotr_alia WHERE concept = @ls_head-concept. WRITE: 'Force Deleted' COLOR COL_POSITIVE. ENDIF....
I found vulnerabilities in the line: ```abap DELETE FROM sotr_head WHERE concept = @ls_head-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_text WHERE concept = @ls_head-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_use WHERE concept = @ls_head-concept. ```...
1,726
Find vulnerabilities in this ABAP code snippet.
```abap IF p_forc = abap_true. DELETE FROM sotr_headu WHERE concept = @ls_headu-concept. DELETE FROM sotr_textu WHERE concept = @ls_headu-concept. DELETE FROM sotr_useu WHERE concept = @ls_headu-concept. DELETE FROM sotr_aliau WHERE concept = @ls_headu-concept. WRITE: 'Force Deleted' COLOR COL_POSITIVE....
I found vulnerabilities in the line: ```abap DELETE FROM sotr_headu WHERE concept = @ls_headu-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_textu WHERE concept = @ls_headu-concept. ``` Explanation: Modify only own DB tables. ```abap DELETE FROM sotr_useu WHERE concept = @ls_headu-concep...
1,727
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc <> 0 AND p_forc = abap_true. DELETE FROM tadir WHERE pgmid = 'R3TR' AND object = @iv_obj_type AND obj_name = @iv_obj_name. ENDIF. ```
I found vulnerabilities in the line: ```abap DELETE FROM tadir ``` Explanation: Modify only own DB tables.
1,728
Find vulnerabilities in this ABAP code snippet.
```abap METHOD delete. DELETE REPORT co_report_name. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Latest build: Deletion failed. Subrc = { sy-subrc }| ). ENDIF. delete_tadir_entry( ). DATA(lo_package) = NEW zcl_abapgit_object_devc( is_item = VALUE #( obj_type = 'DEVC' ...
I found vulnerabilities in the line: ```abap DELETE REPORT co_report_name. ``` Explanation: Potential dangerous statement DELETE REPORT.
1,730
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0. SELECT profile FROM (profile_db) INTO TABLE result. IF sy-subrc = 0. RETURN. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT profile FROM (profile_db) INTO TABLE result. ``` Explanation: Potential dangerous statement Dynamic SQL.
1,739
Find vulnerabilities in this ABAP code snippet.
```abap TRY. SELECT SINGLE devclass FROM tadir INTO @DATA(package) WHERE pgmid = 'R3TR' AND object = 'TABL' AND obj_name = @obj_name. IF sy-subrc NE 0. result = abap_false. RETURN. ENDIF. DATA(checked_object) = cl_abap_dyn_prg=>check_table_name_str( ...
I found vulnerabilities in the line: ```abap SELECT SINGLE * FROM (checked_object) INTO <table_structure>. ``` Explanation: Potential dangerous statement Dynamic SQL.
1,740
Find vulnerabilities in this ABAP code snippet.
```abap METHOD activate_check. is_check_compatible( name ). INSERT scitests FROM name. IF sy-subrc <> 0. RAISE EXCEPTION TYPE cx_failed. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap INSERT scitests FROM name. ``` Explanation: Modify only own DB tables.
1,741
Find vulnerabilities in this ABAP code snippet.
```abap METHOD deactivate_check. is_check_compatible( name ). DELETE FROM scitests WHERE name = name. IF sy-subrc <> 0. RAISE EXCEPTION TYPE cx_failed. ENDIF. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap DELETE FROM scitests WHERE name = name. ``` Explanation: Modify only own DB tables.
1,742
Find vulnerabilities in this ABAP code snippet.
```abap CLASS lcl_cute_table IMPLEMENTATION. METHOD lif_cute~edit. lif_cute~table_helper = lcl_cute_tab_helper=>get_instance( lif_cute~source_information ). lif_cute~read( ). edit_grid( ). ENDMETHOD. METHOD lif_cute~set_source. lif_cute~source_information = source_info. ENDMETHOD. M...
I found vulnerabilities in the line: ```abap SELECT * FROM (lif_cute~source_information->header-tabname) ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap MODIFY (lif_cute~source_information->header-tabname) ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,752
Find vulnerabilities in this ABAP code snippet.
```abap CLASS lcl_cute_table IMPLEMENTATION. METHOD lif_cute~edit. lif_cute~container = container. lif_cute~table_helper = lcl_cute_tab_helper=>get_instance( lif_cute~source_information ). lif_cute~read( ). edit_grid( ). ENDMETHOD. METHOD lif_cute~set_source. lif_cute~source_informatio...
I found vulnerabilities in the line: ```abap SELECT * FROM (lif_cute~source_information->name) ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap MODIFY (lif_cute~source_information->name) ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,754
Find vulnerabilities in this ABAP code snippet.
```abap METHOD read_table_data. " Read data of the table to be scrambled DATA: lr_data TYPE REF TO data ,lr_data_db TYPE REF TO data . CREATE DATA lr_data TYPE TABLE OF (iv_tabname). ASSIGN lr_data->* TO <gfs_tab>. CREATE DATA lr_data_db TYPE TABLE OF (iv_tab...
I found vulnerabilities in the line: ```abap SELECT * "dynamic select * <-- There is a problem here FROM (iv_tabname) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,756
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT <gfs_tab> ASSIGNING FIELD-SYMBOL(<fs_line>). CLEAR lv_random_c. UNASSIGN <lfs>. ASSIGN COMPONENT iv_fieldname OF STRUCTURE <fs_line> TO <lfs>. CHECK sy-subrc IS INITIAL. DESCRIBE FIELD <lfs> TYPE DATA(lv_type). "data type. lv_string = <lfs>. IF lv_string...
I found vulnerabilities in the line: ```abap DATA(lv_alphabet) = CONV char200( '0123456789' ). CALL 'RSEC_GEN_PASSWD' * <-- There is a problem here ID 'ALPHABET' FIELD lv_alphabet ID 'ALPHABETLEN' FIELD 10 ``` Explanation: Potential dangerous statement KERNEL CALL.
1,757
Find vulnerabilities in this ABAP code snippet.
```abap IF lv_field_len <> 0. * CALL FUNCTION 'GENERAL_GET_RANDOM_STRING' "rel2 * EXPORTING * number_chars = lv_field_len " Specifies the number of generated chars * IMPORTING * random_string = lv_string. " Generated string l...
I found vulnerabilities in the line: ```abap lv_alphabet = CONV char200( 'ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789@$%&/\()=+-#~ []{}' ). CALL 'RSEC_GEN_PASSWD' * <-- There is a problem here ID 'ALPHABET' FIELD lv_alphabet ID 'ALPHABETLEN' FIELD 77 ``` Explanation: Potential dangerous statement...
1,758
Find vulnerabilities in this ABAP code snippet.
```abap TRY. DELETE (iv_tabname) FROM TABLE <gfs_tab_db>. "delete IF sy-subrc <> 0. CALL FUNCTION 'DB_ROLLBACK'. bal_log_msg_add( is_msg = VALUE bal_s_msg( msgty = 'E' msgno = '009...
I found vulnerabilities in the line: ```abap DELETE (iv_tabname) FROM TABLE <gfs_tab_db>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. ```abap MODIFY (iv_tabname) FROM TABLE <gfs_tab> . ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,759
Find vulnerabilities in this ABAP code snippet.
```abap FORM GET_DATA_ZBC_V_IDOC_CFG. PERFORM VIM_FILL_WHERETAB. *.read data from database.............................................* REFRESH TOTAL. CLEAR TOTAL. SELECT * FROM ZBC_IDOC_CFG WHERE (VIM_WHERETAB) . ```
I found vulnerabilities in the line: ```abap SELECT * FROM ZBC_IDOC_CFG WHERE ``` Explanation: Potential dangerous statement Dynamic SQL.
1,760
Find vulnerabilities in this ABAP code snippet.
```abap METHOD export_all. TYPES: BEGIN OF ty_pdat_line, paramname TYPE string, varname TYPE c LENGTH 255, END OF ty_pdat_line, ty_pdat_lines TYPE STANDARD TABLE OF ty_pdat_line WITH EMPTY KEY, BEGIN OF ty_pdat_level3, p0 TYPE REF TO data, p1 TYPE REF TO data, ...
I found vulnerabilities in the line: ```abap MODIFY (tabname) FROM TABLE <table>. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,761
Find vulnerabilities in this ABAP code snippet.
```abap METHOD import_as_xstring. DATA: ref_table TYPE REF TO data, where TYPE string, length TYPE i. FIELD-SYMBOLS: <id_field> TYPE ty_id_field, <id_new_field> TYPE clike, <table> TYPE STANDARD TABLE, <wa_fieldname> TYPE any, <line_bytes> TY...
I found vulnerabilities in the line: ```abap SELECT * FROM (tabname) CLIENT SPECIFIED ``` Explanation: Potential dangerous statement Dynamic SQL.
1,762
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT lt_objects ASSIGNING <object>. DELETE FROM /inw/enhema_set WHERE guid = <object>-object_guid. IF sy-subrc = 0. WRITE: / 'Einstellungen für Objekt', <object>-control_name, 'gelöscht.'. ELSE. WRITE: / 'Keine Einstellungen vorhanden für', <object>-control_name. ENDIF. ENDLOOP. ```
I found vulnerabilities in the line: ```abap DELETE FROM /inw/enhema_set WHERE guid = <object>-object_guid. ``` Explanation: Modify only own DB tables.
1,763
Find vulnerabilities in this ABAP code snippet.
```abap TRY . SELECT * FROM (ms_settings-structure_name) INTO TABLE <data> UP TO 40 ROWS. CATCH cx_root INTO DATA(lx_root). MESSAGE lx_root TYPE 'S'. ENDTRY. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (ms_settings-structure_name) INTO TABLE <data> UP TO 40 ROWS. ``` Explanation: Potential dangerous statement Dynamic SQL.
1,764
Find vulnerabilities in this ABAP code snippet.
```abap TRY . SELECT * FROM (zguidrasil_setting_gridp-structure_name) INTO TABLE <data> UP TO 40 ROWS. CATCH cx_root INTO DATA(lx_root). MESSAGE lx_root TYPE 'I'. RETURN. ENDTRY. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (zguidrasil_setting_gridp-structure_name) ``` Explanation: Potential dangerous statement Dynamic SQL.
1,765
Find vulnerabilities in this ABAP code snippet.
```abap METHOD get_kernel_release. * Kernel Info retrival copied from FuGrp SHSY Module get_kinfo TYPES: BEGIN OF ty_kernel_info, key TYPE c LENGTH 21, data TYPE c LENGTH 400, END OF ty_kernel_info. DATA: lt_kernel_info TYPE STANDARD TABLE OF ty_kernel_info, lo_kernel_inf...
I found vulnerabilities in the line: ```abap CALL 'SAPCORE' ``` Explanation: Potential dangerous statement KERNEL CALL.
1,767
Find vulnerabilities in this ABAP code snippet.
```abap METHOD set_user_parameter. " Save parameter to user record DATA ls_usr05 TYPE usr05. ls_usr05-mandt = sy-mandt. ls_usr05-bname = sy-uname. ls_usr05-parid = iv_parameter. ls_usr05-parva = iv_value. MODIFY usr05 FROM ls_usr05 ##SUBRC_OK. ENDMETHOD. ```
I found vulnerabilities in the line: ```abap MODIFY usr05 FROM ls_usr05 ##SUBRC_OK. ``` Explanation: Modify only own DB tables.
1,768
Find vulnerabilities in this ABAP code snippet.
```abap TRY. CREATE DATA lr_data TYPE ('SPFL_PARAMETER_LIST_T'). ASSIGN lr_data->* TO <lt_parameters> ##SUBRC_OK. " Dynamic call since class is not available in lower releases CALL METHOD ('CL_SPFL_PROFILE_PARAMETER')=>('GET_ALL_PARAMETER') IMPORTING parameter_sub = <lt_parameters>...
I found vulnerabilities in the line: ```abap CALL 'C_SAPGALLPARAM' ``` Explanation: Potential dangerous statement KERNEL CALL.
1,769
Find vulnerabilities in this ABAP code snippet.
```abap METHOD sync. " Installer persistence CONSTANTS lc_tabname TYPE tabname VALUE 'ZMBTINST'. DATA: lv_name TYPE string, ls_inst TYPE ty_inst, ls_cont TYPE ty_content. lv_name = io_tool->get_name( ). SELECT SINGLE * FROM (lc_tabname) INTO ls_cont WHERE name = lv_name. IF sy-sub...
I found vulnerabilities in the line: ```abap SELECT SINGLE * FROM (lc_tabname) INTO ls_cont WHERE name = lv_name. ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap INSERT (lc_tabname) FROM ls_cont. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,770
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0. ls_inst-pack = io_tool->get_package( ). ls_inst-version = io_tool->get_version( ). ls_inst-sem_version = /mbtools/cl_version=>convert_string_to_version( ls_inst-version ). ls_inst-description = io_tool->get_description( ). ls_inst-source_type = 'INT...
I found vulnerabilities in the line: ```abap UPDATE (lc_tabname) FROM ls_cont. ``` Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
1,771
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT it_where INTO lv_where. SELECT * FROM (iv_name) APPENDING TABLE <lg_tab> WHERE (lv_where). ENDLOOP. ```
I found vulnerabilities in the line: ```abap ASSIGN rr_data->* TO <lg_tab>. LOOP AT it_where INTO lv_where. SELECT * FROM (iv_name) APPENDING TABLE <lg_tab> WHERE (lv_where). * <-- There is a problem here ENDLOOP. IF lines( it_where ) = 0. SELECT * FROM (iv_name) INTO TABLE <lg_tab>. ``` Explanation: Potential dang...
1,772
Find vulnerabilities in this ABAP code snippet.
```abap IF lines( it_where ) = 0. SELECT * FROM (iv_name) INTO TABLE <lg_tab>. ENDIF. ```
I found vulnerabilities in the line: ```abap SELECT * FROM (iv_name) APPENDING TABLE <lg_tab> WHERE (lv_where). ENDLOOP. IF lines( it_where ) = 0. SELECT * FROM (iv_name) INTO TABLE <lg_tab>. * <-- There is a problem here ENDIF. ENDMETHOD. ``` Explanation: Potential dangerous statement Dynamic SQL. ```abap SELECT * FRO...
1,773
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 STATE 'A' ``` 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 ``` Expla...
1,779
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0 AND is_progdir-varcl <> ls_progdir_new-varcl. UPDATE progdir SET varcl = is_progdir-varcl WHERE name = ls_progdir_new-name AND state = ls_progdir_new-state. "#EC CI_SUBRC ENDIF. ```
I found vulnerabilities in the line: ```abap UPDATE progdir SET varcl = is_progdir-varcl ``` Explanation: Modify only own DB tables.
1,781
Find vulnerabilities in this ABAP code snippet.
```abap IF lt_old <> it_source. INSERT REPORT iv_program FROM it_source. ASSERT sy-subrc = 0. rv_updated = abap_true. ELSE. ```
I found vulnerabilities in the line: ```abap IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |Fatal error. Include { iv_program } should have been created previously!| ). ENDIF. IF lt_old <> it_source. INSERT REPORT iv_program FROM it_source. * <-- There is a problem here ASSERT sy-subrc = 0. rv_updated = abap_...
1,786
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_msag IMPLEMENTATION. METHOD delete_documentation. DATA: lv_key_s TYPE dokhl-object. CLEAR lv_key_s. CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE' EXPORTING docu_id = 'NA' element = iv_message_id addition = ' ' IMPORTING...
I found vulnerabilities in the line: ```abap MODIFY t100a FROM ls_t100a. ``` Explanation: Modify only own DB tables. ```abap MODIFY t100t FROM ls_t100t. ``` Explanation: Modify only own DB tables.
1,795
Find vulnerabilities in this ABAP code snippet.
```abap LOOP AT lt_i18n_langs ASSIGNING <lv_lang>. ls_trnspacett-namespace = iv_namespace. READ TABLE lt_nspc_texts ASSIGNING <ls_nspc_text> WITH KEY spras = <lv_lang>. IF sy-subrc <> 0. zcx_abapgit_exception=>raise( |NSPC_TEXTS cannot find lang { <lv_lang> } in XML| ). ENDIF. MOVE-CORRESPONDING <ls...
I found vulnerabilities in the line: ```abap MODIFY trnspacett FROM ls_trnspacett. * <-- There is a problem here IF sy-subrc <> 0. ``` Explanation: Modify only own DB tables.
1,797
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc <> 0. INSERT trnspacett FROM ls_trnspacett. ENDIF. ```
I found vulnerabilities in the line: ```abap IF sy-subrc <> 0. INSERT trnspacett FROM ls_trnspacett. * <-- There is a problem here ENDIF. ``` Explanation: Modify only own DB tables.
1,798
Find vulnerabilities in this ABAP code snippet.
```abap CLASS zcl_abapgit_object_nspc IMPLEMENTATION. METHOD add_to_transport. DATA: li_sap_package TYPE REF TO zif_abapgit_sap_package. li_sap_package = zcl_abapinst_factory=>get_sap_package( iv_package ). IF li_sap_package->are_changes_recorded_in_tr_req( ) = abap_true. corr_insert(...
I found vulnerabilities in the line: ```abap MODIFY trnspacet FROM ls_trnspacet. ``` Explanation: Modify only own DB tables. ```abap INSERT trnspacet FROM ls_trnspacet. ``` Explanation: Modify only own DB tables. ```abap ls_trnspacett-namespace = ls_nspc-namespace. INSERT trnspacett FROM ls_trnspacett. * <-- There is a...
1,799
Find vulnerabilities in this ABAP code snippet.
```abap IF sy-subrc = 0. ls_trnspacett-descriptn = ls_nspc_text-descriptn. ls_trnspacett-owner = ls_nspc_text-owner. MODIFY trnspacett FROM ls_trnspacett. ELSE. ```
I found vulnerabilities in the line: ```abap ls_trnspacett-owner = ls_nspc_text-owner. MODIFY trnspacett FROM ls_trnspacett. * <-- There is a problem here ELSE. ``` Explanation: Modify only own DB tables.
1,800