Possible status code on writing to attribute AccessLevel of a node|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Possible status code on writing to attribute AccessLevel of a node
Avatar
Phuong Nguyen
Member
Members
Forum Posts: 16
Member Since:
11/22/2018
sp_UserOfflineSmall Offline
1
02/05/2024 - 07:45
sp_Permalink sp_Print sp_EditHistory

Hi,

while working with a OPC UA exploit test (claroty/opcua-exploit-framework) we encounter an issue related to writing to AccessLevel attribute of a node.

In the specification part 3, version V1.04, the AccessLevel is defined as a mandatory attribute of type AccessLevelType: "

The AccessLevel Attribute is used to indicate how the Value of a Variable can be accessed (read/write) and if it contains current and/or historic data. The AccessLevel does not take any user access rights into account, i.e. although the Variable is writable this may be restricted to a certain user / user group.

"

We have a node that is read-only and set value of its attribute AccessLevel to 1, i.e., only bit 1 CurrentRead is set. When an user now attempts to write 3, meaning both CurrentRead and CurrentWrite bits are set, to this attribute, would this request then be rejected with BadWriteNotSupported? Is it also OK in this case if we instead reply with status code BadUserAccessDenied?

Thanks so much in advance!

Avatar
Randy Armstrong
Admin
Forum Posts: 1568
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/06/2024 - 06:02
sp_Permalink sp_Print

BadWriteNotSupported if writes are never allowed.

BadUserAccessDenied if only the current Session is prohibited (not just user since you could have, as an example, a server that only allows writes when a user is connected from a configuration application running on the same host)

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 34
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4862