emjunior258 / certeasy

The easiest certificate authority for development and experiments
Apache License 2.0
7 stars 2 forks source link

Returning 200 Instead of 422 for Requests with Domains Containing Special Characters in the Body When Issuing TLS Server Certificates #125

Closed sambodirce closed 6 months ago

sambodirce commented 8 months ago

The system demonstrates inconsistency in its HTTP status code responses when handling requests containing domains with special characters in the body for issuing TLS server certificates. Instead of returning the expected 422 Unprocessable Entity status code, the system consistently responds with a 200 OK status code. This deviation from the expected behavior poses potential risks to security and data integrity.

Details:

Impact:

Test Data:

{
  "validity": {
    "from": "2024-03-09",
    "until": "2024-08-07"
  },
  "key_strength": "VERY_HIGH",
  "address": {
    "country": "PT",
    "state": "Lisboa",
    "locality": "Constantia",
    "street_address": "Patrice, Q12"
  },
  "name": "tmonblpsdj",
  "domains": ["example@domain!com"],
  "organization": "vxnrrltlkn"
}
emjunior258 commented 6 months ago

Resolved