QID 153014

Date Published: 2023-07-27

QID 153014: Ruby on Rails - Insufficient Authenticity Token Validation

Affected application does not adequately validate the "authenticity_token" present in POST request. Application accepts the requests with modified token or even without it.

Authenticity tokens (also known as CSRF tokens) are used to protect against CSRF attacks. These attacks work by tricking a user's browser into making unintended requests to a website, often using the user's existing session information. When a web application lacks proper authenticity token validation, it may allow unauthorized requests to be processed, posing a risk to user data and system security.

Successful exploitation of this vulnerability could result to potential security risks, such as Cross-Site Request Forgery (CSRF) attacks.

  • CVSS V3 rated as Medium - 5.3 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    To prevent this vulnerability, web applications should properly implement authenticity token validation when processing form submissions or sensitive actions. This involves generating unique tokens for each user session and verifying that the submitted token matches the one associated with the user's current session. If the token is missing or invalid, the server should reject the request.

    Vendor References

    CVEs related to QID 153014

    Software Advisories
    Advisory ID Software Component Link

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report