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
METHOD deserialize_with_ext.
" Special treatment for extensions
" If the program name exceeds 30 characters it is not a usual ABAP program but might be
" some extension, which requires the internal addition EXTENSION TYPE
" https://help.sap.com/doc/abapdocu_755_index_htm/7.55/en-US/index.htm?file=... | I found vulnerabilities in the line:
```abap
INSERT REPORT is_progdir-name * <-- There is a problem here
FROM it_source
STATE 'I'
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,803 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete_extras.
DELETE FROM tddat WHERE tabname = iv_tabname.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
METHOD delete_extras.
DELETE FROM tddat WHERE tabname = iv_tabname. * <-- There is a problem here
ENDMETHOD.
```
Explanation: Modify only own DB tables. | 1,805 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete_extra.
DELETE FROM tddat WHERE tabname = iv_tabname.
DELETE FROM tvdir WHERE tabname = iv_tabname.
DELETE FROM tvimf WHERE tabname = iv_tabname.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM tddat WHERE tabname = iv_tabname. * <-- There is a problem here
DELETE FROM tvdir WHERE tabname = iv_tabname.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tvdir WHERE tabname = iv_tabname.
```
Explanation: Modify only own DB tables.
```abap
DEL... | 1,807 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS ZCL_ABAPGIT_OBJECT_TOBJ IMPLEMENTATION.
METHOD delete_extra.
DELETE FROM tddat WHERE tabname = iv_tabname.
DELETE FROM tvdir WHERE tabname = iv_tabname.
DELETE FROM tvimf WHERE tabname = iv_tabname.
ENDMETHOD.
METHOD read_extra.
SELECT SINGLE * FROM tddat INTO rs... | I found vulnerabilities in the line:
```abap
UPDATE objh SET objtransp = ls_objh-objtransp
```
Explanation: Modify only own DB tables. | 1,810 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _confirm_messages.
" Temporarily suppress certain messages that are not relevant for installation
CONSTANTS lc_toolflag_set TYPE funcname VALUE 'SCWG_TOOLFLAG_SET'.
TYPES:
BEGIN OF ty_message,
id TYPE symsgid,
ty TYPE symsgty,
no TYPE symsgno,
v1 TYPE symsg... | I found vulnerabilities in the line:
```abap
ls_clmcus-obj_type = 'CLAS'.
INSERT clmcus FROM ls_clmcus ##SUBRC_OK. * <-- There is a problem here
CHECK sy-subrc >= 0.
```
Explanation: Modify only own DB tables.
```abap
ls_clmcus-obj_type = 'INTF'.
INSERT clmcus FROM ls_clmcus ##SUBRC_OK. * <-- There is a problem here
CH... | 1,814 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _restore_messages.
DELETE FROM clmcus WHERE username = sy-uname ##SUBRC_OK.
CHECK sy-subrc >= 0. "abaplint
INSERT clmcus FROM TABLE gt_clmcus ##SUBRC_OK.
CHECK sy-subrc >= 0. "abaplint
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM clmcus WHERE username = sy-uname ##SUBRC_OK.
```
Explanation: Modify only own DB tables.
```abap
INSERT clmcus FROM TABLE gt_clmcus ##SUBRC_OK.
```
Explanation: Modify only own DB tables. | 1,815 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete.
_lock( iv_name = iv_name
iv_pack = iv_pack ).
DELETE FROM (mv_tabname)
WHERE name = iv_name AND pack = iv_pack.
IF sy-subrc <> 0.
zcx_abapinst_exception=>raise( 'DB delete failed' ).
ENDIF.
COMMIT WORK.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM (mv_tabname)
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,816 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD insert.
DATA ls_content TYPE zif_abapinst_definitions=>ty_content.
_lock( iv_name = is_inst-name
iv_pack = is_inst-pack ).
ls_content = _list_to_content( is_inst ).
INSERT (mv_tabname) FROM ls_content.
IF sy-subrc <> 0.
zcx_abapinst_exception=>raise( 'DB insert faile... | I found vulnerabilities in the line:
```abap
INSERT (mv_tabname) FROM ls_content.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,817 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD list.
DATA lt_content TYPE zif_abapinst_definitions=>ty_contents.
SELECT * FROM (mv_tabname) INTO TABLE lt_content
ORDER BY PRIMARY KEY.
IF sy-subrc = 0.
rt_list = _content_to_list( lt_content ).
ENDIF.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM (mv_tabname) INTO TABLE lt_content * <-- There is a problem here
ORDER BY PRIMARY KEY.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,818 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF iv_pack IS SUPPLIED.
SELECT * FROM (mv_tabname) INTO TABLE lt_content
WHERE name = iv_name AND pack = iv_pack
ORDER BY PRIMARY KEY.
ELSE.
``` | I found vulnerabilities in the line:
```abap
IF iv_pack IS SUPPLIED.
SELECT * FROM (mv_tabname) INTO TABLE lt_content * <-- There is a problem here
WHERE name = iv_name AND pack = iv_pack
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,819 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD list_by_name.
DATA lt_content TYPE zif_abapinst_definitions=>ty_contents.
IF iv_pack IS SUPPLIED.
SELECT * FROM (mv_tabname) INTO TABLE lt_content
WHERE name = iv_name AND pack = iv_pack
ORDER BY PRIMARY KEY.
ELSE.
SELECT * FROM (mv_tabname) INTO TABLE lt_content
... | I found vulnerabilities in the line:
```abap
ELSE.
SELECT * FROM (mv_tabname) INTO TABLE lt_content * <-- There is a problem here
WHERE name = iv_name
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,820 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF iv_name IS NOT INITIAL AND iv_pack IS NOT INITIAL.
SELECT SINGLE * FROM (mv_tabname) INTO ls_content
WHERE name = iv_name AND pack = iv_pack.
ELSEIF iv_name IS NOT INITIAL.
``` | I found vulnerabilities in the line:
```abap
IF iv_name IS NOT INITIAL AND iv_pack IS NOT INITIAL.
SELECT SINGLE * FROM (mv_tabname) INTO ls_content * <-- There is a problem here
WHERE name = iv_name AND pack = iv_pack.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,821 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD select.
DATA ls_content TYPE zif_abapinst_definitions=>ty_content.
IF iv_name IS NOT INITIAL AND iv_pack IS NOT INITIAL.
SELECT SINGLE * FROM (mv_tabname) INTO ls_content
WHERE name = iv_name AND pack = iv_pack.
ELSEIF iv_name IS NOT INITIAL.
SELECT SINGLE * FROM (mv_tabname... | I found vulnerabilities in the line:
```abap
ELSEIF iv_name IS NOT INITIAL.
SELECT SINGLE * FROM (mv_tabname) INTO ls_content * <-- There is a problem here
WHERE name = iv_name.
```
Explanation: Potential dangerous statement Dynamic SQL.
```abap
ELSE.
SELECT SINGLE * FROM (mv_tabname) INTO ls_content * <-- Ther... | 1,822 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD update.
DATA ls_content TYPE zif_abapinst_definitions=>ty_content.
_lock( iv_name = is_inst-name
iv_pack = is_inst-pack ).
ls_content = _list_to_content( is_inst ).
MODIFY (mv_tabname) FROM ls_content.
IF sy-subrc <> 0.
zcx_abapinst_exception=>raise( 'DB modify faile... | I found vulnerabilities in the line:
```abap
MODIFY (mv_tabname) FROM ls_content.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,823 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF mt_text_new <> mt_text_old.
INSERT TEXTPOOL mv_program FROM mt_text_new LANGUAGE sy-langu.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL mv_program FROM mt_text_new LANGUAGE sy-langu.
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,824 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF gv_force = abap_true OR gv_drop = abap_true.
DELETE FROM balobj WHERE object = /mbtools/if_definitions=>c_namespace.
ASSERT sy-subrc >= 0.
DELETE FROM balobjt WHERE object = /mbtools/if_definitions=>c_namespace.
ASSERT sy-subrc >= 0.
DELETE FROM balsub WHERE object = /mbtools/if_definitions=... | I found vulnerabilities in the line:
```abap
DELETE FROM balobj WHERE object = /mbtools/if_definitions=>c_namespace.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM balobjt WHERE object = /mbtools/if_definitions=>c_namespace.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM balsub WHERE... | 1,825 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _application_log.
DATA:
ls_balobj TYPE balobj,
ls_balobjt TYPE balobjt,
ls_balsub TYPE balsub,
lt_balsub TYPE STANDARD TABLE OF balsub WITH DEFAULT KEY,
ls_balsubt TYPE balsubt,
lt_balsubt TYPE STANDARD TABLE OF balsubt WITH DEFAULT KEY.
SELECT SINGLE object FRO... | I found vulnerabilities in the line:
```abap
INSERT balobj FROM ls_balobj.
```
Explanation: Modify only own DB tables.
```abap
INSERT balobjt FROM ls_balobjt.
```
Explanation: Modify only own DB tables.
```abap
INSERT balsub FROM TABLE lt_balsub.
```
Explanation: Modify only own DB tables.
```abap
INSERT balsubt FROM T... | 1,826 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD sync.
" Installer persistence
CONSTANTS lc_tabname TYPE tabname VALUE 'ZMBTINST'.
DATA:
ls_inst TYPE ty_inst,
ls_cont TYPE ty_content.
ls_inst-name = io_tool->get_name( ).
ls_inst-pack = io_tool->get_package( ).
ls_inst-version = io_tool->ge... | I found vulnerabilities in the line:
```abap
SELECT SINGLE * FROM (lc_tabname) INTO ls_cont WHERE name = ls_inst-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,827 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF sy-subrc = 0.
UPDATE (lc_tabname) FROM ls_cont.
IF sy-subrc <> 0.
/mbtools/cx_exception=>raise( 'Error updating MBT Installer persistence'(003) ).
ENDIF.
``` | 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,828 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD sync.
" Installer persistence
CONSTANTS lc_tabname TYPE tabname VALUE 'ZMBTINST'.
DATA:
ls_inst TYPE ty_inst,
ls_inst_db TYPE ty_inst,
ls_cont TYPE ty_content.
ls_inst-name = io_tool->get_name( ).
ls_inst-pack = io_tool->get_package( ).
l... | I found vulnerabilities in the line:
```abap
SELECT SINGLE * FROM (lc_tabname) INTO CORRESPONDING FIELDS OF ls_inst_db WHERE name = ls_inst-name.
```
Explanation: Potential dangerous statement Dynamic SQL.
```abap
INSERT (lc_tabname) FROM ls_cont.
```
Explanation: Modify only own DB tables | Potential dangerous stateme... | 1,831 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF ls_inst_db-pack <> ls_inst-pack.
DELETE FROM (lc_tabname) WHERE name = ls_inst-name ##SUBRC_OK.
INSERT (lc_tabname) FROM ls_cont ##SUBRC_OK.
ELSE.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM (lc_tabname) WHERE name = ls_inst-name ##SUBRC_OK.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL.
```abap
INSERT (lc_tabname) FROM ls_cont ##SUBRC_OK.
```
Explanation: Modify only own DB tables | Potential dangerous statem... | 1,832 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF sy-subrc = 0.
IF ls_inst_db-pack <> ls_inst-pack.
DELETE FROM (lc_tabname) WHERE name = ls_inst-name ##SUBRC_OK.
INSERT (lc_tabname) FROM ls_cont ##SUBRC_OK.
ELSE.
UPDATE (lc_tabname) FROM ls_cont.
ENDIF.
``` | 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,833 |
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) ORDER BY PRIMARY KEY.
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) ORDER BY PRIMARY KEY. * <-- There is a problem here
ENDLOOP.
IF lines( it_where ) = 0.
SELECT * FROM (iv_name) INTO TABLE <lg_tab> ORDER BY PR... | 1,834 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF lines( it_where ) = 0.
SELECT * FROM (iv_name) INTO TABLE <lg_tab> ORDER BY PRIMARY KEY.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM (iv_name) APPENDING TABLE <lg_tab> WHERE (lv_where) ORDER BY PRIMARY KEY.
ENDLOOP.
IF lines( it_where ) = 0.
SELECT * FROM (iv_name) INTO TABLE <lg_tab> ORDER BY PRIMARY KEY. * <-- There is a problem here
ENDIF.
ENDMETHOD.
```
Explanation: Potential dangerous s... | 1,835 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF lines( <lg_upd> ) > 0.
UPDATE (iv_name) FROM TABLE <lg_upd>.
IF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error updating { lines( <lg_upd> ) } records into table { iv_name }| ).
ENDIF.
``` | I found vulnerabilities in the line:
```abap
UPDATE (iv_name) FROM TABLE <lg_upd>.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,838 |
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) ORDER BY PRIMARY KEY.
ENDLOOP.
``` | I found vulnerabilities in the line:
```abap
TRY.
LOOP AT it_where INTO lv_where.
SELECT * FROM (iv_name) APPENDING TABLE <lg_tab> WHERE (lv_where) ORDER BY PRIMARY KEY. * <-- There is a problem here
ENDLOOP.
IF lines( it_where ) = 0.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,839 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF lines( it_where ) = 0.
SELECT * FROM (iv_name) INTO TABLE <lg_tab> ORDER BY PRIMARY KEY.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
ENDLOOP.
IF lines( it_where ) = 0.
SELECT * FROM (iv_name) INTO TABLE <lg_tab> ORDER BY PRIMARY KEY. * <-- There is a problem here
ENDIF.
CATCH cx_sy_sql_error INTO lx_sql.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,840 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF iv_is_include = abap_false OR lv_state = c_state-active.
DELETE TEXTPOOL iv_program "Remove initial description from textpool if
LANGUAGE lv_language "original program does not have a textpool
STATE lv_state.
lv_delete = abap_true.
ELSE.
``` | I found vulnerabilities in the line:
```abap
DELETE TEXTPOOL iv_program
```
Explanation: Potential dangerous statement DELETE TEXTPOOL. | 1,841 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF it_tpool IS INITIAL.
IF iv_is_include = abap_false OR lv_state = c_state-active.
DELETE TEXTPOOL iv_program "Remove initial description from textpool if
LANGUAGE lv_language "original program does not have a textpool
STATE lv_state.
lv_delete = abap_true.
ELSE.
INSERT... | I found vulnerabilities in the line:
```abap
lv_delete = abap_true.
ELSE.
INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in * <-- There is a problem here
FROM it_tpool
LANGUAGE lv_language
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,842 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_textpool.
DATA lv_language TYPE sy-langu.
DATA lv_state TYPE c.
DATA lv_delete TYPE abap_bool.
IF iv_language IS INITIAL.
lv_language = mv_language.
ELSE.
lv_language = iv_language.
ENDIF.
IF lv_language = mv_language.
lv_state = c_state-inactive... | I found vulnerabilities in the line:
```abap
ENDIF.
ELSE.
INSERT TEXTPOOL iv_program * <-- There is a problem here
FROM it_tpool
LANGUAGE lv_language
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,843 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE lt_descriptions.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM seosubcotx WHERE clsname = is_key-clsname.
```
Explanation... | 1,844 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
zcl_abapinst_factory=>get_sap_report( )->insert_report(
iv_name = iv_program
iv_package = iv_package
it_source = it_source
iv_state = iv_state
iv_version = iv_... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,846 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF ls_vseoclass-category = '40'.
UPDATE seoclassdf SET category = '40' WHERE clsname = ls_vseoclass-clsname.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
UPDATE seoclassdf SET category = '40' WHERE clsname = ls_vseoclass-clsname.
```
Explanation: Modify only own DB tables. | 1,847 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD update_func_group_short_text.
" We update the short text directly.
" SE80 does the same in
" Program SAPLSEUF / LSEUFF07
" FORM GROUP_CHANGE
UPDATE tlibt SET areat = iv_short_text
WHERE spras = mv_language AND area = iv_group.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
UPDATE tlibt SET areat = iv_short_text
```
Explanation: Modify only own DB tables. | 1,848 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_idoc IMPLEMENTATION.
METHOD clear_idoc_segement_field.
FIELD-SYMBOLS <lg_any_field> TYPE any.
ASSIGN COMPONENT iv_fieldname OF STRUCTURE cg_structure TO <lg_any_field>.
IF sy-subrc = 0.
CLEAR <lg_any_field>.
ENDIF.
ENDMETHOD.
METHOD clea... | I found vulnerabilities in the line:
```abap
UPDATE edbas FROM ls_edbas.
```
Explanation: Modify only own DB tables. | 1,849 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_texts.
DATA: lv_msg_id TYPE rglif-message_id,
ls_t100 TYPE t100,
lt_t100t TYPE TABLE OF t100t,
lt_t100_texts TYPE ty_t100_texts,
lt_t100u TYPE TABLE OF t100u.
FIELD-SYMBOLS: <ls_t100_text> TYPE ty_t100_text.
lv_msg_id = ... | I found vulnerabilities in the line:
```abap
MODIFY t100t FROM TABLE lt_t100t.
```
Explanation: Modify only own DB tables. | 1,859 |
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 = c_longtext_id_msag
element = iv_message_id
addition = ' '
... | 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,862 |
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,866 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_para IMPLEMENTATION.
METHOD unlock.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
mode = 'FREE'
object = iv_paramid
object_class = 'PARA'.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
* looks like "changed b... | I found vulnerabilities in the line:
```abap
DELETE FROM tpara WHERE paramid = lv_paramid.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tparat WHERE paramid = lv_paramid.
```
Explanation: Modify only own DB tables.
```abap
MODIFY tpara FROM ls_tpara.
```
Explanation: Modify only own DB tables.
```aba... | 1,868 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT lt_segment_definitions ASSIGNING <ls_segment_definition>.
ls_segment_definition = <ls_segment_definition>.
<ls_segment_definition>-segmentheader-presp = sy-uname.
<ls_segment_definition>-segmentheader-pwork = sy-uname.
CALL FUNCTION 'SEGMENT_READ'
EXPORTING
segmenttyp = <ls_seg... | I found vulnerabilities in the line:
```abap
UPDATE edisdef FROM ls_edisdef.
```
Explanation: Modify only own DB tables. | 1,871 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_tobj IMPLEMENTATION.
METHOD delete_extra.
DELETE FROM tddat WHERE tabname = iv_tabname.
DELETE FROM tvdir WHERE tabname = iv_tabname.
DELETE FROM tvimf WHERE tabname = iv_tabname.
ENDMETHOD.
METHOD read_extra.
SELECT SINGLE * FROM tddat INTO rs... | I found vulnerabilities in the line:
```abap
UPDATE objh SET objtransp = ls_objh-objtransp
```
Explanation: Modify only own DB tables. | 1,876 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD add.
DATA ls_table TYPE zif_abapgit_persistence=>ty_content.
validate_entry_type( iv_type ).
ls_table-type = iv_type.
ls_table-value = iv_value.
ls_table-data_str = iv_data.
INSERT (c_tabname) FROM ls_table. "#EC CI_SUBRC
ASSERT sy-subrc = 0.
ENDMETHOD.
... | I found vulnerabilities in the line:
```abap
INSERT (c_tabname) FROM ls_table.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,880 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete.
lock( iv_type = iv_type
iv_value = iv_value ).
" Ignore errors since record might not exist
DELETE FROM (c_tabname)
WHERE type = iv_type
AND value = iv_value.
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
DELETE FROM (c_tabname)
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,881 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD update.
DATA lv_data LIKE iv_data.
IF iv_data CS '<?xml'.
lv_data = validate_and_unprettify_xml( iv_data ).
ELSE.
lv_data = iv_data.
ENDIF.
lock( iv_type = iv_type
iv_value = iv_value ).
UPDATE (c_tabname) SET data_str = lv_data
WHERE type = iv_type
... | I found vulnerabilities in the line:
```abap
UPDATE (c_tabname) SET data_str = lv_data
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 1,887 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_sap_report IMPLEMENTATION.
METHOD authorization_check.
IF is_item IS NOT INITIAL.
TRY.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
mode = iv_mode
object = is_item-obj... | I found vulnerabilities in the line:
```abap
DELETE REPORT iv_name.
```
Explanation: Potential dangerous statement DELETE REPORT.
```abap
ELSEIF iv_program_type IS INITIAL AND iv_extension_type IS INITIAL.
INSERT REPORT iv_name FROM it_source * <-- There is a problem here
STATE iv_state.
```
Explanation: Potentia... | 1,888 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF iv_state IS INITIAL.
INSERT REPORT iv_name FROM it_source.
ELSEIF iv_program_type IS INITIAL AND iv_extension_type IS INITIAL.
``` | I found vulnerabilities in the line:
```abap
INSERT REPORT iv_name FROM it_source.
```
Explanation: Potential dangerous statement INSERT REPORT. | 1,889 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete_sotr.
DATA lt_sotr_use TYPE ty_sotr_use_tt.
FIELD-SYMBOLS <ls_sotr_use> LIKE LINE OF lt_sotr_use.
lt_sotr_use = get_sotr_usage( iv_pgmid = iv_pgmid
iv_object = iv_object
iv_obj_name = iv_obj_name ).
" Remove... | I found vulnerabilities in the line:
```abap
DELETE sotr_use FROM TABLE lt_sotr_use ##SUBRC_OK.
```
Explanation: Modify only own DB tables. | 1,891 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete_sots.
DATA lt_sots_use TYPE ty_sots_use_tt.
FIELD-SYMBOLS <ls_sots_use> LIKE LINE OF lt_sots_use.
lt_sots_use = get_sots_usage( iv_pgmid = iv_pgmid
iv_object = iv_object
iv_obj_name = iv_obj_name ).
" Remove... | I found vulnerabilities in the line:
```abap
DELETE sotr_useu FROM TABLE lt_sots_use ##SUBRC_OK.
```
Explanation: Modify only own DB tables. | 1,892 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _confirm_messages.
" Temporarily suppress certain messages that are not relevant for installation
CONSTANTS lc_toolflag_set TYPE funcname VALUE 'SCWG_TOOLFLAG_SET'.
DATA ls_clmcus TYPE clmcus.
" Set tool flag to avoid messages
CALL FUNCTION 'FUNCTION_EXISTS'
EXPORTING
f... | I found vulnerabilities in the line:
```abap
ls_clmcus-obj_type = 'CLAS'.
INSERT clmcus FROM ls_clmcus ##SUBRC_OK. * <-- There is a problem here
CHECK sy-subrc >= 0.
```
Explanation: Modify only own DB tables.
```abap
ls_clmcus-obj_type = 'INTF'.
INSERT clmcus FROM ls_clmcus ##SUBRC_OK. * <-- There is a problem here
CH... | 1,893 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT lt_sotr_head ASSIGNING <ls_sotr_head>.
DELETE FROM sotr_use WHERE concept = <ls_sotr_head>-concept.
CALL FUNCTION 'BTFR_DELETE_SINGLE_TEXT'
EXPORTING
concept = <ls_sotr_head>-concept
corr_num = gs_inst-transport
use_korrnum_immediatedly ... | I found vulnerabilities in the line:
```abap
DELETE FROM sotr_use WHERE concept = <ls_sotr_head>-concept.
```
Explanation: Modify only own DB tables. | 1,895 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT lt_sotr_head ASSIGNING <ls_sotr_head>.
DELETE FROM sotr_useu WHERE concept = <ls_sotr_head>-concept.
CALL FUNCTION 'BTFR_DELETE_SINGLE_TEXT'
EXPORTING
concept = <ls_sotr_head>-concept
corr_num = gs_inst-transport
use_korrnum_immediatedly... | I found vulnerabilities in the line:
```abap
DELETE FROM sotr_useu WHERE concept = <ls_sotr_head>-concept.
```
Explanation: Modify only own DB tables. | 1,896 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD _application_log.
DATA:
ls_balobj TYPE balobj,
ls_balobjt TYPE balobjt,
ls_balsub TYPE balsub,
lt_balsub TYPE STANDARD TABLE OF balsub WITH DEFAULT KEY,
ls_balsubt TYPE balsubt,
lt_balsubt TYPE STANDARD TABLE OF balsubt WITH DEFAULT KEY.
SELECT SINGLE object FRO... | I found vulnerabilities in the line:
```abap
INSERT balobj FROM ls_balobj.
```
Explanation: Modify only own DB tables.
```abap
INSERT balobjt FROM ls_balobjt.
```
Explanation: Modify only own DB tables.
```abap
INSERT balsub FROM TABLE lt_balsub.
```
Explanation: Modify only own DB tables.
```abap
INSERT balsubt FROM T... | 1,911 |
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,912 |
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. | 1,913 |
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
TRY.
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.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,916 |
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
ENDLOOP.
IF lines( it_where ) = 0.
SELECT * FROM (iv_name) INTO TABLE <lg_tab>. * <-- There is a problem here
ENDIF.
CATCH cx_sy_sql_error INTO lx_sql.
```
Explanation: Potential dangerous statement Dynamic SQL. | 1,917 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE lt_descriptions.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM seosubcotx WHERE clsname = is_key-clsname.
```
Explanation... | 1,922 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
INSERT REPORT iv_program FROM it_source EXTENSION TYPE iv_extension STATE iv_version PROGRAM TYPE iv_program_type.
ASSERT sy-subrc = 0.
ENDMETHOD.
METHOD delete_report.
DELETE REPORT iv_program ##SUBRC_OK.
ENDMET... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,924 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_texts.
DATA: lv_msg_id TYPE rglif-message_id,
ls_t100 TYPE t100,
lt_t100t TYPE TABLE OF t100t,
lt_t100_texts TYPE ty_t100_texts,
lt_t100u TYPE TABLE OF t100u.
FIELD-SYMBOLS: <ls_t100_text> TYPE ty_t100_text.
lv_msg_id = ... | I found vulnerabilities in the line:
```abap
MODIFY t100t FROM TABLE lt_t100t.
```
Explanation: Modify only own DB tables. | 1,935 |
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 = c_longtext_id_msag
element = iv_message_id
addition = ' '
... | 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,938 |
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,942 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_para IMPLEMENTATION.
METHOD unlock.
CALL FUNCTION 'RS_ACCESS_PERMISSION'
EXPORTING
mode = 'FREE'
object = iv_paramid
object_class = 'PARA'.
ENDMETHOD.
METHOD zif_abapgit_object~changed_by.
* looks like "changed b... | I found vulnerabilities in the line:
```abap
DELETE FROM tpara WHERE paramid = lv_paramid.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM tparat WHERE paramid = lv_paramid.
```
Explanation: Modify only own DB tables.
```abap
MODIFY tpara FROM ls_tpara.
```
Explanation: Modify only own DB tables.
```aba... | 1,944 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_tobj IMPLEMENTATION.
METHOD delete_extra.
DELETE FROM tddat WHERE tabname = iv_tabname.
DELETE FROM tvdir WHERE tabname = iv_tabname.
DELETE FROM tvimf WHERE tabname = iv_tabname.
ENDMETHOD.
METHOD read_extra.
SELECT SINGLE * FROM tddat INTO rs... | I found vulnerabilities in the line:
```abap
UPDATE objh SET objtransp = ls_objh-objtransp
```
Explanation: Modify only own DB tables. | 1,952 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD delete_sots.
DATA:
ls_sots TYPE ty_sots,
lt_sots_use TYPE ty_sots_use_tt.
FIELD-SYMBOLS <ls_sots_use> LIKE LINE OF lt_sots_use.
lt_sots_use = get_sots_usage( iv_pgmid = iv_pgmid
iv_object = iv_object
iv_ob... | I found vulnerabilities in the line:
```abap
DELETE sotr_useu FROM TABLE lt_sots_use ##SUBRC_OK.
```
Explanation: Modify only own DB tables. | 1,965 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF it_tpool IS INITIAL.
IF iv_is_include = abap_false OR lv_state = c_state-active.
DELETE TEXTPOOL iv_program "Remove initial description from textpool if
LANGUAGE lv_language "original program does not have a textpool
STATE lv_state.
lv_delete = abap_true.
ELSE.
INSERT... | I found vulnerabilities in the line:
```abap
lv_delete = abap_true.
ELSE.
INSERT TEXTPOOL iv_program "In case of includes: Deletion of textpool in * <-- There is a problem here
FROM it_tpool
LANGUAGE lv_language
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 1,999 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD deserialize_textpool.
DATA lv_language TYPE sy-langu.
DATA lv_state TYPE c.
DATA lv_delete TYPE abap_bool.
IF iv_language IS INITIAL.
lv_language = mv_language.
ELSE.
lv_language = iv_language.
ENDIF.
IF lv_language = mv_language.
lv_state = c_state-inactive... | I found vulnerabilities in the line:
```abap
ENDIF.
ELSE.
INSERT TEXTPOOL iv_program * <-- There is a problem here
FROM it_tpool
LANGUAGE lv_language
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 2,000 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_object_idoc IMPLEMENTATION.
METHOD clear_idoc_segement_field.
FIELD-SYMBOLS <lg_any_field> TYPE any.
ASSIGN COMPONENT iv_fieldname OF STRUCTURE cg_structure TO <lg_any_field>.
IF sy-subrc = 0.
CLEAR <lg_any_field>.
ENDIF.
ENDMETHOD.
METHOD clea... | I found vulnerabilities in the line:
```abap
UPDATE edbas FROM ls_edbas.
```
Explanation: Modify only own DB tables. | 2,003 |
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 = c_longtext_id_msag
element = iv_message_id
addition = ' '
... | 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. | 2,016 |
Find vulnerabilities in this ABAP code snippet. | ```abap
LOOP AT is_internal-segment_definitions ASSIGNING <ls_segment_definition>.
ls_segment_definition = <ls_segment_definition>.
<ls_segment_definition>-segmentheader-presp = sy-uname.
<ls_segment_definition>-segmentheader-pwork = sy-uname.
CALL FUNCTION 'SEGMENT_READ'
EXPORTING
segmenttyp ... | I found vulnerabilities in the line:
```abap
UPDATE edisdef FROM ls_edisdef.
```
Explanation: Modify only own DB tables. | 2,025 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_base IMPLEMENTATION.
METHOD convert_attrib_to_vseoattrib.
FIELD-SYMBOLS: <ls_attribute> LIKE LINE OF it_attributes,
<ls_vseoattrib> LIKE LINE OF rt_vseoattrib.
LOOP AT it_attributes ASSIGNING <ls_attribute>.
INSERT INITIAL LINE INTO TABLE rt_vs... | I found vulnerabilities in the line:
```abap
DELETE FROM seocompotx WHERE clsname = is_key-clsname.
```
Explanation: Modify only own DB tables.
```abap
INSERT seocompotx FROM TABLE lt_descriptions.
```
Explanation: Modify only own DB tables.
```abap
DELETE FROM seosubcotx WHERE clsname = is_key-clsname.
```
Explanation... | 2,034 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CLASS zcl_abapgit_oo_class IMPLEMENTATION.
METHOD create_report.
zcl_abapinst_factory=>get_sap_report( )->insert_report(
iv_name = iv_program
iv_package = iv_package
it_source = it_source
iv_state = iv_state
iv_version = iv_... | I found vulnerabilities in the line:
```abap
INSERT TEXTPOOL lv_cp
```
Explanation: Potential dangerous statement INSERT TEXTPOOL. | 2,036 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CASE <ls_e071>-object.
WHEN 'SICF'. " ICF Service
SELECT SINGLE icf_docu FROM icfdocu INTO ls_e071_txt-text
WHERE icf_name = <ls_e071>-obj_name(15)
AND icfparguid = <ls_e071>-obj_name+15(25)
AND icf_langu = sy-langu.
WHEN 'TOBJ' OR 'OBJM'. " Transport object or AIM
lv... | I found vulnerabilities in the line:
```abap
SELECT SINGLE description FROM (lv_tabname) INTO ls_e071_txt-text
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,063 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF lv_subrc = 0.
SELECT SINGLE btcjob_name FROM (lv_tabname) INTO ls_e071_txt-text
WHERE name = <ls_e071>-obj_name.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
SELECT SINGLE btcjob_name FROM (lv_tabname) INTO ls_e071_txt-text
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,064 |
Find vulnerabilities in this ABAP code snippet. | ```abap
CASE <ls_e071>-object.
WHEN 'SICF'. " ICF Service
SELECT SINGLE icf_docu FROM icfdocu INTO ls_e071_txt-text
WHERE icf_name = <ls_e071>-obj_name(15)
AND icfparguid = <ls_e071>-obj_name+15(25)
AND icf_langu = sy-langu.
WHEN 'TOBJ' OR 'OBJM'. " Transport object or AIM
lv... | I found vulnerabilities in the line:
```abap
SELECT SINGLE description FROM (lv_tabname) INTO ls_e071_txt-text
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,065 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD appinfoset_create_entity.
DATA: ls_appinfo TYPE /mindset/cl_fiori_moni_mpc_ext=>ts_appinfo,
ls_appinfo_db TYPE /mindset/appinfo.
io_data_provider->read_entry_data( IMPORTING es_data = ls_appinfo ).
ls_appinfo_db = CORRESPONDING #( ls_appinfo ).
ls_appinfo_db-user_id = ... | I found vulnerabilities in the line:
```abap
INSERT /mindset/appinfo FROM ls_appinfo_db.
```
Explanation: Modify only own DB tables. | 2,067 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD flpinfoset_create_entity.
DATA: ls_flpinfo TYPE /mindset/cl_fiori_moni_mpc_ext=>ts_flpinfo,
ls_flpinfo_db TYPE /mindset/flpinfo.
io_data_provider->read_entry_data( IMPORTING es_data = ls_flpinfo ).
ls_flpinfo_db = CORRESPONDING #( ls_flpinfo ).
ls_flpinfo_db-user_id = ... | I found vulnerabilities in the line:
```abap
INSERT /mindset/flpinfo FROM ls_flpinfo_db.
```
Explanation: Modify only own DB tables. | 2,068 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD appinfoset_create_entity.
DATA: ls_appinfo TYPE /mindset/cl_fiori_moni_mpc_ext=>ts_appinfo,
ls_appinfo_db TYPE /mindset/appinfo,
ls_flpinfo_db TYPE /mindset/flpinfo.
*** FILL appinfo and flpinfo every time a user clicks a semantic object
io_data_provider->read_entry_data( IMPO... | I found vulnerabilities in the line:
```abap
INSERT /mindset/appinfo FROM ls_appinfo_db.
```
Explanation: Modify only own DB tables.
```abap
INSERT /mindset/appinfo FROM ls_appinfo_db.
INSERT /mindset/flpinfo FROM ls_flpinfo_db. * <-- There is a problem here
ENDMETHOD.
```
Explanation: Modify only own DB tables. | 2,069 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD flpinfoset_create_entity.
DATA: ls_flpinfo TYPE /mindset/cl_fiori_moni_mpc_ext=>ts_flpinfo,
ls_flpinfo_db TYPE /mindset/flpinfo.
io_data_provider->read_entry_data( IMPORTING es_data = ls_flpinfo ).
ls_flpinfo_db = CORRESPONDING #( ls_flpinfo ).
ls_flpinfo_db-user_id = ... | I found vulnerabilities in the line:
```abap
GET TIME STAMP FIELD ls_flpinfo_db-log_time.
INSERT /mindset/flpinfo FROM ls_flpinfo_db. * <-- There is a problem here
ENDMETHOD.
```
Explanation: Modify only own DB tables. | 2,070 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF line_exists( components[ name = 'SPRAS' ] ) AND line_exists( keys[ fieldname = 'SPRAS' ] ).
SELECT *
FROM (table_name)
INTO TABLE @<table_values>
WHERE spras = @sy-langu
AND (where_cond). "#EC CI_SUBRC
ELSE.
``` | I found vulnerabilities in the line:
```abap
IF line_exists( components[ name = 'SPRAS' ] ) AND line_exists( keys[ fieldname = 'SPRAS' ] ).
SELECT * * <-- There is a problem here
FROM (table_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,073 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD get_data_by_table.
DATA: description_component TYPE string,
table_name TYPE tabname,
table TYPE REF TO data,
checkfield TYPE dd08v-fieldname,
table_ref TYPE REF TO cl_abap_tabledescr,
keys T... | I found vulnerabilities in the line:
```abap
ELSE.
SELECT * * <-- There is a problem here
FROM (table_name)
```
Explanation: Potential dangerous statement Dynamic SQL.
```abap
SELECT * * <-- There is a problem here
FROM (texttable)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,074 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZODATA_V_ACTIONS.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZODATA_ACTIONS WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZODATA_ACTIONS WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,075 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZODATA_V_ACTPARA.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZODATA_ACT_PARAM WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZODATA_ACT_PARAM WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,076 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZODATA_V_ENTITY.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZODATA_ENTITY WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZODATA_ENTITY WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,077 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZODATA_V_NAV.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZODATA_NAV WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZODATA_NAV WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,078 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZODATA_V_PROP.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZODATA_PROPERTY WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZODATA_PROPERTY WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,079 |
Find vulnerabilities in this ABAP code snippet. | ```abap
FORM GET_DATA_ZODATA_V_PROPTXT.
PERFORM VIM_FILL_WHERETAB.
*.read data from database.............................................*
REFRESH TOTAL.
CLEAR TOTAL.
SELECT * FROM ZODATA_PROP_TXTS WHERE
(VIM_WHERETAB) .
``` | I found vulnerabilities in the line:
```abap
SELECT * FROM ZODATA_PROP_TXTS WHERE
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,080 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF line_exists( components[ name = 'SPRAS' ] ) AND line_exists( keys[ fieldname = 'SPRAS' ] ).
SELECT *
FROM (table_name)
INTO TABLE <table_values>
WHERE spras = sy-langu
AND (where_cond).
ELSE.
``` | I found vulnerabilities in the line:
```abap
IF line_exists( components[ name = 'SPRAS' ] ) AND line_exists( keys[ fieldname = 'SPRAS' ] ).
SELECT * * <-- There is a problem here
FROM (table_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,081 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD get_data_by_table.
DATA: description_component TYPE string,
table_name TYPE tabname,
table TYPE REF TO data,
checkfield TYPE dd08v-fieldname,
table_ref TYPE REF TO cl_abap_tabledescr,
keys T... | I found vulnerabilities in the line:
```abap
ELSE.
SELECT * * <-- There is a problem here
FROM (table_name)
```
Explanation: Potential dangerous statement Dynamic SQL.
```abap
SELECT * * <-- There is a problem here
FROM (texttable)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,082 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF line_exists( components[ name = 'SPRAS' ] ) AND line_exists( keys[ fieldname = 'SPRAS' ] ).
SELECT *
FROM (table_name)
INTO TABLE @<table_values>
WHERE spras = @sy-langu
AND (where_cond). "#EC CI_SUBRC
ELSE.
``` | I found vulnerabilities in the line:
```abap
IF line_exists( components[ name = 'SPRAS' ] ) AND line_exists( keys[ fieldname = 'SPRAS' ] ).
SELECT * * <-- There is a problem here
FROM (table_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,083 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD get_data_by_table.
DATA: description_component TYPE string,
table_name TYPE tabname,
table TYPE REF TO data,
checkfield TYPE dd08v-fieldname,
table_ref TYPE REF TO cl_abap_tabledescr,
keys T... | I found vulnerabilities in the line:
```abap
ELSE.
SELECT * * <-- There is a problem here
FROM (table_name)
```
Explanation: Potential dangerous statement Dynamic SQL.
```abap
SELECT * * <-- There is a problem here
FROM (texttable)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,084 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD read_dyn_table_with_language.
SELECT *
FROM (iv_table_name)
INTO TABLE @et_table_data
WHERE spras = @iv_spras
AND (it_where_condition). "#EC CI_SUBRC
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
METHOD read_dyn_table_with_language.
SELECT * * <-- There is a problem here
FROM (iv_table_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,095 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD read_dyn_table.
SELECT *
FROM (iv_table_name)
INTO TABLE @et_table_data
WHERE (it_where_condition). "#EC CI_SUBRC
ENDMETHOD.
``` | I found vulnerabilities in the line:
```abap
METHOD read_dyn_table.
SELECT * * <-- There is a problem here
FROM (iv_table_name)
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,096 |
Find vulnerabilities in this ABAP code snippet. | ```abap
IF s_internal-belnr IS NOT INITIAL.
SET PARAMETER ID 'BLN' FIELD s_internal-belnr.
SET PARAMETER ID 'BUK' FIELD s_internal-bukrs.
SET PARAMETER ID 'GJR' FIELD s_internal-budat(4).
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
ENDIF.
``` | I found vulnerabilities in the line:
```abap
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
```
Explanation: Add an authority check to CALL TRANSACTION. | 2,127 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD read_table.
FIELD-SYMBOLS <fs> TYPE STANDARD TABLE.
DATA dref TYPE REF TO data.
CREATE DATA dref TYPE STANDARD TABLE OF (mv_table) WITH DEFAULT KEY.
ASSIGN dref->* TO <fs>.
ASSERT sy-subrc = 0.
" dont check SUBRC, the table might be empty
SELECT * FROM (mv_table) ORDER BY PRIMARY... | I found vulnerabilities in the line:
```abap
SELECT * FROM (mv_table) ORDER BY PRIMARY KEY INTO TABLE @<fs> ##SUBRC_OK.
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,128 |
Find vulnerabilities in this ABAP code snippet. | ```abap
METHOD save_table.
FIELD-SYMBOLS <fs> TYPE STANDARD TABLE.
DATA dref TYPE REF TO data.
CREATE DATA dref TYPE STANDARD TABLE OF (mv_table) WITH DEFAULT KEY.
ASSIGN dref->* TO <fs>.
ASSERT sy-subrc = 0.
CALL TRANSFORMATION id SOURCE XML iv_json RESULT data = <fs>.
MODIFY (mv_table) FROM... | I found vulnerabilities in the line:
```abap
MODIFY (mv_table) FROM TABLE @<fs> ##SUBRC_OK.
```
Explanation: Modify only own DB tables | Potential dangerous statement Dynamic SQL. | 2,129 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ).
DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc
p_table_kind = cl_abap_tabledescr=>tablekind_std ).
CREATE DATA mt_table TYPE HA... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,137 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ).
DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc
p_table_kind = cl_abap_tabledescr=>tablekind_std ).
CREATE DATA mt_table TYPE HA... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,139 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ).
DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc
p_table_kind = cl_abap_tabledescr=>tablekind_std ).
CREATE DATA mt_table TYPE HA... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,140 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ).
DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc
p_table_kind = cl_abap_tabledescr=>tablekind_std ).
CREATE DATA mt_table TYPE HA... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,141 |
Find vulnerabilities in this ABAP code snippet. | ```abap
TRY.
DATA(new_struct_desc) = cl_abap_structdescr=>create( mt_comp ).
DATA(new_table_desc) = cl_abap_tabledescr=>create( p_line_type = new_struct_desc
p_table_kind = cl_abap_tabledescr=>tablekind_std ).
CREATE DATA mt_table TYPE HA... | I found vulnerabilities in the line:
```abap
SELECT *
```
Explanation: Potential dangerous statement Dynamic SQL. | 2,143 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.