Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#52980 closed defect (bug) (fixed)

PHP notice on login page (without login)

Reported by: satrancali Owned by: SergeyBiryukov
Priority: normal Milestone: 5.8
Component: Login and Registration Version: 2.9
Severity: normal Keywords:
Cc: Focuses:

Description

​https://www.example.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.example.com%2Fwp-admin%2F&reauth=1&key=zwrtxqvag3j2tmusofaaa&hinri7j2=1

Steps

1- you just enter the admin login page
2- ​https://www.example.com/wp-login.php?redirect_to=https%3A%2F%2Fwww.example.com%2Fwp-admin%2F&reauth=1
3- You add the this parameter " &key=zwrtxqvag3j2 "
4- page will show you directory of website

If it is a bug, I want to just add my name your website thank you page, my name is " Ali Kaan BAŞHAN "

Attachments (1)

q1.png​ (177.1 KB ) - added by satrancali 6 years ago.

Download all attachments as: .zip

Change History (3)

@satrancali
6 years ago

#1 @SergeyBiryukov
6 years ago

  • Component General → Login and Registration
  • Milestone Awaiting Review → 5.8
  • Summary This Bug Show Directory from admin panel login page ( without login ) → PHP notice on login page (without login)
  • Version 5.7 → 2.9

Hi there, welcome to WordPress Trac! Thanks for the report.

Just to clarify, path disclosure is considered a ​server configuration issue in WordPress, and not a security issue.

We should fix the PHP notice, though. This is not new in 5.7 and appears to be originally introduced in [11801] and further adjusted in [15710] and [29327], changing the Version field accordingly.

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 50677:

Login and Registration: Check if $_GET['login'] is set before using it in wp-login.php.

This avoids an "Undefined index" PHP notice displayed as part of password reset process if $_GET['key'] is set, but $_GET['login'] is not.

Props satrancali.
Fixes #52980.

Note: See TracTickets for help on using tickets.