PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, January 25, 2022

[FIXED] Zend framework: how to reset mysite.com/admin/auth password in mysql using phpmyadmin

 January 25, 2022     mysql, php, phpmyadmin, zend-framework     No comments   

Issue

I have never used Zend framework but I've inherited a site from another developer and need to log in to: mysite.com/admin/auth.

I've created a username and password in the user table in phpMyAdmin (using md5 for the password) but I still can't log in (Invalid credentials provided). Is there something I'm missing?


Solution

The class name in your comment indicates that the app is using ZF1. Since the password is salted, first you need to find the salt. It's coming from a config - see if the app has an application/configs folder (which is the ZF1 convention). Otherwise, just check the source code for "salt" and you should find it.

It is using md5, so once you have the salt, you should be able to create the password as you were before - just append the salt onto the end of your password. E.g. if your password was "phillystyle" and the salt was "ABCDEFG123", set the password to md5('phillystyleABCDEFG123').



Answered By - Tim Fountain
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing