{"exploit":{"id":"EDB-4953","name":"OZJournals 2.1.1 - 'id' File Disclosure","description":"OZJournals 2.1.1 - 'id' File Disclosure","cves":["CVE-2008-0435"],"author":"shinmai","published":"2008-01-21","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4953","path":"exploits/php/webapps/4953.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4953.txt","vulnerabilities":[{"id":"CVE-2008-0435","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in index.php in OZJournals 2.1.1 allows remote attackers to read portions of arbitrary files via a .. (dot dot) in the id parameter in a printpreview action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-0435","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-0435"},"updatedAt":"2024-08-07T07:46:54.063Z","retrievedAt":"2026-11-27T01:07:13.509Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4953.png?v=2","url":"https://exploitbin.com/exploits/EDB-4953","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4953/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4953/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Name: OZJournals 2.1.1\n# Webiste: http://www.aqonlinenetworks.com/\n# Vulnerability type: Local File Exposure\n# Author:\n#         shinmai, 2008-01-21\n######################################################################################\n# Description:\n#\n# OZJournals uses .php-files as it's storage, and posts are read from them with the\n# getcontents-function. This protects from traditional LFI-exploits, but the print\n# -functionality, for instance, takes an id as a value, and allows an attacker to get\n# the contents of files other than intended. Before printing the php-file is\n# explode()d with \"\\t\", but seeing as many scripts have tabs in their configuration\n# files, an attacker could, with some luck, fish out database credentials or other\n# sensitive data.\n#\n# This is a VERY low risk vulnerability, but can potentially provide additional\n# reconnaissance data for an attacker.\n#\n# Example;\n\nhttp://localhost/ozjournals/?show=printpreview&id=../config\n\n#\n# Vulnerable code:\n\n$pfile = file_get_contents(\"$datadirectory/$id.php\");\n\n#\n# Again as I said, this is a very low risk vulnerability, but I see no reason for\n# AQOnline Networks not to fix it, even after having been notified about it numerous\n# times.\n#\n# Good luck and be safe.\n# In memoriam Anna-Emilia...\n#\n\n# milw0rm.com [2008-01-21]","sha256":"df22574a28d5f878d1b38543a885924f0b9dddf1c0722eee36ecc81422eb779d","bytes":1306,"fetchedAt":"2026-11-27T01:07:11.724Z","encoding":"utf-8 (display only; download retains original bytes)"}