You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line 1081, SoftwareVersionLen represents the version length field and is read from the packet without sanitization, we should check whether there is enough data before the slice.
The text was updated successfully, but these errors were encountered:
I triggered a slice bounds out of range bug in
packet/bgp/bgp.go
when parsingSoftware Version Capability
Reproduce
Config
The config of the under-test node is as follows, and its IP is
10.0.255.6
The config of the attack node is as follows, and its IP is
10.0.255.5
Attack
On the attack node, send a BGP Open packet with malformed
Software Version Capability
:Then, the under-test node will crash and the full logs are as follows:
Analysis
The parse result of the PoC packet is
The corresponding parse function is:
gobgp/pkg/packet/bgp/bgp.go
Lines 1073 to 1083 in 1b975be
In line 1081,
SoftwareVersionLen
represents theversion length
field and is read from the packet without sanitization, we should check whether there is enough data before the slice.The text was updated successfully, but these errors were encountered: