MarkdownToRichText
This method can be used for the following functionality: Convert data from markdown to rich text.
Parameters
Headers
POST /api/ss/utils/markdown-to-richtext HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: closeBody
{
"vuln_recommendation": "Proper validation, file type restrictions, size limits, and permission controls are essential to mitigate this vulnerability.\n\nAt this time the only check of file validity seems to be if it ends in '.jpg' (or other image type) and this is easy for an attacker to bypass.\n\nHere are some examples of other validation checks that could be used:\n\n### Validate file MIME type and content (magic bytes):\nCheck the actual file content and signature, not just the extension or the Content-Type header, which can be spoofed.\n\n### Sanitize and validate filenames:\nEnsure filenames do not contain special or dangerous characters (e.g., ../, %00, /, ) to prevent path traversal and overwrite attacks. Set a filename length limit and restrict allowed characters to alphanumeric if possible.\n\n### Rename uploaded files:\nAssign unique, random, or hashed names to uploaded files to prevent overwriting existing files and to obscure file paths from attackers.\n\n### Do not trust client-side validation:\nAlways perform all validation checks server-side, as client-side controls can be bypassed.\n\n\nSee:\nhttps://docs.guidewire.com/security/secure-coding-guidance/file-upload-vulnerabilities/"
}Example
Request
Response
Last updated