AnsibleForms: Stored cross-site scripting (job output and form fields)
NIST has received this entry but not started reviewing it.
AnsibleForms is a self-hosted web application that turns automation into self-service forms. Prior to 6.2.1, AnsibleForms stores attacker-influenceable job output that server/src/lib/common.js processes through formatOutput without HTML escaping and client/src/components/AppAnsibleOutput.vue renders through v-html. An authenticated user can submit job input that is echoed into persistent output, causing script execution when another user views the job. Additional designer-controlled HTML and expression values reach v-html in client/src/components/AppForm.vue and client/src/components/BsInputForForm.vue without sanitization. Because Content Security Policy is disabled and the JWT is stored in localStorage, script execution can steal a victim's token and take over the account, including an administrator account. This issue is fixed in version 6.2.1.
Improper Neutralization of Input During Web Page Generation CWE-79
An attacker can get their own code to run in a visitor’s browser while it is on a legitimate site, to steal sessions or act as the visitor.
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Weakness data: MITRE Common Weakness Enumeration.
Insecure Storage of Sensitive Information CWE-922
The product stores sensitive information without properly limiting read or write access by unauthorized actors.
Weakness data: MITRE Common Weakness Enumeration.
Improper Restriction of Rendered UI Layers or Frames CWE-1021
The web application does not restrict or incorrectly restricts frame objects or UI layers that belong to another application or domain.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Ansibleguy76 Ansibleforms | Software | < 6.2.1 | not recorded |
The 8.7 severity score (high) from github.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | Required | A person has to do something first, such as open a file or visit a page. |
| Reaches beyond the program | Changed | The attacker can get beyond the vulnerable program and affect other parts of the system. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | None | The service keeps running. |
| Ease of attack | 2.3 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.8 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 4 sources for this flaw, none tagged as a vendor patch.