Headline
CVE-2023-49958: Unvalidated Acceptance of Additional and Duplicate Properties in `StartTransaction` Message · Issue #36 · dallmann-consulting/OCPP.Core
An issue was discovered in Dalmann OCPP.Core through 1.2.0 for OCPP (Open Charge Point Protocol) for electric vehicles. The server processes mishandle StartTransaction messages containing additional, arbitrary properties, or duplicate properties. The last occurrence of a duplicate property is accepted. This could be exploited to alter transaction records or impact system integrity.
Yes, it works.
I am still able to send messages with the same message id. e.g.
[2,"1","Authorize",{"idTag":"B4A63CDF"}]
[2,"1","StartTransaction", {"connectorId": 1, "idTag": "1", "meterStart": 2, "reservationId": 11, "timestamp": "2023-10-03T12:34:56Z"}].
Moreover, I am still able to add additional properties and\or the same property more than once in the same message. This message is still accepted:
[2,"1","StartTransaction", {"connectorId": 1, "idTag": "1", "meterStart": 2, "reservationId": 11, "timestamp": "2023-10-03T12:34:56Z","meterStart":444, "aa":1}]
response: [3,"1",{"idTagInfo":{"expiryDate":"2199-12-31T00:00:00-06:00","status":"Accepted"},"transactionId":5}]