Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential Slice Bounds Out-of-Range Panic in Indication Message Processing #16

Open
ty3gx opened this issue Feb 9, 2024 · 0 comments
Open

Comments

@ty3gx
Copy link

ty3gx commented Feb 9, 2024

Hello, we've identified two vulnerabilities that could potentially lead to slice bounds out-of-range panic. These can be triggered by processing unexpected indication messages.

The first one is located at
https://github.com/onosproject/rimedo-ts/blob/v0.1.1/pkg/mho/reader.go#L32

And it can be triggered by an input like
header: &{IndicationHeaderFormat1:cgi:{n_r_cgi:{p_lmnidentity:{value:"&\x84\x13"} n_rcell_identity:{value:{value:"\x01\x00U\x14\x00" len:36}}}}}, message: &{IndicationMessageFormat1:ue_id:{g_nb_ueid:{amf_ue_ngap_id:{value:4294987777} guami:{p_lmnidentity:{value:"\x00\x00\x00"} a_mfregion_id:{value:{value:"\x10" len:8}} a_mfset_id:{value:{value:"\x01\x00" len:10}} a_mfpointer:{value:{value:"\x00" len:6}}} g_nb_cu_ue_f1_ap_id_list:{value:{g_nb_cu_ue_f1_ap_id:{value:80}}} ran_ueid:{value:"\x01\x00\x00\x00\x00\x10\x01\x00"}}} meas_report:{cgi:{n_r_cgi:{p_lmnidentity:{value:"\x01\x00\x00"} n_rcell_identity:{value:{value:"\x10\x01\x00\x00\x10" len:36}}}} rsrp:{value:-65535}}}, e2NodeID: e2:1/5154

The second is located at
https://github.com/onosproject/rimedo-ts/blob/v0.1.1/pkg/mho/reader.go#L14

and can be triggered by an input like:
header: &{IndicationHeaderFormat1:cgi:{n_r_cgi:{p_lmnidentity:{value:"&\x84\x13"} n_rcell_identity:{value:{value:"\x01\x00U\x14\x00" len:36}}}}}, message: &{IndicationMessageFormat1:ue_id:{g_nb_ueid:{amf_ue_ngap_id:{value:4294971393} guami:{p_lmnidentity:{value:"\x00P\x01"} a_mfregion_id:{value:{value:"\x00" len:8}} a_mfset_id:{value:{value:"\x00\x00" len:10}} a_mfpointer:{value:{value:"\x00" len:6}}} ran_ueid:{value:"\x00\x10\x01\x00\n\x10\x01\x00"}}} meas_report:{cgi:{n_r_cgi:{p_lmnidentity:{value:"\x01\x00\n"} n_rcell_identity:{value:{value:"P\x01\x00\x00\x00" len:36}}}} rsrp:{value:-65536}} meas_report:{cgi:{e_utra_cgi:{p_lmnidentity:{value:"\x01\x00\n"} e_utracell_identity:{value:{value:"\x10\x01\x00\x00" len:28}}}} rsrp:{value:-65520}}}, e2NodeID: e2:1/5154

Please let me know if you have any questions or if additional information is needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant