Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8907883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:01:48+00:00 2026-06-15T03:01:48+00:00

There is an interesting bug -for me-. Please follow the query i executed. everything

  • 0

There is an interesting bug -for me-.

Please follow the query i executed.

everything is normal.

mysql> select hex(current_user());
Result : 726F6F74406C6F63616C686F7374

everything is normal.

mysql> select substring(hex(current_user()),1,15);
Result : 726F6F74406C6F6

i added null string to second and third parameter of substring method. everything is normal.

mysql> select substring(hex(current_user()),''+1,''+15);
Result : 726F6F74406C6F6

when i add null string to firs parameter of substring.. there is return only 726.:S i was expecting same result of my latest query.

mysql> select substring(hex(current_user())+'',1,15);
Result : 726

mysql> select substring(hex(current_user())+'',2,15);
Result : 26

mysql> select substring(hex(current_user())+'',3,15);
Result : 6

mysql> select substring(hex(current_user())+'',4,15);
Result : NULL

I tested with Mysql 5.0.95 and 5.1.61 and same issue..! i tested same query with mid function instead of substring.. same again.

Any idea ? i was working on some kind of Web Application Firewall rule bypass and i realized to that bug.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:01:49+00:00Added an answer on June 15, 2026 at 3:01 am

    It’s converting HEX to integer (by taking characters from HEX until the first non-numerical character: 726) when you apply ‘+’ operator. And empty string is converted (to integer: 0) also.

    Example:

    ''+1 => 0+1=1
    726F6F74406C6F63616C686F7374+'' => 726+0 = 726
    

    concat() function should be used for concatenating strings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

there's this interesting problem i can not solve myself. I will be very glad,
There was an interesting problem in C++, but it was more about architecture. There
There is this interesting game, that has numbers in a grid, where each number
I'm working with an off-the-shelf application at my company and there is an interesting
I realize there is a very interesting technique, to get Context in Android in
Is there a better way than using globals to get interesting values from a
Some days ago I looked at boost sources and found interesting typedef . There
On this page , I see something interesting: Note that there is a fast-path
Today I stumbled upon an interesting bug I wrote. I have a set of
So I just fixed an interesting bug in the following code, but I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.