Instruction stringclasses 1
value | Input stringlengths 79 33k | Response stringlengths 106 9.29k | __index_level_0__ int64 0 2.83k |
|---|---|---|---|
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS z2ui5_cl_tool_app_03 DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
DATA mr_table TYPE REF TO data.
DATA mv_name TYPE string.
TYPES:
BEGIN OF ty_s_token,
key TYPE string,
text TYPE string,
visible TYPE abap_bool,
... | I found vulnerabilities in the line:
```abap
SELECT FROM (mv_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 0 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS z2ui5_cl_tool_app_03 DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
DATA mr_table TYPE REF TO data.
DATA mv_name TYPE string.
TYPES:
BEGIN OF ty_s_token,
key TYPE string,
text TYPE string,
visible TYPE abap_bool,
... | I found vulnerabilities in the line:
```abap
SELECT FROM (mv_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 1 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD read_db.
SELECT *
FROM (i_tablename)
INTO TABLE rt_db.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 2 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD select_entries.
TYPES: BEGIN OF lty_result.
INCLUDE TYPE gty_mapping.
TYPES: detailid TYPE zaap_l_detailid,
annotationname TYPE seoclsname,
END OF lty_result.
DATA: lt_result TYPE STANDARD TABLE OF lty_result,
lt_condition TYPE stringtab,
lv_... | I found vulnerabilities in the line:
```abap
SELECT * INTO CORRESPONDING FIELDS OF TABLE @lt_result
```
Explanation: Potential dangerous statement Dynamic SQL. | 4 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD generate_subroutine.
DATA syntax_error_info TYPE zcx_brainfuck_code_gen_error=>t_syntax_error.
GENERATE SUBROUTINE POOL it_prog_src NAME DATA(dyn_prog)
MESSAGE syntax_error_info-message
LINE syntax_error_info-li... | I found vulnerabilities in the line:
```abap
GENERATE SUBROUTINE POOL it_prog_src NAME DATA(dyn_prog)
```
Explanation: Potential dangerous statement GENERATE SUBROUTINE. | 5 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD generate_program.
DATA:
prog_src TYPE tt_prog_src.
CLEAR: et_source_code.
" Program header:
prog_src = get_dyn_program_header( ).
LOOP AT it_instructions ASSIGNING FIELD-SYMBOL(<instruction>).
DATA(type) = <instruction>->type.
CASE type.
WHEN zif_brainfuck_i... | I found vulnerabilities in the line:
```abap
GENERATE SUBROUTINE POOL prog_src NAME DATA(dyn_prog).
```
Explanation: Potential dangerous statement GENERATE SUBROUTINE. | 6 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD generate_matcher_program.
DATA: source_lines TYPE TABLE OF string.
source_lines = VALUE #(
( |REPORT zpcre_matcher.| )
( |CLASS lcl_pcre_matcher DEFINITION CREATE PRIVATE.| )
( | PUBLIC SECTION.| )
( | CLASS-METHODS find_next_match| )
( | IMPORTING| )
( | ... | I found vulnerabilities in the line:
```abap
GENERATE SUBROUTINE POOL source_lines
```
Explanation: Potential dangerous statement GENERATE SUBROUTINE. | 8 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_adcoset_search_scope IMPLEMENTATION.
METHOD constructor.
super->constructor( ).
init( search_scope ).
ENDMETHOD.
METHOD zif_adcoset_search_scope~next_package.
DATA(max_rows) = get_max_rows( ).
SELECT obj~objecttype AS type,
obj~objectname AS... | I found vulnerabilities in the line:
```abap
SELECT obj~objecttype AS type,
```
Explanation: Potential dangerous statement Dynamic SQL. | 9 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD determine_count.
config_dyn_where_clauses( ).
resolve_packages( ).
DATA(selection_limit) = COND i( WHEN max_objects > 0
THEN max_objects + 1
ELSE 0 ).
SELECT COUNT(*)
FROM (dyn_from_clause)
WHERE (tags_dyn_whe... | I found vulnerabilities in the line:
```abap
SELECT COUNT(*)
```
Explanation: Potential dangerous statement Dynamic SQL. | 10 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_adcoset_search_scope IMPLEMENTATION.
METHOD constructor.
IF search_scope-scope_id IS NOT INITIAL.
init_scope_from_db( search_scope ).
ELSE.
init_scope( search_scope ).
ENDIF.
ENDMETHOD.
METHOD zif_adcoset_search_scope~count.
result = object_count.
... | I found vulnerabilities in the line:
```abap
SELECT obj~object_type AS type,
```
Explanation: Potential dangerous statement Dynamic SQL. | 11 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD determine_count.
DATA(selection_limit) = COND i(
WHEN max_objects > 0 THEN max_objects + 1
ELSE 0 ).
SELECT COUNT(*)
FROM (dyn_from_clause)
WHERE (tags_dyn_where_cond)
AND obj~object_type IN @search_ranges-object_type_range
AND obj~object_nam... | I found vulnerabilities in the line:
```abap
SELECT COUNT(*)
```
Explanation: Potential dangerous statement Dynamic SQL. | 12 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_adcoset_search_scope IMPLEMENTATION.
METHOD constructor.
IF search_scope-scope_id IS NOT INITIAL.
init_scope_from_db( search_scope ).
ELSE.
init_scope( search_scope ).
ENDIF.
ENDMETHOD.
METHOD zif_adcoset_search_scope~count.
result = object_count.
ENDMET... | I found vulnerabilities in the line:
```abap
SELECT obj~object_type AS type,
```
Explanation: Potential dangerous statement Dynamic SQL. | 13 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD determine_count.
DATA(selection_limit) = COND i(
WHEN max_objects > 0
THEN max_objects + 1
ELSE 0 ).
SELECT COUNT(*)
FROM (dyn_from_clause)
WHERE (tags_dyn_where_cond)
AND obj~object_type IN @search_ranges-object_type_range
AND obj~object_name IN @search_ran... | I found vulnerabilities in the line:
```abap
SELECT COUNT(*)
```
Explanation: Potential dangerous statement Dynamic SQL. | 14 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_dbbr_cds_navigator IMPLEMENTATION.
METHOD constructor.
mr_t_data = ir_t_data.
ms_association = is_association.
mt_source_index = it_source_index.
mr_source_cds_view = ir_source_cds_view.
mr_source_tabfields = ir_source_tabfields.
mt_nav_breadcrumbs ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_START_SEL'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 15 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD open_in_sql_console.
DATA(lv_query) = get_sql_query( if_for_console = abap_true ).
EXPORT
query = lv_query
TO MEMORY ID zcl_dbbr_sql_console=>c_sqlquery_export_mem_id.
CALL TRANSACTION 'ZDBBR_SQLCONSOLE'.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_SQLCONSOLE'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 16 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY .
SELECT (lt_select) FROM (<ls_add_text>-text_table) INTO CORRESPONDING FIELDS OF TABLE <lt_text_cache>
WHERE (lt_where).
CATCH cx_sy_open_sql_error.
CONTINUE.
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
SELECT (lt_select) FROM (<ls_add_text>-text_table) INTO CORRESPONDING FIELDS OF TABLE <lt_text_cache>
```
Explanation: Potential dangerous statement Dynamic SQL. | 17 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_dbbr_cds_navigator IMPLEMENTATION.
METHOD constructor.
mr_t_data = ir_t_data.
ms_association = is_association.
mt_source_index = it_source_index.
mr_source_cds_view = ir_source_cds_view.
mr_source_tabfields = ir_source_tabfields.
mt_nav_breadcrumbs ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_START_SEL'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 18 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @<lt_data>.
rv_size = lines( <lt_data> ).
CLEAR <lt_data>.
CATCH cx_root INTO lx_root.
RAISE EXCEPTION TYPE zcx_dbbr_... | I found vulnerabilities in the line:
```abap
ASSIGN ir_t_data->* TO <lt_data>.
TRY.
SELECT (mt_select) * <-- There is a problem here
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
```
Explanation: Potential dangerous statement Dynamic SQL. | 21 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT COUNT( * )
FROM (mt_from)
WHERE (mt_where)
INTO @rv_size.
CATCH cx_root INTO lx_root.
RAISE EXCEPTION TYPE zcx_dbbr_selection_common
EXPORTING
previous = lx_root.
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
SELECT COUNT( * )
```
Explanation: Potential dangerous statement Dynamic SQL. | 22 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD generate_subroutine.
DATA: lt_lines TYPE zdbbr_string_t,
lv_prog TYPE string,
lv_error_message TYPE string,
lv_code_line TYPE string,
lv_for_all_suffix TYPE string,
lv_query_offset TYPE i.
lt_lines = VALUE #(
*... insert pro... | I found vulnerabilities in the line:
```abap
GENERATE SUBROUTINE POOL lt_lines
```
Explanation: Potential dangerous statement GENERATE SUBROUTINE. | 23 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @et_data
UP TO @mv_max_size ROWS.
CATCH cx_root INTO lx_root.
RAISE EXCEPTION TYPE zcx_dbbr_selection_common
EXPORT... | I found vulnerabilities in the line:
```abap
ELSE.
TRY.
SELECT (mt_select) * <-- There is a problem here
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
```
Explanation: Potential dangerous statement Dynamic SQL. | 24 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT DISTINCT (mt_select)
FROM (mt_from)
WHERE (mt_where)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @mt_result
UP TO @mr_search_query->mv_max_rows ROWS.
CATCH cx_sy_open_sql_error INTO DATA(lx_sql_error).
RAISE EXCEPTION TYPE zcx_dbbr_object_s... | I found vulnerabilities in the line:
```abap
SELECT DISTINCT (mt_select)
```
Explanation: Potential dangerous statement Dynamic SQL. | 25 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CASE mv_current_function.
WHEN zif_dbbr_c_selscreen_functions=>edit_alternative_coltexts.
edit_alternative_col_texts( ).
WHEN zif_dbbr_c_selscreen_functions=>select_option_equal.
set_select_option( iv_current_line = lv_current_index
iv_option = zif_dbbr_global_con... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_QUERYCATALOG'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 26 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete_data.
create_where_clause( ).
create_from_clause( ).
CHECK select_data( if_count_lines = abap_true ).
" if no selection occurred, prevent screen visibility
IF ms_control_info-number <= 0.
MESSAGE i060(zdbbr_info).
ELSE.
DATA(lv_number_of_lines) = |{ ms_control_inf... | I found vulnerabilities in the line:
```abap
DELETE FROM (mt_from)
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 28 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT DISTINCT (lt_select) INTO CORRESPONDING FIELDS OF TABLE <lt_cache>
FROM (cs_post_join-join_table)
FOR ALL ENTRIES IN it_table
WHERE (lt_where).
CATCH cx_root INTO DATA(lx_root).
RAISE EXCEPTION TYPE zcx_dbbr_selection_common
EXPORTING
previous = lx_root... | I found vulnerabilities in the line:
```abap
SELECT DISTINCT (lt_select) INTO CORRESPONDING FIELDS OF TABLE <lt_cache>
```
Explanation: Potential dangerous statement Dynamic SQL. | 29 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT (lt_select) APPENDING CORRESPONDING FIELDS OF TABLE <lt_cache_copy>
FROM (cs_post_join-join_table)
WHERE (lt_where).
CATCH cx_root INTO DATA(lx_root).
RAISE EXCEPTION TYPE zcx_dbbr_selection_common
EXPORTING
previous = lx_root.
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
SELECT (lt_select) APPENDING CORRESPONDING FIELDS OF TABLE <lt_cache_copy>
```
Explanation: Potential dangerous statement Dynamic SQL. | 30 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_dbbr_cds_navigator IMPLEMENTATION.
METHOD constructor.
mr_t_data = ir_t_data.
ms_association = is_association.
mt_source_index = it_source_index.
mr_source_cds_view = ir_source_cds_view.
mr_source_tabfields = ir_source_tabfields.
mt_nav_breadcrumbs ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_START_SEL'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 33 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT
SINGLE
FROM (iv_entity_id)
FIELDS (lt_selfields)
INTO @<lv_data>.
IF sy-subrc = 0 AND sy-dbcnt > 0.
rf_data_exists = abap_true.
ENDIF.
CATCH cx_root INTO DATA(lx_root).
* MESSAGE lx_root->get_text( ) TYPE 'I'.
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
TRY.
SELECT * <-- There is a problem here
SINGLE
```
Explanation: Potential dangerous statement Dynamic SQL. | 36 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD generate_subroutine.
DATA: lt_lines TYPE string_table,
lv_prog TYPE string,
lv_error_message TYPE string,
lv_code_line TYPE string,
lv_for_all_suffix TYPE string,
lv_query_offset TYPE i.
lt_lines = VALUE #(
*... insert progr... | I found vulnerabilities in the line:
```abap
GENERATE SUBROUTINE POOL lt_lines
```
Explanation: Potential dangerous statement GENERATE SUBROUTINE. | 39 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_dbbr_cds_navigator IMPLEMENTATION.
METHOD constructor.
mr_t_data = ir_t_data.
ms_association = is_association.
mt_source_index = it_source_index.
mr_source_cds_view = ir_source_cds_view.
mr_source_tabfields = ir_source_tabfields.
mt_nav_breadcrumbs ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_START_SEL'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 42 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @<lt_data>.
rv_size = lines( <lt_data> ).
CLEAR <lt_data>.
CATCH cx_root INTO lx_root.
RA... | I found vulnerabilities in the line:
```abap
ASSIGN ir_t_data->* TO <lt_data>.
TRY.
SELECT (mt_select) * <-- There is a problem here
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
```
Explanation: Potential dangerous statement Dynamic SQL. | 45 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @et_data
UP TO @mv_max_size ROWS.
CATCH cx_root INTO lx_root.
RAISE EXCEPTION TYPE zcx_dbbr_se... | I found vulnerabilities in the line:
```abap
DATA: lx_root TYPE REF TO cx_root.
TRY.
SELECT (mt_select) * <-- There is a problem here
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
```
Explanation: Potential dangerous statement Dynamic SQL. | 46 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_dbbr_cds_navigator IMPLEMENTATION.
METHOD constructor.
mr_t_data = ir_t_data.
ms_association = is_association.
mt_source_index = it_source_index.
mr_source_cds_view = ir_source_cds_view.
mr_source_tabfields = ir_source_tabfields.
mt_nav_breadcrumbs ... | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'ZDBBR_START_SEL'.
```
Explanation: Add an authority check to CALL TRANSACTION. | 49 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
cut->zif_aff_writer~set_formatting_option( formatting ).
cut->zif_aff_writer~set_name_mappings( name_mappings ).
cut->zif_aff_writer~set_abap_value_mappings( value_mappings ).
DATA(test_generator) = NEW zcl_aff_generato... | I found vulnerabilities in the line:
```abap
cut->zif_aff_writer~set_abap_value_mappings( value_mappings ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WID... | 57 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH zcx_aff_tools INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
CATCH zcx_aff_tools INTO DATA(exception).
DELETE REPORT st_name. * <-- There is a problem here
cl_abap_unit_assert=>fail( ).
```
Explanation: Potential dangerous statement DELETE REPORT. | 58 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA(handler) = NEW cl_aff_content_handler_json(
simple_transformation = st_name
st_root_name = 'ROOT'... | I found vulnerabilities in the line:
```abap
CATCH zcx_aff_tools INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
```
Explanation: Potential dangerous statement DELETE REPORT. | 59 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WIDTH = 30 PA... | I found vulnerabilities in the line:
```abap
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=... | 60 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name. * <-- There is a problem here
cl_abap_unit_assert=>fail( ).
```
Explanation: Potential dangerous statement DELETE REPORT. | 61 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA(handler) = NEW cl_aff_content_handler_json(
simple_transformation = st_name
st_root_name = 'ROOT'... | I found vulnerabilities in the line:
```abap
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD assert_json_equals.
```
Explanation: Potential dangerous statement DELETE REPORT. | 62 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WIDTH = 30 ... | I found vulnerabilities in the line:
```abap
st_name = |{ st_name WIDTH = 30 PAD = '=' }{ c_ext_xslt_source }|.
INSERT REPORT st_name FROM st_content EXTENSION TYPE c_ext_xslt_source. * <-- There is a problem here
DATA(json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
```
Explanation: Potentia... | 63 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
CALL TRANSFORMATION (st_name)
SOURCE XML json_reader
RESULT (st_result).
CATCH cx_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
GET REFERENCE OF result INTO <st_result>-value.
DATA(json_reader) = cl_sxml_string_reader=>create( json ).
TRY.
CALL TRANSFORMATION (st_name)
SOURCE XML json_reader
RESULT (st_result).
CATCH cx_root INTO DATA(exception).
DELETE REPORT st_name. * <-- Th... | 64 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }{ c_ext_xslt_source }|.
DATA st_result TYPE abap_trans_resbind_tab.
FIELD-SYMBOLS <st_result> LIKE LINE OF st_result.
... | I found vulnerabilities in the line:
```abap
RESULT (st_result).
CATCH cx_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD table_structure.
```
Explanation: Potential dangerous statement ... | 65 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WIDTH = 30 PA... | I found vulnerabilities in the line:
```abap
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
INSERT REPORT st_name FROM st_content EXTENSION TYPE c_ext_xslt_source. * <-- There is a problem here
DATA(json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
```
Explanation: Potential dangerous stateme... | 66 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA st_result TYPE abap_trans_resbind_tab.
FIELD-SYMBOLS <st_result> LIKE LINE OF st_result.
CLEAR result.
AP... | I found vulnerabilities in the line:
```abap
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD assert_json_equals.
```
Explanation: Potential dangerous statement DELETE REPORT. | 67 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name. * <-- There is a problem here
cl_abap_unit_assert=>fail( ).
E... | 69 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA(handler) = NEW cl_aff_content_handler_json(
simple_transformation = st_name
st_root_name = 'ROOT'... | I found vulnerabilities in the line:
```abap
).
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD table_structure.
```
Explanation: Potential dangerous statement DELETE REPORT. | 70 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
cut->zif_aff_writer~set_formatting_option( formatting ).
cut->zif_aff_writer~set_name_mappings( name_mappings ).
cut->zif_aff_writer~set_abap_value_mappings( value_mappings ).
DATA(test_generator) = NEW zcl_aff_generator... | I found vulnerabilities in the line:
```abap
st_name = |{ st_name WIDTH = 30 PAD = '=' }{ c_ext_xslt_source }|.
INSERT REPORT st_name FROM st_content EXTENSION TYPE c_ext_xslt_source. * <-- There is a problem here
DATA(json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
```
Explanation: Potentia... | 79 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
cut->zif_aff_writer~set_formatting_option( formatting ).
cut->zif_aff_writer~set_name_mappings( name_mappings ).
cut->zif_aff_writer~set_abap_value_mappings( value_mappings ).
DATA(test_generator) = NEW zcl_aff_generator... | I found vulnerabilities in the line:
```abap
cut->zif_aff_writer~set_abap_value_mappings( value_mappings ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WID... | 89 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA st_result TYPE abap_trans_resbind_tab.
FIELD-SYMBOLS <st_result> LIKE LINE OF st_result.
CLEAR result.
AP... | I found vulnerabilities in the line:
```abap
RESULT (st_result).
CATCH cx_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD table_structure.
```
Explanation: Potential dangerous statement ... | 91 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WIDTH = 30 PA... | I found vulnerabilities in the line:
```abap
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix && st_execution_counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=... | 92 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
cut->zif_aff_writer~set_formatting_option( formatting ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test_type ).
DATA(st_name) = CONV progname( c_xslt_prefix ... | I found vulnerabilities in the line:
```abap
st_name = |{ st_name WIDTH = 30 PAD = '=' }{ c_ext_xslt_source }|.
INSERT REPORT st_name FROM st_content EXTENSION TYPE c_ext_xslt_source. * <-- There is a problem here
DATA(json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
```
Explanation: Potentia... | 119 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH zcx_aff_tools INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
CATCH zcx_aff_tools INTO DATA(exception).
DELETE REPORT st_name. * <-- There is a problem here
cl_abap_unit_assert=>fail( exception->get_text( ) ).
```
Explanation: Potential dangerous statement DELETE REPORT. | 125 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA(handler) = NEW cl_aff_content_handler_json(
simple_transformation = st_name
st_root_name = 'ROOT'... | I found vulnerabilities in the line:
```abap
CATCH zcx_aff_tools INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
```
Explanation: Potential dangerous statement DELETE REPORT. | 126 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH cx_static_check INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
CATCH cx_static_check INTO DATA(exception).
DELETE REPORT st_name. * <-- There is a problem here
cl_abap_unit_assert=>fail( exception->get_text( ) ).
```
Explanation: Potential dangerous statement DELETE REPORT. | 128 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA(handler) = NEW cl_aff_content_handler_json(
simple_transformation = st_name
st_root_name = 'ROOT'... | I found vulnerabilities in the line:
```abap
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD assert_json_equals.
```
Explanation: Potential dangerous statement DELETE REPORT. | 129 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
handler->if_aff_content_handler~deserialize(
EXPORTING
content = json
IMPORTING
data = result
).
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
``` | I found vulnerabilities in the line:
```abap
CATCH cx_aff_root INTO DATA(exception).
DELETE REPORT st_name. * <-- There is a problem here
cl_abap_unit_assert=>fail( exception->get_text( ) ).
```
Explanation: Potential dangerous statement DELETE REPORT. | 150 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_json_to_abap.
DATA(counter) = st_execution_counter - 1.
DATA(st_name) = CONV progname( c_xslt_prefix && counter ).
st_name = |{ st_name WIDTH = 30 PAD = '=' }XT|.
DATA(handler) = NEW cl_aff_content_handler_json(
simple_transformation = st_name
st_root_name = 'ROOT'... | I found vulnerabilities in the line:
```abap
DELETE REPORT st_name.
cl_abap_unit_assert=>fail( exception->get_text( ) ).
ENDTRY.
DELETE REPORT st_name. * <-- There is a problem here
ENDMETHOD.
METHOD assert_json_equals.
```
Explanation: Potential dangerous statement DELETE REPORT. | 151 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD from_abap_to_json.
DATA(cut) = NEW zcl_aff_writer_xslt( 'root' ).
cut->zif_aff_writer~set_formatting_option( formatting ).
cut->zif_aff_writer~set_name_mappings( name_mappings ).
DATA(test_generator) = NEW zcl_aff_generator( cut ).
DATA(st_content) = test_generator->generate_type( test... | I found vulnerabilities in the line:
```abap
st_name = |{ st_name WIDTH = 30 PAD = '=' }{ c_ext_xslt_source }|.
INSERT REPORT st_name FROM st_content EXTENSION TYPE c_ext_xslt_source. * <-- There is a problem here
DATA(json_writer) = cl_sxml_string_writer=>create( type = if_sxml=>co_xt_json ).
```
Explanation: Potentia... | 189 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF column = 'FNAME'.
DATA(fm_name) = CONV rs38l_fnam( value ).
SET PARAMETER ID 'LIB' FIELD fm_name.
CALL TRANSACTION 'SE37' AND SKIP FIRST SCREEN.
ELSE.
``` | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'SE37' AND SKIP FIRST SCREEN.
```
Explanation: Add an authority check to CALL TRANSACTION. | 225 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF mv_use_secondary_connection = abap_false OR mv_connection_key IS INITIAL.
INSERT (mv_tabname) CONNECTION default FROM ig_row.
ELSE.
``` | I found vulnerabilities in the line:
```abap
INSERT (mv_tabname) CONNECTION default FROM ig_row.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 236 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD insert_entry_in_db.
IF mv_use_secondary_connection = abap_false OR mv_connection_key IS INITIAL.
INSERT (mv_tabname) CONNECTION default FROM ig_row.
ELSE.
INSERT (mv_tabname) CONNECTION (mv_connection_key) FROM ig_row.
ENDIF.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE zcx_alog_lo... | I found vulnerabilities in the line:
```abap
INSERT (mv_tabname) CONNECTION (mv_connection_key) FROM ig_row.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 237 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD class_setup.
" This is the reason for RISK LEVEL CRITICAL
INSERT balobj FROM gs_bal_obj_entry.
* ASSERT sy-subrc = 0.
INSERT balsub FROM gs_bal_subobj_entry.
* ASSERT sy-subrc = 0.
COMMIT WORK AND WAIT.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
INSERT balobj FROM gs_bal_obj_entry.
```
Explanation: Modify only own DB tables.
```abap
INSERT balsub FROM gs_bal_subobj_entry.
```
Explanation: Modify only own DB tables. | 238 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF mv_use_secondary_connection = abap_false OR mv_connection_key IS INITIAL.
INSERT (mv_tabname) CONNECTION default FROM <lg_row>.
ELSE.
``` | I found vulnerabilities in the line:
```abap
INSERT (mv_tabname) CONNECTION default FROM <lg_row>.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 239 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD entry_internal.
DATA: lr_table_line TYPE REF TO data,
lr_key TYPE REF TO data.
FIELD-SYMBOLS: <lg_row> TYPE data,
<lg_key> TYPE data.
CREATE DATA lr_table_line TYPE HANDLE mo_descr.
ASSERT lr_table_line IS BOUND.
ASSIGN lr_table_line->* TO <lg_row>.
... | I found vulnerabilities in the line:
```abap
INSERT (mv_tabname) CONNECTION (mv_connection_key) FROM <lg_row>.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 240 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD select_data.
DATA(description_dyn_where) = replace( val = sql_to_upper_in_regex sub = '&1' with = 'entity~description' ) &&
| IN @descr_filter_range|.
SELECT type,
rawentityid AS name,
altentityid AS alt_name,
description,
... | I found vulnerabilities in the line:
```abap
SELECT type,
```
Explanation: Potential dangerous statement Dynamic SQL. | 245 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD filter_cds_views.
DATA:
ddl_sources TYPE HASHED TABLE OF zif_qdrt_ty_global=>ty_ddl_source WITH UNIQUE KEY ddlname.
CHECK: sy-saprl >= 751,
line_exists( extended_search_result[ type = zif_qdrt_c_entity_types=>cds_view ] ).
DATA(proj_fields) = `ddlname, source_type`.
SELE... | I found vulnerabilities in the line:
```abap
SELECT (proj_fields)
```
Explanation: Potential dangerous statement Dynamic SQL. | 246 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD select_data_by_sql.
FIELD-SYMBOLS: <vh_result> TYPE STANDARD TABLE.
DATA(struct_descr) = CAST cl_abap_structdescr( cl_abap_typedescr=>describe_by_name( to_upper( checktable ) ) ).
DATA(table_descr) = cl_abap_tabledescr=>create(
p_line_type = struct_descr ).
CREATE DATA vh_result TYPE... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 247 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT i_rhs->_samples INTO DATA(sample).
SYSTEM-CALL OBJMGR CLONE sample TO sample.
APPEND sample TO _samples.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
SYSTEM-CALL OBJMGR CLONE sample TO sample.
```
Explanation: Potential dangerous statement SYSTEM-CALL. | 248 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT i_rhs->_disk_samples INTO DATA(disk_sample).
SYSTEM-CALL OBJMGR CLONE disk_sample TO disk_sample.
APPEND disk_sample TO _disk_samples.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
SYSTEM-CALL OBJMGR CLONE disk_sample TO disk_sample.
```
Explanation: Potential dangerous statement SYSTEM-CALL. | 249 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT i_rhs->_hemisphere_samples INTO DATA(hemisphere_sample).
SYSTEM-CALL OBJMGR CLONE hemisphere_sample TO hemisphere_sample.
APPEND hemisphere_sample TO _hemisphere_samples.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
SYSTEM-CALL OBJMGR CLONE hemisphere_sample TO hemisphere_sample.
```
Explanation: Potential dangerous statement SYSTEM-CALL. | 250 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT i_rhs->_sphere_samples INTO DATA(sphere_sample).
SYSTEM-CALL OBJMGR CLONE sphere_sample TO sphere_sample.
APPEND sphere_sample TO _sphere_samples.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
SYSTEM-CALL OBJMGR CLONE sphere_sample TO sphere_sample.
```
Explanation: Potential dangerous statement SYSTEM-CALL. | 251 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZADF_V_CONFIG.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZADF_CONFIG WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZADF_CONFIG WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 272 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZADF_V_RESTDEST.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZREST_CONFIG WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZREST_CONFIG WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 273 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF mt_group_by IS NOT INITIAL.
SELECT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @mt_result
UP TO @lv_max_rows ROWS.
ELSEIF mf_distinct_required = abap_true.
``` | I found vulnerabilities in the line:
```abap
IF mt_group_by IS NOT INITIAL.
SELECT (mt_select) * <-- There is a problem here
FROM (mt_from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 280 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
IF mt_group_by IS NOT INITIAL.
SELECT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @mt_result
UP TO @lv_max_rows ROWS.
ELSEIF mf... | I found vulnerabilities in the line:
```abap
SELECT DISTINCT (mt_select)
```
Explanation: Potential dangerous statement Dynamic SQL.
```abap
ELSE.
SELECT (mt_select) * <-- There is a problem here
FROM (mt_from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 281 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF mt_group_by IS NOT INITIAL.
SELECT DISTINCT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @mt_result
UP TO @lv_max_rows ROWS.
ELSE.
``` | I found vulnerabilities in the line:
```abap
IF mt_group_by IS NOT INITIAL.
SELECT DISTINCT (mt_select) * <-- There is a problem here
FROM (mt_from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 282 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
IF mt_group_by IS NOT INITIAL.
SELECT DISTINCT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @mt_result
UP TO @lv_max_rows ROWS.
EL... | I found vulnerabilities in the line:
```abap
ELSE.
SELECT DISTINCT (mt_select) * <-- There is a problem here
FROM (mt_from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 283 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF sy-saprl >= 751.
DATA(lv_select) = 'SOURCE_TYPE'.
SELECT SINGLE (lv_select)
FROM ddddlsrc
WHERE ddlname = @iv_ddl_name
INTO @rv_source_type.
IF sy-subrc <> 0.
rv_source_type = zif_sat_c_cds_view_type=>view.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
SELECT SINGLE (lv_select)
```
Explanation: Potential dangerous statement Dynamic SQL. | 284 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT (lt_select)
FROM (lv_from)
WHERE (lt_where)
ORDER BY (lv_order_by)
INTO CORRESPONDING FIELDS OF TABLE @lt_paramanno.
CATCH cx_sy_open_sql_db INTO DATA(lr_osql_db_exc).
CATCH cx_sy_dynamic_osql_semantics INTO DATA(lr_osql_semantics_exc).
CATCH cx_sy_dynamic_osq... | I found vulnerabilities in the line:
```abap
SELECT (lt_select)
```
Explanation: Potential dangerous statement Dynamic SQL. | 285 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
IF mt_group_by IS NOT INITIAL.
SELECT DISTINCT (mt_select)
FROM (mt_from)
WHERE (mt_where)
GROUP BY (mt_group_by)
HAVING (mt_having)
ORDER BY (mt_order_by)
INTO CORRESPONDING FIELDS OF TABLE @mt_result
UP TO @lv_max_rows ROWS.
EL... | I found vulnerabilities in the line:
```abap
ELSE.
SELECT DISTINCT (mt_select) * <-- There is a problem here
FROM (mt_from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 287 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
SELECT DISTINCT (ms_sql-select)
FROM (ms_sql-from)
WHERE (ms_sql-where)
ORDER BY base~rawentityid ASCENDING
INTO CORRESPONDING FIELDS OF TABLE @mt_result.
CATCH cx_sy_dynamic_osql_error INTO DATA(lx_sql_error).
RAISE EXCEPTION TYPE zcx_sat_application_exc
EX... | I found vulnerabilities in the line:
```abap
TRY.
SELECT DISTINCT (ms_sql-select) * <-- There is a problem here
FROM (ms_sql-from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 290 |
Find vulnerabilities in this ABAP code snippet. | ```abap
WHILE lt_current_parent_refs IS NOT INITIAL.
SELECT DISTINCT (ms_sql-select)
FROM (ms_sql-from)
FOR ALL ENTRIES IN @lt_current_parent_refs
WHERE selectpart~sourceentity = @lt_current_parent_refs-ddlname
INTO CORRESPONDING FIELDS OF TABLE @lt_usages.
IF sy-subrc <> 0.
EXIT.
E... | I found vulnerabilities in the line:
```abap
WHILE lt_current_parent_refs IS NOT INITIAL.
SELECT DISTINCT (ms_sql-select) * <-- There is a problem here
FROM (ms_sql-from)
```
Explanation: Potential dangerous statement Dynamic SQL. | 291 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF single_select = abap_true.
SELECT SINGLE (l_columns)
FROM zabaptags_tags
WHERE tag_id IN @tag_id_range
AND owner IN @owner_range
AND name_upper IN @name_upper_range
AND parent_tag_id IN @parent_tag_id_range
INTO CORRESPONDING FIELDS OF @single_result.
IF sy-subrc = 0... | I found vulnerabilities in the line:
```abap
SELECT SINGLE (l_columns)
```
Explanation: Potential dangerous statement Dynamic SQL. | 292 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD find_tags.
DATA: single_result TYPE zabaptags_tag_data.
DATA(l_columns) = COND string(
WHEN columns IS INITIAL THEN `*`
ELSE REDUCE #(
INIT cols = `` sep = ``
FOR col IN columns
NEXT cols = cols && sep && col sep = `, ` ) ).
IF single_select = abap_true.
S... | I found vulnerabilities in the line:
```abap
SELECT (l_columns)
```
Explanation: Potential dangerous statement Dynamic SQL. | 293 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF where IS NOT INITIAL.
" As hierarchical tags can be assigned multiple times to an object
" via different tags/parent objects a helper CDS view will be used to get the
" correct tag count for the list of given objects
SELECT tag_id, COUNT( * ) AS count
FROM zabaptags_i_taggedobjaggr
WHER... | I found vulnerabilities in the line:
```abap
SELECT tag_id, COUNT( * ) AS count * <-- There is a problem here
FROM zabaptags_i_taggedobjaggr
```
Explanation: Potential dangerous statement Dynamic SQL. | 294 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD get_tagged_obj_count.
DATA: where TYPE TABLE OF string,
log_op TYPE string.
LOOP AT object_refs ASSIGNING FIELD-SYMBOL(<obj_ref>).
where = VALUE #( BASE where
( |{ log_op }( OBJECT_TYPE = { cl_abap_dyn_prg=>quote( <obj_ref>-tadir_type ) }| &&
|{ c_where_and }OBJECT_... | I found vulnerabilities in the line:
```abap
SELECT tag_id, COUNT( * ) AS count
```
Explanation: Potential dangerous statement Dynamic SQL. | 297 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD get_direct_root_tag_counts.
DATA(dyn_from) = |{ zcl_abaptags_ddls_id=>view_i_tagged_obj_aggr } AS aggr | &&
|INNER JOIN zabaptags_tags AS tag| &&
| ON aggr~tag_id = tag~tag_id|.
SELECT tag~tag_id, COUNT(*) AS tagged_object_count
FROM (dyn_from)
WHERE tag~parent_tag_id = @c_em... | I found vulnerabilities in the line:
```abap
SELECT tag~tag_id, COUNT(*) AS tagged_object_count
```
Explanation: Potential dangerous statement Dynamic SQL. | 298 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD get_deep_root_tag_counts.
DATA(dyn_from) = | { zcl_abaptags_ddls_id=>view_i_root_tags_with_counts } AS aggr | &&
|INNER JOIN zabaptags_tags AS tag| &&
| ON aggr~tagid = tag~tag_id| &&
| AND tag~parent_tag_id = @c_empty_uuid|.
SELECT tagid AS tag_id,
objectcount AS tagg... | I found vulnerabilities in the line:
```abap
SELECT tagid AS tag_id,
```
Explanation: Potential dangerous statement Dynamic SQL. | 299 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD rtti_get_table_desrc.
DATA ddtext TYPE c LENGTH 60.
IF langu IS NOT SUPPLIED.
DATA(lan) = sy-langu.
ELSE.
lan = langu.
ENDIF.
IF context_check_abap_cloud( ).
ddtext = tabname.
ELSE.
DATA(lv_tabname) = `dd02t`.
SELECT SINGLE ddtext FROM (lv_tabname)
... | I found vulnerabilities in the line:
```abap
SELECT SINGLE ddtext FROM (lv_tabname)
```
Explanation: Potential dangerous statement Dynamic SQL. | 306 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(t_comp) = z2ui5_cl_util_api=>rtti_get_t_attri_by_table_name( table_name ).
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... | I found vulnerabilities in the line:
```abap
SELECT trkorr, * <-- There is a problem here
langu,
```
Explanation: Potential dangerous statement Dynamic SQL. | 307 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(t_comp) = z2ui5_cl_util_api=>rtti_get_t_attri_by_table_name( table_name ).
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... | I found vulnerabilities in the line:
```abap
SELECT trkorr, * <-- There is a problem here
trfunction,
```
Explanation: Potential dangerous statement Dynamic SQL. | 308 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
ASSIGN mt_data->* TO <table>.
SELECT *
FROM (mv_check_tab)
WHERE (where)
INTO CORRESPONDING FIELDS OF TABLE @<table>
UP TO @mv_rows ROWS.
IF sy-subrc <> 0.
client->message_toast_display( 'No Entries found.' ).
ENDIF.
set_row_id( ).
CATC... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 309 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD set_trace_level.
" Credit: subroutine ICMAN_SET_PARAM in RSMONICM.
DATA p_name TYPE pfeparname VALUE 'rdisp/TRACE'.
DATA rc TYPE sysubrc.
DATA(p_value) = CONV pfepvalue( value ).
CALL 'ThSysInfo' "#EC CI_CCALL
ID 'OPCODE' FIELD lif_tskhinc... | I found vulnerabilities in the line:
```abap
CALL 'ThSysInfo'
```
Explanation: Potential dangerous statement KERNEL CALL. | 310 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD insert_selection_texts.
DATA texts TYPE STANDARD TABLE OF textpool WITH EMPTY KEY.
texts = VALUE #(
( id = 'R' entry = 'Setup Dev system' length = '16' )
( id = 'S' key = 'P_USRPFL' entry = ' Update User Profile' length = '27' )
( id = 'S' key = 'P_AGSTD' ent... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL sy-repid FROM texts.
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 311 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD create_report.
SELECT SINGLE FROM reposrc
FIELDS progname
WHERE progname = @mv_new_reportname
* AND r3state = 'A'
INTO @DATA(lv_progname).
IF sy-subrc = 0.
RETURN.
ENDIF.
CALL FUNCTION 'RS_CORR_INSERT'
EXPORTING
object = mv_new_reportname
... | I found vulnerabilities in the line:
```abap
INSERT REPORT mv_new_reportname * <-- There is a problem here
FROM lt_source
```
Explanation: Potential dangerous statement INSERT REPORT.
```abap
INSERT TEXTPOOL mv_new_reportname FROM lt_textpool.
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 316 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD update_report.
DATA lv_methodname TYPE seocmpname.
lv_methodname = mo_generator->get_selection_methodname( ).
IF mt_report_code IS INITIAL.
read_selection(
EXPORTING
is_prefix = is_prefix
).
ENDIF.
CHECK mt_report_code IS NOT INITIAL.
DATA(lv_report_... | I found vulnerabilities in the line:
```abap
INSERT REPORT mv_new_reportname * <-- There is a problem here
FROM mt_report_code
```
Explanation: Potential dangerous statement INSERT REPORT. | 317 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT it_functions ASSIGNING <ls_func>.
lt_source = zif_abapgit_object~mo_files->read_abap( iv_extra = <ls_func>-funcname ).
lv_area = ms_item-obj_name.
CALL FUNCTION 'FUNCTION_INCLUDE_SPLIT'
EXPORTING
complete_area = lv_area
IMPORTING
namespace = lv_namespace
... | I found vulnerabilities in the line:
```abap
INSERT REPORT lv_include FROM lt_source.
```
Explanation: Potential dangerous statement INSERT REPORT. | 318 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD add.
DATA ls_table TYPE zif_abapgit_persistence=>ty_content.
ls_table-type = iv_type.
ls_table-value = iv_value.
ls_table-data_str = iv_data.
INSERT (c_tabname) FROM ls_table. "#EC CI_SUBRC
ASSERT sy-subrc = 0.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
INSERT (c_tabname) FROM ls_table.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 319 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete.
lock( iv_type = iv_type
iv_value = iv_value ).
DELETE FROM (c_tabname)
WHERE type = iv_type
AND value = iv_value.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( 'DB Delete failed' ).
ENDIF.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM (c_tabname)
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 320 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD list.
SELECT * FROM (c_tabname)
INTO TABLE rt_content. "#EC CI_SUBRC
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
METHOD list.
SELECT * FROM (c_tabname) * <-- There is a problem here
INTO TABLE rt_content.
```
Explanation: Potential dangerous statement Dynamic SQL. | 321 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.