Symptom
Information regarding Text field when creating a ticket is protected against SQL injection.
Environment
- SAP Cloud For Customer
- Security Topics
Reproducing the Issue
Cause
Resolution
- SQL injection protection is enabled by default for the ServiceRequest OData inputs, including Text (ticket creation) and FormattedText (timeline event).
- The standard C4C OData framework uses parameterized queries and prepared statements, ensuring input is treated only as data and cannot run as SQL commands.
- SQL injection protection is a baseline feature of the SAP HANA database and the cloud application programming model; these fields are protected by default against such vulnerabilities.
- Additional input validation is performed at the OData layer before data is committed to the database, providing an extra protection layer.
- No additional custom protection is required at the API level for these fields.
Keywords
sql injection, odata, servicerequestcollection, servicerequesttextcollection, text field, formattedtext, ticket creation, timeline event, c4c, api security, parameterized queries, prepared statements, input validation, hana, injection protection , KBA , LOD-CRM-SEC , Security Topics , Problem
Product
SAP Cloud for Customer core applications all versions
SAP Knowledge Base Article - Public