Null Byte Issues

Princess slag


0

When I change ?p= to a random value, I get an error - of course. When I use a null byte, I see that I am able to negate the “.html” extension the code adds to each file request. If I go to ?p=news.html I get the error Warning: file_get_contents(news.html.html) […]
When I navigate to ?p=news I get the news page, which must be “news.html” So when I add a null byte to the url (?p=news.html%00) I should get the regular news page. Instead I get the error Warning: file_get_contents(news.html) […]. What am I missing? Clearly if I cannot understand this I will not be able to complete this challenge.

1reply
3voices
250views
Mugi [Mugiwara27]
6 years ago

0

I’ve PM’d you to avoid possible spoilers ;)

Reply has been removed
You must be logged in to reply to this discussion. Login
1 of 2

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss